Bug 1588281

Summary: Failed at task "Check to see if the vsphere cluster role already exists"
Product: OpenShift Container Platform Reporter: Gan Huang <ghuang>
Component: InstallerAssignee: davis phillips <dphillip>
Status: CLOSED CURRENTRELEASE QA Contact: Gan Huang <ghuang>
Severity: medium Docs Contact:
Priority: high    
Version: 3.10.0CC: aos-bugs, jokerman, mmccomas, rteague, sdodson
Target Milestone: ---Keywords: TestBlocker
Target Release: 3.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 20:28:28 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:
Bug Depends On:    
Bug Blocks: 1548163, 1572873    

Description Gan Huang 2018-06-07 03:05:05 UTC
Description of problem:
While enabling vsphere cloudprovider, task failed at:

TASK [openshift_cloud_provider : Check to see if the vsphere cluster role already exists] ***
Wednesday 06 June 2018  22:54:28 -0400 (0:00:00.071)       0:07:51.431 ******** 

fatal: [qe-ghuang-node-registry-router-1.0606-zoy.qe.rhcloud.com]: FAILED! => {"changed": false, "cmd": "oc get clusterrole", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}
fatal: [openshift-132.lab.eng.nay.redhat.com]: FAILED! => {"changed": false, "cmd": "oc get clusterrole", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}

Version-Release number of the following components:
openshift-ansible-3.10.0-0.63.0.git.0.961c60d.el7.noarch.rpm

How reproducible:
always

Steps to Reproduce:
1. Trigger installation against vsphere with cloudprovider enabled


Actual results:
see above

Expected results:

Additional info:
Two issues:

1. No any openshift packages installed at that moment, hence no oc client installed.

2. The task should be executed against first master, instead of the nodes.

Comment 1 Russell Teague 2018-06-07 12:32:01 UTC
New tasks have been added which use the 'oc' binary before the client package has been installed.

Comment 3 davis phillips 2018-06-07 14:39:54 UTC
Proposed PR: https://github.com/openshift/openshift-ansible/pull/8672

Comment 4 davis phillips 2018-06-07 15:03:24 UTC
Updated PR: https://github.com/openshift/openshift-ansible/pull/8673

Comment 5 Gan Huang 2018-06-08 08:10:08 UTC
It's blocking installation with vsphere cloudprovider enabled.

Comment 9 Gan Huang 2018-06-12 10:50:39 UTC
Fixed in openshift-ansible-3.10.0-0.66.0.git.79.68197f9.el7.noarch.rpm