Bug 1199076

Summary: glance_image provider doesn't respect custom region name
Product: Red Hat OpenStack Reporter: Lukas Bezdicka <lbezdick>
Component: openstack-packstackAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0 (Juno)CC: aortega, dnavale, lbezdick, nyechiel, yeylon
Target Milestone: z2Keywords: ZStream
Target Release: 6.0 (Juno)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2014.2-0.17.dev1462.gbb05296.el7ost Doc Type: Bug Fix
Doc Text:
An error in the Packstack code was responsible for setting the glance_image provider region value to RegionOne ignoring any region setting updated by the user. With this update, Packstack now allows the user to set a custom region name for the glance_image provider parameter.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 15:10:41 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:

Description Lukas Bezdicka 2015-03-05 12:48:07 UTC
When you use a custom region name in your packstack answer file, the glance_image provisioning fails. From the log:

0.0.1.228_provision_glance.log:Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password f929ef42832e458b --os-region-name EDH --os-auth-url http://10.0.1.228:35357/v2.0/ image-list' returned 1: public endpoint for image service in RegionOne region not found
10.0.1.228_provision_glance.log:Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password f929ef42832e458b --os-region-name EDH --os-auth-url http://10.0.1.228:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img' returned 1: public endpoint for image service in RegionOne region not found
10.0.1.228_provision_glance.log:Error: /Stage[main]/Main/Glance_image[cirros]/ensure: change from absent to present failed: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password f929ef42832e458b --os-region-name EDH --os-auth-url http://10.0.1.228:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img' returned 1: public endpoint for image service in RegionOne region not found

It looks like somewhere in the code path for provisioning the demo cirrus image, it doesn't copy the packstack answer files attributes don't copied over the inherited default ("RegionOne").

Comment 5 nlevinki 2015-03-24 13:15:19 UTC
Service: image
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminURL  |     http://10.35.2.211:9292      |
|      id     | 8cafa80119344d01979c83e4a027720c |
| internalURL |     http://10.35.2.211:9292      |
|  publicURL  |     http://10.35.2.211:9292      |
|    region   |            LEVINKIND             |
+-------------+----------------------------------+
nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| 9cef4395-dff5-4e84-8a96-7089c33f0728 | bla1 | ACTIVE | -          | Running     | public=172.24.4.227 |
+--------------------------------------+------+--------+------------+-------------+---------------------+

Comment 7 errata-xmlrpc 2015-04-07 15:10:41 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://rhn.redhat.com/errata/RHSA-2015-0789.html