Bug 1199076 - glance_image provider doesn't respect custom region name
Summary: glance_image provider doesn't respect custom region name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: z2
: 6.0 (Juno)
Assignee: Lukas Bezdicka
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-05 12:48 UTC by Lukas Bezdicka
Modified: 2023-02-22 23:02 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-04-07 15:10:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1406039 0 None None None Never
OpenStack gerrit 160853 0 None None None Never
Red Hat Product Errata RHSA-2015:0789 0 normal SHIPPED_LIVE Important: openstack-packstack and openstack-puppet-modules security and bug fix update 2015-04-07 19:08:02 UTC

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


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