Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1199076 - glance_image provider doesn't respect custom region name
glance_image provider doesn't respect custom region name
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack (Show other bugs)
6.0 (Juno)
Unspecified Unspecified
medium Severity high
: z2
: 6.0 (Juno)
Assigned To: Lukas Bezdicka
nlevinki
: ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-05 07:48 EST by Lukas Bezdicka
Modified: 2015-04-07 11:10 EDT (History)
6 users (show)

See Also:
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 11:10:41 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
Launchpad 1406039 None None None Never
OpenStack gerrit 160853 None None None Never
Red Hat Product Errata RHSA-2015:0789 normal SHIPPED_LIVE Important: openstack-packstack and openstack-puppet-modules security and bug fix update 2015-04-07 15:08:02 EDT

  None (edit)
Description Lukas Bezdicka 2015-03-05 07:48:07 EST
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 09:15:19 EDT
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 11:10:41 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://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.