Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11092

createDefaultLbMgmtNetwork and manageLbMgmtNetworks set to False when AZs are defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhos-18.0.4
    • rhos-18.0 FR 1 (Nov 2024)
    • octavia-operator
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • octavia-operator-container-1.0.5-3
    • ?
    • ?
    • None
    • Hide
      .Corrected default value for `createDefaultLbMgmtNetwork` and `manageLbMgmtNetworks` when availability zones are defined

      Before this update, `createDefaultLbMgmtNetwork` and `manageLbMgmtNetworks` were incorrectly set to `false` when availability zones were defined.

      With this update, `createDefaultLbMgmtNetwork` and `manageLbMgmtNetworks` are set to `true` when availability zones are defined.
      Show
      .Corrected default value for `createDefaultLbMgmtNetwork` and `manageLbMgmtNetworks` when availability zones are defined Before this update, `createDefaultLbMgmtNetwork` and `manageLbMgmtNetworks` were incorrectly set to `false` when availability zones were defined. With this update, `createDefaultLbMgmtNetwork` and `manageLbMgmtNetworks` are set to `true` when availability zones are defined.
    • Bug Fix
    • Done
    • Important

      createDefaultLbMgmtNetwork and manageLbMgmtNetworks parameters have to be set to True by default, as described here:
      https://github.com/openstack-k8s-operators/octavia-operator/blob/main/api/v1beta1/octavia_types.go

       

      However, they are set to False when AZs are configured.

       

      Example:
      When this controlplane configuration is applied:

        octavia:
          enabled: true
          template:
            amphoraImageContainerImage: registry-proxy.engineering.redhat.com/rh-osbs/rhoso18-octavia-amphora-image:18.0.1-2
            apacheContainerImage: registry.redhat.io/ubi9/httpd-24:latest
            databaseInstance: openstack
            lbMgmtNetwork:
              availabilityZones:
              - zone-1
            octaviaAPI:
      ...

      The following octavia configuration is obtained:

       

      $ oc -n openstack get octavia octavia -o jsonpath={.spec.lbMgmtNetwork} && echo
      {"availabilityZones":["zone-1"],"createDefaultLbMgmtNetwork":false,"manageLbMgmtNetworks":false}

      The workaround is to set both createDefaultLbMgmtNetwork and manageLbMgmtNetworks to True within the controlplane CR.

              rhn-support-gthiemon Gregory Thiemonge
              eolivare Eduardo Olivares Toledo
              Eduardo Olivares Toledo Eduardo Olivares Toledo
              rhos-dfg-networking-squad-vans
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: