Bug 1020025 - Glance appears to ignore qpid_host setting in glance-api.conf
Summary: Glance appears to ignore qpid_host setting in glance-api.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 4.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: beta
: 4.0
Assignee: Flavio Percoco
QA Contact: Haim
URL:
Whiteboard:
: 1021219 1028693 (view as bug list)
Depends On:
Blocks: 1034362 1040649
TreeView+ depends on / blocked
 
Reported: 2013-10-16 19:54 UTC by Steve Reichard
Modified: 2019-09-10 14:08 UTC (History)
11 users (show)

Fixed In Version: openstack-glance-2013.2-3.el6ost
Doc Type: Bug Fix
Doc Text:
Cause: Glance's configuration file exposed the wrong parameter name for qpid's host. Consequence: Glance notification service wouldn't connect to qpid nodes. Fix: Replaced qpid_host with qpid_hostname in glance-api. Result: The qpid nodes operate as expected.
Clone Of:
: 1034362 (view as bug list)
Environment:
Last Closed: 2013-12-20 00:29:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 52931 0 None None None Never
OpenStack gerrit 54339 0 None None None Never
OpenStack gerrit 56208 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Steve Reichard 2013-10-16 19:54:19 UTC
Description of problem:

After experiencing issue described in BZ 1020002 (packstack not setting qpid_host in galnce-api.conf), I set it and rebooted my node which was running glance.

[root@spr4 glance(keystone_admin)]# grep qpid_host /etc/glance/glance-*
/etc/glance/glance-api.conf:#qpid_host = localhost
/etc/glance/glance-api.conf:qpid_host = 10.16.139.13
[root@spr4 glance(keystone_admin)]# 


An attempt to load an image eventually returned:

[root@spr4 ~(keystone_admin)]# glance image-create --name rhel64 --is-public true --disk-format qcow2 --container-format bare --file /pub/projects/rhos/common/images/rhel-server-x86_64-kvm-6.4_20130130.0-4.qcow2
Error communicating with http://10.16.139.14:9292 timed out
[root@spr4 ~(keystone_admin)]# 
...
[root@spr4 glance(keystone_admin)]# glance image-list
+--------------------------------------+--------+-------------+------------------+-----------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size      | Status |
+--------------------------------------+--------+-------------+------------------+-----------+--------+
| 2592aa87-4fbe-4432-9d1a-9700d96c2e64 | rhel64 | qcow2       | bare             | 699592704 | queued |
+--------------------------------------+--------+-------------+------------------+-----------+--------+
[root@spr4 glance(keystone_admin)]# 

Tailing the error log I see it still attempting to connect on local host:


[root@spr4 glance(keystone_admin)]# tail api.log 
2013-10-16 15:09:29.997 3551 WARNING qpid.messaging [-] sleeping 120 seconds
2013-10-16 15:11:30.000 3551 WARNING qpid.messaging [-] trying: localhost:5672
2013-10-16 15:11:30.001 3551 WARNING qpid.messaging [-] recoverable error[attempt 17]: [Errno 111] ECONNREFUSED
2013-10-16 15:11:30.002 3551 WARNING qpid.messaging [-] sleeping 120 seconds
2013-10-16 15:13:30.004 3551 WARNING qpid.messaging [-] trying: localhost:5672
2013-10-16 15:13:30.005 3551 WARNING qpid.messaging [-] recoverable error[attempt 18]: [Errno 111] ECONNREFUSED
2013-10-16 15:13:30.006 3551 WARNING qpid.messaging [-] sleeping 120 seconds
2013-10-16 15:15:30.008 3551 WARNING qpid.messaging [-] trying: localhost:5672
2013-10-16 15:15:30.009 3551 WARNING qpid.messaging [-] recoverable error[attempt 19]: [Errno 111] ECONNREFUSED
2013-10-16 15:15:30.010 3551 WARNING qpid.messaging [-] sleeping 120 seconds
[root@spr4 glance(keystone_admin)]# 


If I redepoy and put glance and  qpid on the same host, I have not seen issues.




Version-Release number of selected component (if applicable):



[root@spr4 glance(keystone_admin)]# yum list installed | grep -i openstack
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Django14.noarch            1.4.4-1.el6ost         @OpenStack-4.0-Puddle         
PyYAML.x86_64              3.10-3.1.el6           @OpenStack-4.0-Puddle         
crudini.noarch             0.3-2.el6ost           @OpenStack-4.0-Puddle         
dnsmasq.x86_64             2.48-13.el6            @OpenStack-4.0-Puddle         
dnsmasq-utils.x86_64       2.48-13.el6            @OpenStack-4.0-Puddle         
facter.x86_64              1.6.6-1.el6ost         @OpenStack-4.0-Puddle         
hiera.noarch               1.0.0-3.el6_4          @OpenStack-4.0-Puddle         
                                                  @OpenStack-4.0-Puddle         
libyaml.x86_64             0.1.3-1.1.el6          @OpenStack-4.0-Puddle         
novnc.noarch               0.4-8.el6ost           @OpenStack-4.0-Puddle         
openstack-dashboard.noarch 2013.2-0.15.rc2.el6ost @OpenStack-4.0-Puddle         
openstack-dashboard-theme.noarch
                           2013.2-0.15.rc2.el6ost @OpenStack-4.0-Puddle         
openstack-glance.noarch    2013.2-0.12.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-keystone.noarch  2013.2-0.14.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-neutron.noarch   2013.2-0.12.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-neutron-openvswitch.noarch
                           2013.2-0.12.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-api.noarch  2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-cert.noarch 2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-common.noarch
                           2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-conductor.noarch
                           2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-console.noarch
                           2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-novncproxy.noarch
                           2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-nova-scheduler.noarch
                           2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
openstack-packstack.noarch 2013.2.1-0.6.dev763.el6ost
                                                  @OpenStack-4.0-Puddle         
openstack-selinux.noarch   0.1.2-11.el6ost        @OpenStack-4.0-Puddle         
openstack-utils.noarch     2013.2-1.el6ost        @OpenStack-4.0-Puddle         
openvswitch.x86_64         1.11.0-1.el6           @OpenStack-4.0-Puddle         
puppet.noarch              3.2.4-1.el6_4          @OpenStack-4.0-Puddle         
pyparsing.noarch           1.5.6-1.el6            @OpenStack-4.0-Puddle         
pysendfile.x86_64          2.0.0-3.el6            @OpenStack-4.0-Puddle         
python-alembic.noarch      0.4.2-1.el6ost         @OpenStack-4.0-Puddle         
python-anyjson.noarch      0.3.1-1.el6            @OpenStack-4.0-Puddle         
python-argparse.noarch     1.2.1-2.1.el6          @OpenStack-4.0-Puddle         
                           3.2-0.2.1.a3.el6       @OpenStack-4.0-Puddle         
python-boto.noarch         2.6.0-1.el6            @OpenStack-4.0-Puddle         
                           1.0.6-1.el6ost         @OpenStack-4.0-Puddle         
python-chardet.noarch      2.0.1-1.1.el6          @OpenStack-4.0-Puddle         
python-cinderclient.noarch 1.0.6-1.el6ost         @OpenStack-4.0-Puddle         
python-cliff.noarch        1.4.4-1.el6ost         @OpenStack-4.0-Puddle         
python-cmd2.noarch         0.6.4-6.el6ost         @OpenStack-4.0-Puddle         
python-d2to1.noarch        0.2.10-1.el6ost        @OpenStack-4.0-Puddle         
                           0.5-2.el6              @OpenStack-4.0-Puddle         
                           1.3-1.el6ost           @OpenStack-4.0-Puddle         
                           2013.2-0.15.rc2.el6ost @OpenStack-4.0-Puddle         
python-django-openstack-auth.noarch
                           1.1.2-1.el6ost         @OpenStack-4.0-Puddle         
                           0.5.0-1.el6ost         @OpenStack-4.0-Puddle         
python-dogpile-core.noarch 0.4.1-1.el6ost         @OpenStack-4.0-Puddle         
python-eventlet.noarch     0.9.17-2.el6           @OpenStack-4.0-Puddle         
python-glance.noarch       2013.2-0.12.rc1.el6ost @OpenStack-4.0-Puddle         
python-glanceclient.noarch 1:0.10.0-1.el6ost      @OpenStack-4.0-Puddle         
python-greenlet.x86_64     0.3.1-12.el6           @OpenStack-4.0-Puddle         
python-heatclient.noarch   0.2.4-1.el6ost         @OpenStack-4.0-Puddle         
python-httplib2.noarch     0.7.2-1.el6            @OpenStack-4.0-Puddle         
python-iso8601.noarch      0.1.4-2.el6            @OpenStack-4.0-Puddle         
python-jinja2-26.noarch    2.6-2.el6ost           @OpenStack-4.0-Puddle         
python-jsonpatch.noarch    1.2-2.el6ost           @OpenStack-4.0-Puddle         
python-jsonpointer.noarch  1.0-2.el6ost           @OpenStack-4.0-Puddle         
python-jsonschema.noarch   1.3.0-1.el6ost         @OpenStack-4.0-Puddle         
python-keyring.noarch      0.7-1.el6ost           @OpenStack-4.0-Puddle         
python-keystone.noarch     2013.2-0.14.rc1.el6ost @OpenStack-4.0-Puddle         
                           1:0.3.2-6.el6ost       @OpenStack-4.0-Puddle         
python-lockfile.noarch     0.8-5.el6              @OpenStack-4.0-Puddle         
python-mako.noarch         0.5.0-5.el6ost         @OpenStack-4.0-Puddle         
python-migrate.noarch      0.7.1-1.el6ost         @OpenStack-4.0-Puddle         
python-neutron.noarch      2013.2-0.12.rc1.el6ost @OpenStack-4.0-Puddle         
                           2.2.6-1.el6ost         @OpenStack-4.0-Puddle         
python-nova.noarch         2013.2-0.25.rc1.el6ost @OpenStack-4.0-Puddle         
python-novaclient.noarch   1:2.15.0-1.el6ost      @OpenStack-4.0-Puddle         
python-oauth2.noarch       1.5.211-5.el6ost       @OpenStack-4.0-Puddle         
python-ordereddict.noarch  1.1-2.1.el6            @OpenStack-4.0-Puddle         
python-oslo-config.noarch  1:1.2.1-1.el6ost       @OpenStack-4.0-Puddle         
python-passlib.noarch      1.5.3-1.el6            @OpenStack-4.0-Puddle         
                           1.5.0-5.el6            @OpenStack-4.0-Puddle         
python-pbr.noarch          0.5.21-2.el6ost        @OpenStack-4.0-Puddle         
python-prettytable.noarch  0.6.1-1.el6            @OpenStack-4.0-Puddle         
python-pyudev.noarch       0.15-1.el6             @OpenStack-4.0-Puddle         
python-requests.noarch     1.1.0-3.1.1.el6        @OpenStack-4.0-Puddle         
python-routes1.12.noarch   1.12.3-4.el6           @OpenStack-4.0-Puddle         
python-six.noarch          1.1.0-2.1.el6          @OpenStack-4.0-Puddle         
                           0.7.8-1.el6ost         @OpenStack-4.0-Puddle         
python-stevedore.noarch    0.11-1.el6ost          @OpenStack-4.0-Puddle         
python-swiftclient.noarch  1.6.0-1.el6ost         @OpenStack-4.0-Puddle         
python-urllib3.noarch      1.5-5.1.1.el6          @OpenStack-4.0-Puddle         
python-versiontools.noarch 1.9.1-3.el6            @OpenStack-4.0-Puddle         
python-warlock.noarch      1.0.1-1.el6ost         @OpenStack-4.0-Puddle         
python-webob1.0.noarch     1.0.8-3.el6            @OpenStack-4.0-Puddle         
python-webob1.2.noarch     1.2.3-2.2.el6ost       @OpenStack-4.0-Puddle         
python-websockify.noarch   0.5.1-1.el6ost         @OpenStack-4.0-Puddle         
pyxattr.x86_64             0.5.0-1.el6            @OpenStack-4.0-Puddle         
redhat-access-plugin-openstack.noarch
                           1.2.0-5.el6ost         @OpenStack-4.0-Puddle         
ruby-augeas.x86_64         0.4.1-1.el6ost         @OpenStack-4.0-Puddle         
ruby-shadow.x86_64         1.4.1-13.el6_4         @OpenStack-4.0-Puddle         
[root@spr4 glance(keystone_admin)]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.5 Beta (Santiago)
[root@spr4 glance(keystone_admin)]# uname -r
2.6.32-419.el6.x86_64
[root@spr4 glance(keystone_admin)]# 




How reproducible:


I've reproduced on more than one testbed using that latest couple of puddles.


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Steve Reichard 2013-10-21 13:09:41 UTC
I think I understand the issue.

While the parameter that exist in the file and is being set is named "qpid_host" I set the value to parameter "qpid_hostname" and was operational.

Comment 3 Flavio Percoco 2013-10-21 14:25:08 UTC
Correct, the right param is qpid_hostname as defined here: https://github.com/openstack/glance/blob/master/glance/notifier/notify_qpid.py#

I just submitted a patch to fix this. The patch should also be backported to Havana.

Comment 4 Flavio Percoco 2013-10-24 13:11:51 UTC
*** Bug 1021219 has been marked as a duplicate of this bug. ***

Comment 5 Flavio Percoco 2013-10-29 14:13:08 UTC
Patch backported to stable/havana

Comment 6 Flavio Percoco 2013-11-11 10:38:36 UTC
*** Bug 1028693 has been marked as a duplicate of this bug. ***

Comment 9 Flavio Percoco 2013-11-13 13:07:58 UTC
puppet-glance fix submitted

Comment 10 Alan Pevec 2013-11-14 11:29:54 UTC
(In reply to Flavio Percoco from comment #9)
> puppet-glance fix submitted

Included in openstack-packstack-2013.1.1-0.35.dev699.el6ost:
- Added 0017-Replace-qpid_host-with-qpid_hostname.patch

Comment 12 Alan Pevec 2013-11-14 11:57:12 UTC
> > puppet-glance fix submitted
> 
> Included in openstack-packstack-2013.1.1-0.35.dev699.el6ost:
> - Added 0017-Replace-qpid_host-with-qpid_hostname.patch

Above is 3.0.z build, also in RHOS 4.0 Beta build openstack-packstack-2013.2.1-0.10.dev846.el6ost:
- Added 0005-Replace-qpid_host-with-qpid_hostname.patch

Comment 14 Flavio Percoco 2013-11-15 17:34:41 UTC
*** Bug 1030067 has been marked as a duplicate of this bug. ***

Comment 16 Haim 2013-11-18 15:28:34 UTC
verified on openstack-glance-2013.2-3.el6ost.noarch

managed to set remote glance machine and create image.

Comment 17 Jeffrey C. Ollie 2013-11-18 18:37:55 UTC
Is this patch going to be added to the Fedora packages?  I'm seeing the same problems there.

Comment 21 errata-xmlrpc 2013-12-20 00:29:00 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.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


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