TRACE nova AttributeError: 'module' object has no attribute 'packs' 解决...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 IgotthefollowingerrorswhenIwasdeployingOpenStack with devstack. 2013 - 02 - 28 01 : 08 : 28 DEBUGnova.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: 50 6 Commandfailed,pleasechecklog for moreinfo 2013 - 02 - 28 01 : 09 : 15 CRITICALnova[-] 'module' objecthasnoattribute 'packs' 2013 - 02 - 28 01 : 09 : 15 TRACEnovaTraceback(mostrecentcalllast): 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/opt/stack/nova/bin/nova-manage" ,line 1404 , in <module> 2013 - 02 - 28 01 : 09 : 15 TRACEnovamain() 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/opt/stack/nova/bin/nova-manage" ,line 1392 , in main 2013 - 02 - 28 01 : 09 : 15 TRACEnovarpc.cleanup() 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/opt/stack/nova/nova/openstack/common/rpc/__init__.py" ,line 203 , in cleanup 2013 - 02 - 28 01 : 09 : 15 TRACEnova return _get_impl().cleanup() 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/opt/stack/nova/nova/openstack/common/rpc/__init__.py" ,line 264 , in _get_impl 2013 - 02 - 28 01 : 09 : 15 TRACEnova_RPCIMPL=importutils.import_module(cfg.CONF.rpc_backend) 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/opt/stack/nova/nova/openstack/common/importutils.py" ,line 58 ,i nimport_module 2013 - 02 - 28 01 : 09 : 15 TRACEnova__import__(import_str) 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py" ,line 30 , in <module> 2013 - 02 - 28 01 : 09 : 15 TRACEnova import kombu.messaging 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/usr/lib/python2.7/site-packages/kombu/messaging.py" ,line 15 , in <module> 2013 - 02 - 28 01 : 09 : 15 TRACEnovafromkombu.serialization import encode 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/usr/lib/python2.7/site-packages/kombu/serialization.py" ,line 30 0 , in <module> 2013 - 02 - 28 01 : 09 : 15 TRACEnovaregister_msgpack() 2013 - 02 - 28 01 : 09 : 15 TRACEnovaFile "/usr/lib/python2.7/site-packages/kombu/serialization.py" ,line 28 2 , in register_msgpack 2013 - 02 - 28 01 : 09 : 15 TRACEnovaregistry.register( 'msgpack' ,msgpack.packs,msgpack.unpacks, 2013 - 02 - 28 01 : 09 : 15 TRACEnovaAttributeError: 'module' objecthasnoattribute 'packs' 2013 - 02 - 28 01 : 09 : 15 TRACEnova ++failed ++localr= 1 +++jobs-p ++kill ++ set +ox trace 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 解决办法: 1,yun-y install msgpack-python 2,modifvim /usr/lib/python2 .6 /site-packages/kombu-1 .1.3-py2.6.egg /kombu/serialization .py 278defregister_msgpack(): 279 "" "Seehttp://msgpack.sourceforge.net/" "" 280try: 281 import msgpack 282 #registry.register('msgpack',msgpack.packs,msgpack.unpacks,#修改msgpack.pack 283registry.register( 'msgpack' ,msgpack.pack,msgpack.unpack, 284content_type= 'application/x-msgpack' , 285content_encoding= 'binary' ) 286exceptImportError: 287 288defnot_available(*args,**kwargs): 289 "" "In case aclientreceivesamsgpackmessage,butyaml 290isn'tinstalled. "" " 291raiseSerializerNotInstalled( 292 "Nodecoderinstalledformsgpack." 293 "Installthemsgpacklibrary" ) 294registry.register( 'msgpack' ,None,not_available, 295 'application/x-msgpack' ) 本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1630492