Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-38570

[Azure] No zone for master machines

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • None
    • None
    • None
    • CLOUD Sprint 265
    • 1
    • Done
    • Bug Fix
    • Hide
      * Previously, the Machine API controller read the zone number to populate machine zone information. For machines in {azure-short} regions that only support availability sets, the set number is used to represent the zone, so the Machine API controller did not populate their zone information. With this release, the Machine API controller references the {azure-short} fault domain property, which works for both availability sets and availability zones, to correctly read the fault domain in each case so that machines always report a zone. (link:https://issues.redhat.com/browse/OCPBUGS-38570[OCPBUGS-38570])
      Show
      * Previously, the Machine API controller read the zone number to populate machine zone information. For machines in {azure-short} regions that only support availability sets, the set number is used to represent the zone, so the Machine API controller did not populate their zone information. With this release, the Machine API controller references the {azure-short} fault domain property, which works for both availability sets and availability zones, to correctly read the fault domain in each case so that machines always report a zone. (link: https://issues.redhat.com/browse/OCPBUGS-38570 [ OCPBUGS-38570 ])
    • None
    • None
    • None
    • None

      Description of problem:

      No zone for master machines    

      Version-Release number of selected component (if applicable):

      4.17.0-0.nightly-2024-08-15-153405

      How reproducible:

      Always

      Steps to Reproduce:

          1. Install an azure cluster
          2. Run "oc get machine"
          3.
          

      Actual results:

      No zone info for master machine
      $ oc get machine     
      NAME                                       PHASE     TYPE              REGION   ZONE   AGE
      yingwang-0816-tvqdc-master-0               Running   Standard_D8s_v3   eastus          104m
      yingwang-0816-tvqdc-master-1               Running   Standard_D8s_v3   eastus          104m
      yingwang-0816-tvqdc-master-2               Running   Standard_D8s_v3   eastus          104m
      yingwang-0816-tvqdc-worker-eastus1-54ckq   Running   Standard_D4s_v3   eastus   1      96m
      yingwang-0816-tvqdc-worker-eastus2-dwr2j   Running   Standard_D4s_v3   eastus   2      96m
      yingwang-0816-tvqdc-worker-eastus3-7wchl   Running   Standard_D4s_v3   eastus   3      96m
      $ oc get machine --show-labels  
      NAME                                       PHASE     TYPE              REGION   ZONE   AGE    LABELS
      yingwang-0816-tvqdc-master-0               Running   Standard_D8s_v3   eastus          104m   machine.openshift.io/cluster-api-cluster=yingwang-0816-tvqdc,machine.openshift.io/cluster-api-machine-role=master,machine.openshift.io/cluster-api-machine-type=master,machine.openshift.io/instance-type=Standard_D8s_v3,machine.openshift.io/region=eastus
      yingwang-0816-tvqdc-master-1               Running   Standard_D8s_v3   eastus          104m   machine.openshift.io/cluster-api-cluster=yingwang-0816-tvqdc,machine.openshift.io/cluster-api-machine-role=master,machine.openshift.io/cluster-api-machine-type=master,machine.openshift.io/instance-type=Standard_D8s_v3,machine.openshift.io/region=eastus
      yingwang-0816-tvqdc-master-2               Running   Standard_D8s_v3   eastus          104m   machine.openshift.io/cluster-api-cluster=yingwang-0816-tvqdc,machine.openshift.io/cluster-api-machine-role=master,machine.openshift.io/cluster-api-machine-type=master,machine.openshift.io/instance-type=Standard_D8s_v3,machine.openshift.io/region=eastus
      yingwang-0816-tvqdc-worker-eastus1-54ckq   Running   Standard_D4s_v3   eastus   1      96m    machine.openshift.io/cluster-api-cluster=yingwang-0816-tvqdc,machine.openshift.io/cluster-api-machine-role=worker,machine.openshift.io/cluster-api-machine-type=worker,machine.openshift.io/cluster-api-machineset=yingwang-0816-tvqdc-worker-eastus1,machine.openshift.io/instance-type=Standard_D4s_v3,machine.openshift.io/interruptible-instance=,machine.openshift.io/region=eastus,machine.openshift.io/zone=1
      yingwang-0816-tvqdc-worker-eastus2-dwr2j   Running   Standard_D4s_v3   eastus   2      96m    machine.openshift.io/cluster-api-cluster=yingwang-0816-tvqdc,machine.openshift.io/cluster-api-machine-role=worker,machine.openshift.io/cluster-api-machine-type=worker,machine.openshift.io/cluster-api-machineset=yingwang-0816-tvqdc-worker-eastus2,machine.openshift.io/instance-type=Standard_D4s_v3,machine.openshift.io/interruptible-instance=,machine.openshift.io/region=eastus,machine.openshift.io/zone=2
      yingwang-0816-tvqdc-worker-eastus3-7wchl   Running   Standard_D4s_v3   eastus   3      96m    machine.openshift.io/cluster-api-cluster=yingwang-0816-tvqdc,machine.openshift.io/cluster-api-machine-role=worker,machine.openshift.io/cluster-api-machine-type=worker,machine.openshift.io/cluster-api-machineset=yingwang-0816-tvqdc-worker-eastus3,machine.openshift.io/instance-type=Standard_D4s_v3,machine.openshift.io/interruptible-instance=,machine.openshift.io/region=eastus,machine.openshift.io/zone=3  

      Expected results:

      Zone info can be shown when run "oc get machine"

      Additional info:

          

              joelspeed Joel Speed
              rhn-support-zhsun Zhaohua Sun
              None
              None
              Zhaohua Sun Zhaohua Sun
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: