问题描述
openstack的dashborad上调整云主机大小不生效,请问还需要什么设置吗?
解决方案
解决方案二:
看一下日志里报什么错误/var/log/nova/nova-compute.log
解决方案三:
2015-11-1816:57:04.9002373INFOnova.compute.manager[req-4bedfa28-5264-4487-8491-86df4f6d4d6d3f947fc05b3d4201b514ac31f777268bcc373009f68f47bd9e89f99ba94e2873---][instance:607151c1-c1aa-415d-a561-4c76cf36050e]SettinginstancebacktoACTIVEafter:Instancerollbackperformeddueto:Resizeerror:notabletoexecutesshcommand:Unexpectederrorwhilerunningcommand.Command:ssh192.168.1.234mkdir-p/var/lib/nova/instances/607151c1-c1aa-415d-a561-4c76cf36050eExitcode:255Stdout:u''Stderr:u'Hostkeyverificationfailed.rn'2015-11-1816:57:05.0002373INFOnova.scheduler.client.report[req-4bedfa28-5264-4487-8491-86df4f6d4d6d3f947fc05b3d4201b514ac31f777268bcc373009f68f47bd9e89f99ba94e2873---]Compute_servicerecordupdatedfor('compute2','compute2')2015-11-1816:57:05.3742373INFOnova.scheduler.client.report[req-4bedfa28-5264-4487-8491-86df4f6d4d6d3f947fc05b3d4201b514ac31f777268bcc373009f68f47bd9e89f99ba94e2873---]Compute_servicerecordupdatedfor('compute2','compute2')2015-11-1816:57:05.3762373ERRORoslo_messaging.rpc.dispatcher[req-4bedfa28-5264-4487-8491-86df4f6d4d6d3f947fc05b3d4201b514ac31f777268bcc373009f68f47bd9e89f99ba94e2873---]Exceptionduringmessagehandling:Resizeerror:notabletoexecutesshcommand:Unexpectederrorwhilerunningcommand.Command:ssh192.168.1.234mkdir-p/var/lib/nova/instances/607151c1-c1aa-415d-a561-4c76cf36050eExitcode:255Stdout:u''Stderr:u'Hostkeyverificationfailed.rn'2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherTraceback(mostrecentcalllast):2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py",line142,in_dispatch_and_reply2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherexecutor_callback))2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py",line186,in_dispatch2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherexecutor_callback)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py",line130,in_do_dispatch2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherresult=func(ctxt,**new_args)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line6890,inresize_instance2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherclean_shutdown=clean_shutdown)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/exception.py",line88,inwrapped2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherpayload)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py",line85,in__exit__2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatchersix.reraise(self.type_,self.value,self.tb)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/exception.py",line71,inwrapped2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherreturnf(self,context,*args,**kw)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line333,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherLOG.warning(msg,e,instance_uuid=instance_uuid)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py",line85,in__exit__2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatchersix.reraise(self.type_,self.value,self.tb)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line304,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherreturnfunction(self,context,*args,**kwargs)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line383,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherreturnfunction(self,context,*args,**kwargs)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line292,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatchermigration.instance_uuid,exc_info=True)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py",line85,in__exit__2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatchersix.reraise(self.type_,self.value,self.tb)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line269,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherreturnfunction(self,context,*args,**kwargs)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line361,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherkwargs['instance'],e,sys.exc_info())2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py",line85,in__exit__2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatchersix.reraise(self.type_,self.value,self.tb)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line349,indecorated_function2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherreturnfunction(self,context,*args,**kwargs)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line4078,inresize_instance2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherself.instance_events.clear_events_for_instance(instance)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/contextlib.py",line35,in__exit__2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherself.gen.throw(type,value,traceback)2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherFile"/usr/lib/python2.7/dist-packages/nova/compute/manager.py",line6479,in_error_out_instance_on_exception2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherraiseerror.inner_exception2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherResizeError:Resizeerror:notabletoexecutesshcommand:Unexpectederrorwhilerunningcommand.2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherCommand:ssh192.168.1.234mkdir-p/var/lib/nova/instances/607151c1-c1aa-415d-a561-4c76cf36050e2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherExitcode:2552015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherStdout:u''2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcherStderr:u'Hostkeyverificationfailed.rn'2015-11-1816:57:05.3762373TRACEoslo_messaging.rpc.dispatcher2015-11-1816:57:12.0342373INFOnova.compute.resource_tracker[req-7aad6e9a-52f1-492b-9d9c-540e44256f8e-----]Auditinglocallyavailablecomputeresourcesfornodecompute22015-11-1816:57:13.1772373INFOnova.compute.resource_tracker[req-7aad6e9a-52f1-492b-9d9c-540e44256f8e-----]Totalusablevcpus:32,totalallocatedvcpus:142015-11-1816:57:13.1772373INFOnova.compute.resource_tracker[req-7aad6e9a-52f1-492b-9d9c-540e44256f8e-----]Finalresourceview:name=compute2phys_ram=257836MBused_ram=37376MBphys_disk=4735GBused_disk=700GBtotal_vcpus=32used_vcpus=14pci_stats=<nova.pci.stats.PciDeviceStatsobjectat0x7f1b8ab16990>2015-11-1816:57:13.2032373INFOnova.scheduler.client.report[req-7aad6e9a-52f1-492b-9d9c-540e44256f8e-----]Compute_servicerecordupdatedfor('compute2','compute2')2015-11-1816:57:13.2032373INFOnova.compute.resource_tracker[req-7aad6e9a-52f1-492b-9d9c-540e44256f8e-----]Compute_servicerecordupdatedforcompute2:compute2
解决方案四:
我也遇到这个问题,请问您解决了吗
解决方案五:
计算节点直接需要配置SSH无密码登陆,可以参考我的博客http://blog.csdn.net/chinagissoft/article/details/50293981