i got the following errors when i was deploying openstack With devstack.2013-02-28 01:08:28 debug nova.utils [-] backend <module ' nova.db.sqlalchemy.migration ' from '/opt/stack/nova/nova/db/sqlalchemy/migration.pyc ' > from (pid=27011) __get_backend /opt/stack/nova/nova/utils.py:506command failed, please check log for more info2013-02-28 01:09:15 critical nova [-] ' module ' object has no attribute ' packs ' 2013-02-28 01:09:15 trace nova traceback (most recent call last): 2013-02-28 01:09:15 trace nova File "/opt/stack/nova/bin/nova-manage", line 1404, in <module> 2013-02-28 01:09:15 trace nova main () 2013-02-28 01:09:15 trace nova file "/opt/stack/nova/Bin/nova-manage ", line 1392, in main2013-02-28 01:09:15 trace nova Rpc.cleanup () 2013-02-28 01:09:15 trace nova file "/opt/stack/nova/nova/openstack/ common/rpc/__init__.py ", line 203, in cleanup2013-02-28 01:09:15 trace nova return _get_impl (). Cleanup () 2013-02-28 01:09:15 trace nova file "/opt/ stack/nova/nova/openstack/common/rpc/__init__.py ", line 264, in _get_impl2013-02-28 01:09:15 trace nova _rpcimpl = importutils.import_module (CFG. Conf.rpc_backend) 2013-02-28 01:09:15 trace nova file "/opt/stack/nova/nova/openstack/ common/importutils.py ", line 58, in import_module2013-02-28 01:09:15 trace nova __import__ (IMPORT_STR) 2013-02-28 01:09:15 trace nova file "/opt/stack/nova/ nova/openstack/common/rpc/impl_kombu.py ", line 30, in <module>2013-02-28 01:09:15 trace nova import kombu.messaging2013-02-28 01:09:15 trace nova file "/usr/lib/python2.7/site-packages/ kombu/messaging.py ", line 15, in <module>2013-02-28 01:09:15 trace Nova from kombu.serialization import encode2013-02-28 01:09:15 trace nova File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 300, in <module>2013-02-28 01:09:15 trace nova register_msgpack () 2013-02-28 01:09:15 TRACE nova File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 282, in register_msgpack2013-02-28 01:09:15 trace nova registry.register (' Msgpack ', msgpack.packs, msgpack.unpacks,2013-02-28 01:09:15 trace nova attributeerror: ' module ' object has no attribute ' packs ' 2013-02-28 01:09:15 trace nova++ failed++ local r=1+++ jobs -p++ kill++ set +o xtrace
Workaround: 1, yun -y install msgpack-python2,modif vim /usr/lib/python2.6/ Site-packages/kombu-1.1.3-py2.6.egg/kombu/serialization.py 278 def register_ Msgpack (): 279 "" "see http://msgpack.sourceforge.net/" "" 280 try: 281 import msgpack 282 # Registry.register (' Msgpack ', msgpack.packs, msgpack.unpacks, #修改msgpack .pack 283 registry.register (' Msgpack ', msgpack.pack, msgpack.unpack, 284 Content_type= ' Application/x-msgpack ', 285 content_encoding= ' binary ') 286 except importerror: 287 288 def not_available (*args, **kwargs): 289 "" "In case a client receives a msgpack&nbSp;message, but yaml 290 isn ' t installed. ' "" " 291 raise serializernotinstalled ( 292 "no decoder installed for msgpack. " 293 " install the Msgpack library ") 294 registry.register (' Msgpack ', None, not_ available, 295 ' Application/x-msgpack ')
This article from "Welcome comments, Welcome to like" blog, please be sure to keep this source http://swq499809608.blog.51cto.com/797714/1630492
TRACE Nova attributeerror: ' Module ' object has no attribute ' packs ' workaround