问题描述
nova-manageservicelist,服务正确但是novalist虚拟机状态是Error查看/var/log/nova/schedula/nova-scheduler.log2015-04-1400:47:09.020ERRORnova.scheduler.filter_scheduler[req-2bf71234-4789-43ca-9ae3-d45b782213c498e0d557d9ce49e8b8059f7727d90a67a5f0601bba1242bab079d2134622eade][instance:7d24122e-d0f2-46e8-9ac8-89fcbc30378c]Errorfromlasthost:compute1(nodecompute1):[u'Traceback(mostrecentcalllast):n',u'File"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line864,in_run_instancenset_access_ip=set_access_ip)n',u'File"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line1123,in_spawnnLOG.exception(_('Instancefailedtospawn'),instance=instance)n',u'File"/usr/lib/python2.7/contextlib.py",line24,in__exit__nself.gen.next()n',u'File"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line1118,in_spawnnself._legacy_nw_info(network_info),n',u'File"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line703,in_legacy_nw_infonnetwork_info=network_info.legacy()n',u"AttributeError:'list'objecthasnoattribute'legacy'n"]2015-04-1400:47:09.038WARNINGnova.scheduler.driver[req-2bf71234-4789-43ca-9ae3-d45b782213c498e0d557d9ce49e8b8059f7727d90a67a5f0601bba1242bab079d2134622eade][instance:7d24122e-d0f2-46e8-9ac8-89fcbc30378c]SettinginstancetoERRORstate.希望大神们能帮帮解决这个问题。。。。
解决方案
本帖最后由 lfdanding 于 2015-04-14 13:51:56 编辑
解决方案二:
解决方案/var/lock/nova的权限是nova:root,应该是nova:novachown-Rnova:nova/var/lock/nova