Bug 1008447

Summary: Packstack fails with "Connection refused" for Glance (RDO, Havana, all in one with Neutron)
Product: [Community] RDO Reporter: Dave Neary <dneary>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED CURRENTRELEASE QA Contact: Tzach Shefi <tshefi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aortega, derekh, eglynn, fpercoco, mmagr, tshefi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-glance-2013.2-0.12.rc1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-12 09:38:48 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:
Attachments:
Description Flags
api.log
none
glance-api.conf
none
Glance api.log looks clean. none

Description Dave Neary 2013-09-16 11:41:04 UTC
While running packstack --allinone for RDO Havana on CentOS 6.4, I get the following error (extracted from openstack-setup.org): 

2013-09-16 13:29:09::ERROR::run_setup::913::root:: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 894, in main
    single_step_aio_install(options)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 667, in single_step_aio_install
    single_step_install(options)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 697, in single_step_install
    _main(answerfilepath)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 577, in _main
    runSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 554, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 90, in runAllSequences
    sequence.run(self.CONF)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 105, in run
    step.run(config=config)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 52, in run
    raise SequenceError(str(ex))
SequenceError: Error during puppet run : Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance -T services -I glance -K a94ba246ea6a41c1 -N http://192.168.0.2:35357/v2.0/ index' returned 1: Error communicating with http://192.168.0.2:9292 [Errno 111] Connection refused
 
This was a freshly reinstalled host.

Comment 1 Dave Neary 2013-09-16 11:49:13 UTC
Rerunning the installer with the same answer file ran through without an error.

Comment 2 Martin Magr 2013-09-30 14:20:37 UTC
<mmagr> fpercoco, 2013-09-30 14:32:47.662 21296 CRITICAL glance [-] 'glance.notifier.notify_qpid.QpidStrategy' is not an available notifier strategy.
<mmagr> fpercoco, everytime glance-api is run for the first time it fails with such
<magr> fpercoco, but restarting works and api does not complain any more
<mmagr> fpercoco, so is it bug in glance-api or is it invalid configuration from packstack?

Comment 3 Martin Magr 2013-09-30 14:22:07 UTC
Created attachment 805236 [details]
api.log

Comment 4 Martin Magr 2013-09-30 14:22:46 UTC
Created attachment 805238 [details]
glance-api.conf

Comment 5 Flavio Percoco 2013-10-01 13:20:16 UTC
I started debugging this issue. It's not clear what's going here. 

Looks like notify_qpid is failing[0]. My first guess is that python-qpid is not being isntalled along with glance - note it's not a glance requirement[1][2] - and instead, it's being installed later as part of other module[3]?. 
 

[0] https://github.com/openstack/glance/blob/master/glance/notifier/__init__.py#L72
[1] https://github.com/openstack/glance/blob/master/requirements.txt
[2] https://github.com/redhat-openstack/openstack-glance/blob/master/openstack-glance.spec
[3] https://github.com/redhat-openstack/openstack-cinder/blob/master/openstack-cinder.spec#L71

Comment 6 Martin Magr 2013-10-01 14:40:02 UTC
Indeed, from the quick check it looks like python-qpid is not installed during Glance installation. Thanks Flavio!

Comment 7 Pádraig Brady 2013-10-02 17:01:43 UTC
I came to the same conclusion when looking at bug 985825
and have a fix in testing

Comment 8 Tzach Shefi 2014-06-17 08:42:51 UTC
Verified on:
RHEL7
RHOS5 
python-glanceclient-0.12.0-1.el7ost.noarch
openstack-glance-2014.1-2.el7ost.noarch
python-glance-2014.1-2.el7ost.noarch
openstack-packstack-2014.1.1-0.22.dev1117.el7ost.noarch
openstack-packstack-puppet-2014.1.1-0.22.dev1117.el7ost.noarch

Packstack AIO (qpid+Neutron) 
Setup completed without errors, Glance basic image commands work. 

Glance api.log is clean no mention of -> CRITICAL glance [-] 'glance.notifier.notify_qpid.QpidStrategy' is not an available notifier strategy.critical error

On a side note can't test instance boot, "No valid host was found" but it's related to another BZ1103800

Comment 9 Tzach Shefi 2014-06-17 08:44:15 UTC
Created attachment 909482 [details]
Glance api.log looks clean.