Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1389275 - Installation failed when enabling OpenStack cloudprovider
Installation failed when enabling OpenStack cloudprovider
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.2.1
Unspecified Unspecified
medium Severity medium
: ---
: 3.2.1
Assigned To: Scott Dodson
Gan Huang
: Regression
Depends On: 1392365
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-27 06:35 EDT by Gan Huang
Modified: 2016-11-15 14:10 EST (History)
4 users (show)

See Also:
Fixed In Version: openshift-ansible-3.2.37-1.git.0.8f013d0.el7
Doc Type: Bug Fix
Doc Text:
Previous versions of the openshift-ansible code base were not compatible with the latest Ansible 2.2.0.0 release. We have resolved several compatibility issues with the GA version of Ansible 2.2.0.0.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-15 14:10:18 EST
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 RHSA-2016:2778 normal SHIPPED_LIVE Moderate: atomic-openshift-utils security and bug fix update 2016-11-15 19:08:29 EST

  None (edit)
Description Gan Huang 2016-10-27 06:35:31 EDT
Description of problem:
Installation would failed at task "[openshift_cloud_provider : Create cloud config]" when enabling OpenStack cloudprovider.

Version-Release number of selected component (if applicable):
openshift-ansible-3.2.36-1.git.0.164eb4c.el7.noarch.rpm
ansible-2.2.0.0-0.62.rc1.el7.noarch

How reproducible:
always

Steps to Reproduce:
1.cat hosts
<--snip-->
openshift_cloudprovider_kind=openstack
openshift_cloudprovider_openstack_auth_url=xxxxx
openshift_cloudprovider_openstack_username=xxxx
openshift_cloudprovider_openstack_password=xxxx
openshift_cloudprovider_openstack_tenant_id=xxxxx
openshift_cloudprovider_openstack_region=RegionOne
<--snip-->

2.Run BYO playbook
3.

Actual results:
TASK [openshift_cloud_provider : Create cloud config] **************************
Thursday 27 October 2016  06:04:28 +0000 (0:00:00.093)       0:07:00.442 ****** 
fatal: [openshift-133.lab.sjc.redhat.com]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: Unable to look up a name or access an attribute in template string ([Global]\nauth-url = {{ openshift_cloudprovider_openstack_auth_url }}\nusername = {{ openshift_cloudprovider_openstack_username }}\npassword = {{ openshift_cloudprovider_openstack_password }}\n{% if openshift_cloudprovider_openstack_tenant_id is defined %}\ntenant-id = {{ openshift_cloudprovider_openstack_tenant_id }}\n{% else %}\ntenant-name = {{ openshift_cloudprovider_openstack_tenant_name }}\n{% endif %}\n{% if openshift_cloudprovider_openstack_region is defined %}\nregion = {{ openshift_cloudprovider_openstack_region }}\n{% endif %}\n{% if 'lb_subnet_id' in openshift_cloudprovider_openstack %}\n[LoadBalancer]\nsubnet-id = {{ openshift_cloudprovider_openstack_lb_subnet_id }}\n{% endif %}\n).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable"}

Expected results:
Installation success when enabling cloudprovider

Additional info:
Comment 1 Gan Huang 2016-10-27 06:51:34 EDT
Looks like it works for me to modify:

{% if 'lb_subnet_id' in openshift_cloudprovider_openstack %}

to

{% if openshift_cloudprovider_openstack_lb_subnet_id is defined %}
Comment 2 Scott Dodson 2016-10-27 09:37:44 EDT
Problem only exists in 3.2.
Comment 3 Scott Dodson 2016-10-27 10:35:12 EDT
Gan's fix is here https://github.com/openshift/openshift-ansible/pull/2675
Comment 6 Mark Lamourine 2016-11-01 14:14:15 EDT
Still present in 3.2.36-1
Comment 7 Gan Huang 2016-11-03 03:50:01 EDT
PR is not merged to openshift-ansible-3.2.37-1
Comment 8 Scott Dodson 2016-11-04 16:13:17 EDT
In openshift-ansible-3.2.38-1
Comment 9 Gan Huang 2016-11-08 05:47:48 EST
Verified with openshift-ansible-3.2.39-1.git.0.2c9adff.el7.noarch.rpm

Installation succeed when enabling OpenStack cloudprovider.
Comment 10 errata-xmlrpc 2016-11-15 14:10:18 EST
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/RHSA-2016:2778

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