Bug 1543830

Summary: Installation failed while specifying Vsphere cloudprovider
Product: OpenShift Container Platform Reporter: Gan Huang <ghuang>
Component: InstallerAssignee: davis phillips <dphillip>
Status: CLOSED ERRATA QA Contact: Gan Huang <ghuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---Keywords: NeedsTestCase
Target Release: 3.9.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: 2018-03-28 14:27: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: 1544027    
Bug Blocks:    

Description Gan Huang 2018-02-09 12:03:51 UTC
Description of problem:
Installation failed while specifying VSphere cloudprovider

Version-Release number of the following components:
openshift-ansible master branch

How reproducible:
always

Steps to Reproduce:
1. Trigger installation with vsphere cloudprovider enabled
openshift_cloudprovider_kind=vsphere
openshift_cloudprovider_vsphere_username=xxx
openshift_cloudprovider_vsphere_password=xxxx
openshift_cloudprovider_vsphere_host=xxxxx
openshift_cloudprovider_vsphere_datacenter=Datacenter
openshift_cloudprovider_vsphere_datastore=datastore1



Actual results:
TASK [openshift_node : file] ************************************************************************************************************************************************
fatal: [10.66.xx.xx]: FAILED! => {"msg": "The conditional check '('config' in l2_openshift_node_kubelet_args) | bool' failed. The error was: error while evaluating conditional (('config' in l2_openshift_node_kubelet_args) | bool): {{ l_node_kubelet_args_default | combine(l_openshift_node_kubelet_args, recursive=True) }}: {{ openshift_node_kubelet_args_dict[openshift_cloudprovider_kind | default('undefined')] }}: 'dict object' has no attribute u'vsphere'\n\nThe error appears to have been in '/root/openshift-ansible/roles/openshift_node/tasks/config.yml': line 26, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- file:\n  ^ here\n"}


Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Gan Huang 2018-02-09 12:10:45 UTC
Proposed PR: https://github.com/openshift/openshift-ansible/pull/7084

Comment 2 Scott Dodson 2018-02-21 22:15:14 UTC
in openshift-ansible-3.9.0-0.46.0

Comment 4 Gan Huang 2018-02-28 07:48:56 UTC
Verified in openshift-ansible-3.9.1-1.git.0.9862628.el7.noarch

Comment 7 errata-xmlrpc 2018-03-28 14:27:28 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-2018:0489