[rhos-list] nova-manage db sync error

Shixiong Shang (shshang) shshang at cisco.com
Thu Feb 7 18:59:54 UTC 2013



Got it! Thanks, Padraig! Thanks, David!

Shixiong








On 2/7/13 1:57 PM, "Pádraig Brady" <pbrady at redhat.com> wrote:

>On 02/07/2013 06:41 PM, Shixiong Shang (shshang) wrote:
>> Hi, experts:
>>
>> I am trying to issue the following command on nova node to sync with
>>db, but it returns with error:
>>
>> [root at as-ctl1 bin]# sudo nova-manage db sync
>> 2013-02-07 13:36:25 19362 DEBUG nova.utils [-] backend <module
>>'nova.db.sqlalchemy.migration' from
>>'/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.pyc'>
>>__get_backend /usr/lib/python2.6/site-packages/nova/utils.py:502
>> Command failed, please check log for more info
>> 2013-02-07 13:36:25 19362 CRITICAL nova [-] No module named kombu
>> 2013-02-07 13:36:25 19362 TRACE nova Traceback (most recent call last):
>> 2013-02-07 13:36:25 19362 TRACE nova   File "/usr/bin/nova-manage",
>>line 1403, in <module>
>> 2013-02-07 13:36:25 19362 TRACE nova     main()
>> 2013-02-07 13:36:25 19362 TRACE nova   File "/usr/bin/nova-manage",
>>line 1391, in main
>> 2013-02-07 13:36:25 19362 TRACE nova     rpc.cleanup()
>> 2013-02-07 13:36:25 19362 TRACE nova   File
>>"/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/__init__.py",
>> line 203, in cleanup
>> 2013-02-07 13:36:25 19362 TRACE nova     return _get_impl().cleanup()
>> 2013-02-07 13:36:25 19362 TRACE nova   File
>>"/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/__init__.py",
>> line 269, in _get_impl
>> 2013-02-07 13:36:25 19362 TRACE nova     _RPCIMPL =
>>importutils.import_module(impl)
>> 2013-02-07 13:36:25 19362 TRACE nova   File
>>"/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py",
>>line 58, in import_module
>> 2013-02-07 13:36:25 19362 TRACE nova     __import__(import_str)
>> 2013-02-07 13:36:25 19362 TRACE nova   File
>>"/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/impl_kombu.py
>>", line 27, in <module>
>> 2013-02-07 13:36:25 19362 TRACE nova     import kombu
>> 2013-02-07 13:36:25 19362 TRACE nova ImportError: No module named kombu
>> 2013-02-07 13:36:25 19362 TRACE nova
>>
>> Seems like it is missing python kombu module. I am using Preview plus
>>RHEL 6.4 beta. Any suggestions?
>
>This is fallout from our rearrangement of config variables.
>
>Everything used to be in /etc/nova/nova.conf
>and that's the default file read by nova-manage.
>
>However we changed some distribution specific config vars,
>that end users wouldn't need to touch out to
>/usr/share/nova/nova-dist.conf,
>and that's where rpc_backend is set to "qpid".
>Unfortunately nova-manage is unaware of that.
>
>So to work around the issue I suggest adding this to /etc/nova/nova.conf
>rpc_backend = nova.openstack.common.rpc.impl_qpid
>
>The sample applies for /etc/cinder/cinder.conf
>
>We'll fix this issue for the next version of these packages.
>
>thanks,
>Pádraig.





More information about the rhos-list mailing list