Bug 1538581 - Installation on GCE failed at TASK [openshift_cloud_provider : Configure GCE cloud provider]
Summary: Installation on GCE failed at TASK [openshift_cloud_provider : Configure GCE ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.9.0
Assignee: Kenny Woodson
QA Contact: Weihua Meng
URL:
Whiteboard:
Depends On: 1541589
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-25 10:48 UTC by Weihua Meng
Modified: 2018-03-28 14:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-28 14:22:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:22:52 UTC

Description Weihua Meng 2018-01-25 10:48:55 UTC
Description of problem:
Installation on GCE with cloudprovider enabled failed at TASK [openshift_cloud_provider : Configure GCE cloud provider]

In https://github.com/openshift/openshift-ansible/blob/master/inventory/hosts.example#L293 
no such option required.

Version-Release number of the following components:
openshift-ansible-3.9.0-0.24.0.git.0.735690f.el7.noarch.rpm
ansible-2.4.2.0-2.el7.noarch
# ansible --version
ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]


How reproducible:
Always

Steps to Reproduce:
1. Install OCP with openshift-ansible
$ ansible-playbook -i hosts  openshift-ansible/playbooks/deploy_cluster.yml


Actual results:
TASK [openshift_cloud_provider : Configure GCE cloud provider] *****************
Thursday 25 January 2018  10:20:01 +0000 (0:00:00.317)       0:06:10.899 ****** 
fatal: [qe-wmeng.rhcloud.com]: FAILED! => {"msg": "'openshift_gcp_project' is undefined"}

NO MORE HOSTS LEFT *************************************************************
	to retry, use: --limit @/home/slave4/workspace/Launch Environment Flexy/private-openshift-ansible/playbooks/deploy_cluster.retry

Expected results:
Installation succeeds

Additional info:

Comment 2 Scott Dodson 2018-01-26 14:14:05 UTC
Clayton added some variables to openshift_cloud_provider that only have their defaults defined in roles/openshift_gcp/defaults/main.yml can openshift_cloud_provider just import defaults from that role or do we need to copy the actual file or refactor this in some other manner?

See https://github.com/openshift/openshift-ansible/commit/949f4eacd2aa47833e1283de284aaed1c7ce91fe

Comment 3 Kenny Woodson 2018-02-01 15:22:26 UTC
Proposed fix: https://github.com/openshift/openshift-ansible/pull/6976

Comment 5 Weihua Meng 2018-02-16 03:56:07 UTC
Fixed.
openshift-ansible-3.9.0-0.45.0.git.0.05f6826.el7.noarch.rpm

Comment 8 errata-xmlrpc 2018-03-28 14:22:32 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


Note You need to log in before you can comment on or make changes to this bug.