Bug 1097306
Summary: | Packstack allinone installation fails when using qpidd as a messaging service | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Petr Matousek <pematous> | ||||
Component: | openstack-packstack | Assignee: | Lukas Bezdicka <lbezdick> | ||||
Status: | CLOSED ERRATA | QA Contact: | Ami Jeain <ajeain> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 5.0 (RHEL 7) | CC: | acathrow, adahms, aortega, derekh, eglynn, esammons, fpercoco, jross, lbezdick, lhh, ltoscano, lzhaldyb, mmagr, pematous, psedlak, yeylon, zkraus | ||||
Target Milestone: | rc | ||||||
Target Release: | 5.0 (RHEL 7) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-packstack-2014.1.1-0.17.dev1102.el7ost | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, the PackStack all-in-one installation process would time out and fail under certain conditions when QPID was specified as the messaging service. This was caused by the logic used to interact with QPID, whereby PackStack would specify a deprecated option for QPID during installation of Glance and would specify a different location for the qpidd.conf file for Red Hat Enterprise Linux 7.0. Now, this logic has been revised to update the deprecated option and specify the same location for the qpidd.conf file for all versions of Red Hat Enterprise Linux, allowing the all-in-one installation process to complete all affected steps successfully.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-07-08 15:38:29 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: | |||||||
Bug Depends On: | 1102040, 1143749 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Petr Matousek
2014-05-13 14:16:27 UTC
I forget to list the openstack packages version, please see below: # rpm -qa | grep openstack openstack-keystone-2014.1-2.el7ost.noarch openstack-neutron-openvswitch-2014.1-14.el7ost.noarch redhat-access-plugin-openstack-5.0.0-2.el7ost.noarch openstack-swift-proxy-1.13.1-1.el7ost.noarch openstack-glance-2014.1-2.el7ost.noarch openstack-swift-container-1.13.1-1.el7ost.noarch openstack-puppet-modules-2014.1-9.el7ost.noarch openstack-nova-common-2014.1-2.el7ost.noarch openstack-nova-console-2014.1-2.el7ost.noarch openstack-nova-compute-2014.1-2.el7ost.noarch openstack-nova-scheduler-2014.1-2.el7ost.noarch openstack-neutron-2014.1-14.el7ost.noarch python-django-openstack-auth-1.1.5-2.el7ost.noarch openstack-dashboard-theme-2014.1-4.el7ost.noarch openstack-swift-object-1.13.1-1.el7ost.noarch openstack-packstack-2014.1.1-0.11.1.dev1055.el7ost.noarch openstack-nova-api-2014.1-2.el7ost.noarch openstack-nova-conductor-2014.1-2.el7ost.noarch openstack-nova-cert-2014.1-2.el7ost.noarch openstack-dashboard-2014.1-4.el7ost.noarch openstack-swift-1.13.1-1.el7ost.noarch openstack-swift-plugin-swift3-1.7-3.el7ost.noarch openstack-utils-2014.1-1.el7ost.noarch openstack-ceilometer-common-2014.1-2.1.el7ost.noarch openstack-swift-account-1.13.1-1.el7ost.noarch openstack-packstack-puppet-2014.1.1-0.11.1.dev1055.el7ost.noarch openstack-cinder-2014.1-3.el7ost.noarch openstack-nova-novncproxy-2014.1-2.el7ost.noarch why is this opened on glance and not on packstack or qpid? (In reply to Dafna Ron from comment #2) > why is this opened on glance and not on packstack or qpid? I'm very new to openstack, so I'm not very familiar with the components so far, sorry. -> changing to packstack component. If QPID is set as AMQP backend then notification_strategy has to be set to qpid. Changing back to Glance. Not much can be done from our point unless. (In reply to Martin Magr from comment #4) > If QPID is set as AMQP backend then notification_strategy has to be set to > qpid. Changing back to Glance. Not much can be done from our point unless. I'm not sure why you moved this to glance. I see we fail to download cirus image but there are multiple errors for Neutron... i would think this is related to iptables configuration and not to glance. Notice: /Stage[main]/Main/Firewall[000 forward out]/ensure: created Error: Could not prefetch neutron_network provider 'neutron': Execution of '/usr/bin/neutron net-list --format=csv --column=id --quote=none' returned 1: Connection to neutron failed: Maximum attempts reached Error: Execution of '/usr/bin/neutron net-create --format=shell --tenant_id=1869ca35720e4f62b3de1a8c8ebc04de --router:external=True public' returned 1: Connection to neutron failed: [Errno 111] Connection refused Error: /Stage[main]/Openstack::Provision/Neutron_network[public]/ensure: change from absent to present failed: Execution of '/usr/bin/neutron net-create --format=shell --tenant_id=1869ca35720e4f62b3de1a8c8ebc04de --router:external=True public' returned 1: Connection to neutron failed: [Errno 111] Connection refused Hmm, Dafna is right, iptables might be the cause. Petr, can you please paste here output of "sudo iptables -L"? Thanks in advance Let have failed install of openstack via packstack with qpid.
I've added a little print of driver beeing loaded at glance-api by oslo.messaging.transport and stevedore.driver like this:
/usr/lib/python2.7/site-packages/oslo/messaging/transport.py
mgr = driver.DriverManager('oslo.messaging.drivers',
url.transport,
invoke_on_load=True,
invoke_args=[conf, url],
invoke_kwds=kwargs)
print mgr.driver
diff:
183a184
> print mgr.driver
and when I launch /usr/bin/glance-api -d this show up:
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x357fa90>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x429f950>
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x446b850>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x446b910>
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x446d490>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x446d550>
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x446e050>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x446e150>
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x446ed10>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x446edd0>
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x450ed90>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x450ee90>
<oslo.messaging._drivers.impl_rabbit.RabbitDriver object at 0x4518090>
<oslo.messaging._drivers.impl_qpid.QpidDriver object at 0x4518190>
is this expected?
1. I think we should find out if we are supporting new installations using qpid or just supporting old ones? 2. I think we should install either rabbit or qpid. so when selecting qpid we should not see anything related to rabbit. can you please run rpm -qa |grep rabbit; rpm -qa |grep qpid and see if the packages are installed at all? another option - perhaps some of the services packages have dependencies for rabbit? Note: I have made a successful installation with qpid as the amqp back-end without neutron installed. The timeout reported in the description is workarounded by setting notifier_strategy = noop in /etc/glance/glance-api.conf. The we end up with the following error: ERROR : Error appeared during Puppet run: <ip>_provision.pp Error: Could not prefetch neutron_network provider 'neutron': Execution of '/usr/bin/neutron net-list --format=csv --column=id --quote=none' returned 1: Connection to neutron failed: Maximum attempts reached You will find full trace in log /var/tmp/packstack/20140514-095117-Tlljex/manifests/10.16.68.52_provision.pp.log If the answer file is modified to not install neutron, the installation success. Honestly, I don't have a clue what does this setup mean and if qpidd is utilized at all (no traffic seen on qpidd side). This is obviously not solution, just a note. Dafna, [root ~]# rpm -qa |grep rabbit [root ~]# rpm -qa |grep qpid qpid-cpp-server-0.18-22.el7.x86_64 python-qpid-qmf-0.18-20.el7.x86_64 ruby-qpid-qmf-0.18-20.el7.x86_64 qpid-qmf-0.18-20.el7.x86_64 qpid-cpp-client-ssl-0.18-22.el7.x86_64 qpid-cpp-server-cluster-0.18-22.el7.x86_64 qpid-cpp-server-rdma-0.18-22.el7.x86_64 rh-qpid-cpp-tests-0.18-22.el7.x86_64 qpid-cpp-server-store-0.18-22.el7.x86_64 qpid-cpp-server-ssl-0.18-22.el7.x86_64 qpid-tools-0.18-10.el7.noarch qpid-cpp-server-ha-0.18-22.el7.x86_64 qpid-cpp-client-rdma-0.18-22.el7.x86_64 qpid-cpp-client-devel-0.18-22.el7.x86_64 qpid-cpp-server-devel-0.18-22.el7.x86_64 qpid-tests-0.18-2.el7.noarch qpid-qmf-devel-0.18-20.el7.x86_64 qpid-qmf-debuginfo-0.18-20.el7.x86_64 qpid-cpp-client-0.18-22.el7.x86_64 python-qpid-0.18-10.el7.noarch qpid-cpp-debuginfo-0.18-22.el7.x86_64 on that machine I've installed openstac with only qpid. but I've discovered that only on those QpidDrivers the transport and notifier is created. Also I have openstack with rabbit installed succesfully and there are also only half of driver used (but obviously there are all of them rabbits). so IMO this is not the issue. (In reply to Petr Matousek from comment #11) > Note: I have made a successful installation with qpid as the amqp back-end > without neutron installed. This is just an update to the note above, it is not true that the neutron component is not installed, summarizing: I can perform successful installation with qpidd following way: 1. packstack --allinone --amqp-server=qpid 2. installation fails on the issue described in comment 0 3. disable neutron installation in the answer file (neutron was already installed in 1.) 4. disable notifications in /etc/glance/glance-api.conf 5. rerun packstack installation 6. installation succeeds The installation seems to be working, ie: - openstack-reports all the services running (including neutron), - user is able to create instances, use the console, etc.. via the dashboard - some traffic seen on qpidd side when working with the dashboard (reply queues creation, ceilometer logs) Again, this is not a solution, just a note. There was another workaround suggested by rhos qe folks. There shall be two prerequisites met in order to make a successful installation: 1. selinux in permissive mode 2. symbolic link /etc/qpid/qpidd.conf -> /etc/qpidd.conf Unfortunately, this does not help and the installation ends again on the issue reported in comment 0. For glance: notifier_driver=qpid instead of notifier_strategy = qpid For qpid: drop the template case for rhos 7 so openstack-puppet-moudles need to have at least puppet-glance with patch 13b832ddf26a2ba4defcf051a0e20940df71cdcd and we'll have to patch packstack package for this. When the qpid.pp for glance is updated to use the notifier_driver instead of the notifier_strategy, the originally reported error is gone, but the installation fails again immediately on the next error, that can also be seen in comment 0 logs: ERROR : Error appeared during Puppet run: <host_ip>_provision.pp Error: Could not prefetch neutron_network provider 'neutron': Execution of '/usr/bin/neutron net-list --format=csv --column=id --quote=none' returned 1: Connection to neutron failed: Maximum attempts reached Note: this was seen on fresh installation. Logs may be provided on demand. Just a quick note: I see this error also when using rabbitmq. Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: <host_ip>_provision.pp Error: Could not prefetch neutron_network provider 'neutron': Execution of '/usr/bin/neutron net-list --format=csv --column=id --quote=none' returned 1: Connection to neutron failed: Maximum attempts reached You will find full trace in log /var/tmp/packstack/20140527-114456-DjC6dN/manifests/<host_ip>_provision.pp.log # rpm -qa |grep rabbit rabbitmq-server-3.1.5-6.0.el7ost.noarch # rpm -qa |grep qpid python-qpid-0.18-10.el7.noarch (I didn't install the python-qpid package) Packstack: [root@hp-sl4545g7-01 ~]# rpm -qa |grep rabbit rabbitmq-server-3.1.5-6.0.el7ost.noarch [root@hp-sl4545g7-01 ~]# rpm -qa |grep qpid python-qpid-0.18-10.el7.noarch Created attachment 899613 [details]
amqp_qpidd_018.patch
*** Bug 1098493 has been marked as a duplicate of this bug. *** verified using the command: #packstack --allinone --amqp-backend=qpid # rpm -qa |grep openstack-packstack openstack-packstack-2014.1.1-0.22.dev1117.el7ost.noarch 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-2014-0846.html |