Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1733476

Summary: [Azure] oc get machines do not show infomation about azure instances
Product: OpenShift Container Platform Reporter: sunzhaohua <zhsun>
Component: Cloud ComputeAssignee: Jan Chaloupka <jchaloup>
Status: CLOSED ERRATA QA Contact: sunzhaohua <zhsun>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: agarcial, jhou
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:33:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sunzhaohua 2019-07-26 08:24:24 UTC
Description of problem:
If we execute "oc get machines" on IPI-on-Azure, there is no information about the azure instances.

Version-Release number of the following components:
4.2.0-0.nightly-2019-07-18-063440


How reproducible:
Always

Steps to Reproduce:
1.Install openshift on Azure
2.Execute `oc get machine`
$ oc get machine
NAME                                     INSTANCE   STATE   TYPE   REGION   ZONE   AGE
qe-zhsun-9v662-master-0                                                            1d21h
qe-zhsun-9v662-master-1                                                            1d21h
qe-zhsun-9v662-master-2                                                            1d21h
qe-zhsun-9v662-worker-centralus1                                                   1d23h
qe-zhsun-9v662-worker-centralus1-4p9nx                                             1d21h
qe-zhsun-9v662-worker-centralus11                                                  1d22h
qe-zhsun-9v662-worker-centralus2-fzqgt                                             1d21h

Actual results:
"oc get machines" do not show infomation about azure instances

Expected results:
Show valid instance info.

Additional info:

Comment 3 Jan Chaloupka 2019-08-05 13:00:45 UTC
Output for AWS after all PRs are merged:

$ oc get machines -n openshift-machine-api
NAME                                     STATE     TYPE        REGION      ZONE         AGE
jchaloup-kndjk-master-0                  running   m4.xlarge   us-east-1   us-east-1a   16m
jchaloup-kndjk-master-1                  running   m4.xlarge   us-east-1   us-east-1b   16m
jchaloup-kndjk-master-2                  running   m4.xlarge   us-east-1   us-east-1c   16m
jchaloup-kndjk-worker-us-east-1a-rz7fc   running   m4.large    us-east-1   us-east-1a   15m
jchaloup-kndjk-worker-us-east-1b-skcdp   running   m4.large    us-east-1   us-east-1b   15m
jchaloup-kndjk-worker-us-east-1c-x949n   running   m4.large    us-east-1   us-east-1c   15m

$ oc get machines -n openshift-machine-api  -o wide
NAME                                     STATE     TYPE        REGION      ZONE         AGE       NODE                           PROVIDERID
jchaloup-kndjk-master-0                  running   m4.xlarge   us-east-1   us-east-1a   19m       ip-10-0-137-186.ec2.internal   
jchaloup-kndjk-master-1                  running   m4.xlarge   us-east-1   us-east-1b   19m       ip-10-0-144-222.ec2.internal   
jchaloup-kndjk-master-2                  running   m4.xlarge   us-east-1   us-east-1c   19m       ip-10-0-164-95.ec2.internal    
jchaloup-kndjk-worker-us-east-1a-rz7fc   running   m4.large    us-east-1   us-east-1a   17m       ip-10-0-131-249.ec2.internal   aws:///us-east-1a/i-0d61da03d03bc6c51
jchaloup-kndjk-worker-us-east-1b-skcdp   running   m4.large    us-east-1   us-east-1b   17m       ip-10-0-149-207.ec2.internal   aws:///us-east-1b/i-0dbe5a1764fa55848
jchaloup-kndjk-worker-us-east-1c-x949n   running   m4.large    us-east-1   us-east-1c   17m       ip-10-0-160-10.ec2.internal    aws:///us-east-1c/i-09380f6badaad266e

Output for Azure after all PRs are merged:

$ oc get machines -n openshift-machine-api
NAME                                     STATE     TYPE              REGION      ZONE      AGE
jchaloup-x8pdp-master-0                  Running   Standard_D4s_v3   centralus   3         44m
jchaloup-x8pdp-master-1                  Running   Standard_D4s_v3   centralus   1         44m
jchaloup-x8pdp-master-2                  Running   Standard_D4s_v3   centralus   2         44m
jchaloup-x8pdp-worker-centralus1-b97mk   Running   Standard_D2s_v3   centralus   1         43m
jchaloup-x8pdp-worker-centralus2-8tz8d   Running   Standard_D2s_v3   centralus   2         43m
jchaloup-x8pdp-worker-centralus3-22zf5   Running   Standard_D2s_v3   centralus   3         43m

$ oc get machines -n openshift-machine-api -o wide
NAME                                     STATE     TYPE              REGION      ZONE      AGE       NODE                                     PROVIDERID
jchaloup-x8pdp-master-0                  Running   Standard_D4s_v3   centralus   3         47m       jchaloup-x8pdp-master-0                  azure:///subscriptions/6648228a-736c-4a4e-9a14-92a7e5190f4a/resourceGroups/jchaloup-x8pdp-rg/providers/Microsoft.Compute/virtualMachines/jchaloup-x8pdp-master-0
jchaloup-x8pdp-master-1                  Running   Standard_D4s_v3   centralus   1         47m       jchaloup-x8pdp-master-1                  azure:///subscriptions/6648228a-736c-4a4e-9a14-92a7e5190f4a/resourceGroups/jchaloup-x8pdp-rg/providers/Microsoft.Compute/virtualMachines/jchaloup-x8pdp-master-1
jchaloup-x8pdp-master-2                  Running   Standard_D4s_v3   centralus   2         47m       jchaloup-x8pdp-master-2                  azure:///subscriptions/6648228a-736c-4a4e-9a14-92a7e5190f4a/resourceGroups/jchaloup-x8pdp-rg/providers/Microsoft.Compute/virtualMachines/jchaloup-x8pdp-master-2
jchaloup-x8pdp-worker-centralus1-b97mk   Running   Standard_D2s_v3   centralus   1         46m       jchaloup-x8pdp-worker-centralus1-b97mk   azure:///subscriptions/6648228a-736c-4a4e-9a14-92a7e5190f4a/resourceGroups/jchaloup-x8pdp-rg/providers/Microsoft.Compute/virtualMachines/jchaloup-x8pdp-worker-centralus1-b97mk
jchaloup-x8pdp-worker-centralus2-8tz8d   Running   Standard_D2s_v3   centralus   2         46m       jchaloup-x8pdp-worker-centralus2-8tz8d   azure:///subscriptions/6648228a-736c-4a4e-9a14-92a7e5190f4a/resourceGroups/jchaloup-x8pdp-rg/providers/Microsoft.Compute/virtualMachines/jchaloup-x8pdp-worker-centralus2-8tz8d
jchaloup-x8pdp-worker-centralus3-22zf5   Running   Standard_D2s_v3   centralus   3         46m       jchaloup-x8pdp-worker-centralus3-22zf5   azure:///subscriptions/6648228a-736c-4a4e-9a14-92a7e5190f4a/resourceGroups/jchaloup-x8pdp-rg/providers/Microsoft.Compute/virtualMachines/jchaloup-x8pdp-worker-centralus3-22zf5

Comment 4 sunzhaohua 2019-08-20 03:03:16 UTC
verified

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.2.0-0.nightly-2019-08-19-201622   True        False         18m     Cluster version is 4.2.0-0.nightly-2019-08-19-201622

$ oc get machine
NAME                                   STATE     TYPE              REGION      ZONE   AGE
zhsun1-2c6bp-master-0                  Running   Standard_D4s_v3   centralus   2      20m
zhsun1-2c6bp-master-1                  Running   Standard_D4s_v3   centralus   1      20m
zhsun1-2c6bp-master-2                  Running   Standard_D4s_v3   centralus   3      20m
zhsun1-2c6bp-worker-centralus1-74wjv   Running   Standard_D2s_v3   centralus   1      18m
zhsun1-2c6bp-worker-centralus2-nt4v5   Running   Standard_D2s_v3   centralus   2      18m
zhsun1-2c6bp-worker-centralus3-9cnmz   Running   Standard_D2s_v3   centralus   3      18m

$ oc get machine -o wide
NAME                                   STATE     TYPE              REGION      ZONE   AGE   NODE                                   PROVIDERID
zhsun1-2c6bp-master-0                  Running   Standard_D4s_v3   centralus   2      23m   zhsun1-2c6bp-master-0                  azure:///subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/zhsun1-2c6bp-rg/providers/Microsoft.Compute/virtualMachines/zhsun1-2c6bp-master-0
zhsun1-2c6bp-master-1                  Running   Standard_D4s_v3   centralus   1      23m   zhsun1-2c6bp-master-1                  azure:///subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/zhsun1-2c6bp-rg/providers/Microsoft.Compute/virtualMachines/zhsun1-2c6bp-master-1
zhsun1-2c6bp-master-2                  Running   Standard_D4s_v3   centralus   3      23m   zhsun1-2c6bp-master-2                  azure:///subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/zhsun1-2c6bp-rg/providers/Microsoft.Compute/virtualMachines/zhsun1-2c6bp-master-2
zhsun1-2c6bp-worker-centralus1-74wjv   Running   Standard_D2s_v3   centralus   1      21m   zhsun1-2c6bp-worker-centralus1-74wjv   azure:///subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/zhsun1-2c6bp-rg/providers/Microsoft.Compute/virtualMachines/zhsun1-2c6bp-worker-centralus1-74wjv
zhsun1-2c6bp-worker-centralus2-nt4v5   Running   Standard_D2s_v3   centralus   2      21m   zhsun1-2c6bp-worker-centralus2-nt4v5   azure:///subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/zhsun1-2c6bp-rg/providers/Microsoft.Compute/virtualMachines/zhsun1-2c6bp-worker-centralus2-nt4v5
zhsun1-2c6bp-worker-centralus3-9cnmz   Running   Standard_D2s_v3   centralus   3      21m   zhsun1-2c6bp-worker-centralus3-9cnmz   azure:///subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/zhsun1-2c6bp-rg/providers/Microsoft.Compute/virtualMachines/zhsun1-2c6bp-worker-centralus3-9cnmz

Comment 5 errata-xmlrpc 2019-10-16 06:33:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2922