Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1538581 - Installation on GCE failed at TASK [openshift_cloud_provider : Configure GCE cloud provider]
Installation on GCE failed at TASK [openshift_cloud_provider : Configure GCE ...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.9.0
Unspecified Unspecified
high Severity high
: ---
: 3.9.0
Assigned To: Kenny Woodson
Weihua Meng
: Regression
Depends On: 1541589
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-25 05:48 EST by Weihua Meng
Modified: 2018-03-28 10:22 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-03-28 10:22:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:22 EDT

  None (edit)
Description Weihua Meng 2018-01-25 05:48:55 EST
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 09:14:05 EST
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 10:22:26 EST
Proposed fix: https://github.com/openshift/openshift-ansible/pull/6976
Comment 5 Weihua Meng 2018-02-15 22:56:07 EST
Fixed.
openshift-ansible-3.9.0-0.45.0.git.0.05f6826.el7.noarch.rpm
Comment 8 errata-xmlrpc 2018-03-28 10:22:32 EDT
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.