Ask Your Question
0

nova-manage db sync: "...No module named rabbit.." and much more [closed]

asked 2014-06-11 10:21:08 -0600

stennisCRC gravatar image

updated 2014-06-13 17:13:52 -0600

smaffulli gravatar image

So I'm pretty new to all this. I've managed to get Glance and Keystone up on a controller node but Nova is proving to be a serious headache. When I run nova-manage db sync the line in nova.conf "rpc_backend=rabbit" cause this:

2014-06-11 15:05:42.228 2429 CRITICAL nova [-] No module named rabbit
2014-06-11 15:05:42.228 2429 TRACE nova Traceback (most recent call last):
2014-06-11 15:05:42.228 2429 TRACE nova   File "/usr/bin/nova-manage", line 10, in <module>
2014-06-11 15:05:42.228 2429 TRACE nova     sys.exit(main())
2014-06-11 15:05:42.228 2429 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1378, in main
2014-06-11 15:05:42.228 2429 TRACE nova     rpc.cleanup()
2014-06-11 15:05:42.228 2429 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 239, in cleanup
2014-06-11 15:05:42.228 2429 TRACE nova     return _get_impl().cleanup()
2014-06-11 15:05:42.228 2429 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 305, in _get_impl
2014-06-11 15:05:42.228 2429 TRACE nova     _RPCIMPL = importutils.import_module(impl)
2014-06-11 15:05:42.228 2429 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 59, in import_module
2014-06-11 15:05:42.228 2429 TRACE nova     __import__(import_str)
2014-06-11 15:05:42.228 2429 TRACE nova ImportError: No module named rabbit
2014-06-11 15:05:42.228 2429 TRACE nova

The service rabbitmq-server is up and running as verified by running sudo service rabbitmq-server status

Can anyone offer some advise, could I have made mistakes in the install or configuration of rabbit?

Here is my nova.conf if that helps (also if you spot any other errors in the config please let me know)

I replaced the "#" comments with "//" as they screwed with the formatting of this message)

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
api_paste_config=/etc/nova/api-paste.ini
keystone_ec2_url=http://172.16.0.200:5000/v2.0/ec2tokens
enabled_apis=ec2,osapi_compute,metadata
#Libvirt and Virtualization
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
libvirt_type=qemu
//Database
sql_connection=mysql://nova:openstack@172.16.0.200/nova
//Messaging
rpc_backend=rabbit
rabbit_host=172.16.0.200
rabbit_password=openstack
//EC2 API Flags
ec2_host=172.16.0.200
ec2_dmz_host=172.16.0.200
ec2_private_dns_show_ip=True
//Networking
public_interface=eth1
force_dhcp_release=True
auto_assign_floating_ip=True
//Images
image_service=nova.image.glance.GlanceImageService
glance_api_servers=172.16.0.200:9292
//Scheduler
scheduler_default_filters=AllHostsFilter
//Object Storage
iscsi_helper=tgtadm
//Auth
auth_strategy=keystone

I also have a hefty number of other issues with nova at the moment so any nova install experts out there, your time would be greatly appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-17 07:06:59.301898

Comments

Did you install rabbitmq-server on Controller http://docs.openstack.org/high-availa...

dbaxps gravatar imagedbaxps ( 2014-06-11 10:34:52 -0600 )edit

I have rabbitmq-server installed when i try to install the plugins I get an unable to locate package error.

stennisCRC gravatar imagestennisCRC ( 2014-06-11 10:47:04 -0600 )edit

sorry man, I know I know I've probably just done something dumb

stennisCRC gravatar imagestennisCRC ( 2014-06-11 10:52:54 -0600 )edit

Which version of OpenStack you are trying to install, Havana or Icehouse?

Alen Komljen gravatar imageAlen Komljen ( 2014-06-16 02:37:30 -0600 )edit

Could you please share how you solve this issue? I met the same issue. I installed pyrabbit as pip install pyrabbit. But there still the log shows no rabbit module. Also It is the same when I use python CLI as import rabbit

yuecong1104 gravatar imageyuecong1104 ( 2014-11-27 18:39:49 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-06-13 17:22:02 -0600

smaffulli gravatar image

Just a wild guess: python may be complaining that it's missing pyrabbit. Install it. Maybe edit your question to specify how you installed everything else (packages or devstack or what? on which OS?) so others can give you more clues.

edit flag offensive delete link more
0

answered 2014-06-14 07:38:38 -0600

mriedem gravatar image

Do you have kombu installed on the controller? I think that's the client library that talks to the rabbitmq server.

The rpc_backend config option looks correct otherwise given this:

http://docs.openstack.org/icehouse/co...

edit flag offensive delete link more
0

answered 2014-06-16 10:33:51 -0600

stennisCRC gravatar image

Upgraded to IceHouse from Grizzly issue no longer present

edit flag offensive delete link more

Comments

That is because rabbit module for rpc_backend didn't exists before Icehouse release.

Alen Komljen gravatar imageAlen Komljen ( 2014-06-17 05:13:23 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-06-11 10:21:08 -0600

Seen: 3,137 times

Last updated: Jun 16 '14