Updating power_state in the DB to match the hypervisor

报错信息如下:

2017-10-02 22:42:02.944 80378 INFO nova.compute.manager [req-347dcc06-13cb-4ced-a10d-b21bf4427430 - - - - -] [instance: ec21b955-8d9c-4c42-ab33-ce5d32d6ba61] During _sync_instance_power_state the DB power_state (1) does not match the vm_power_state from the hypervisor (4). Updating power_state in the DB to match the hypervisor.

2017-10-02 22:42:03.009 80378 WARNING nova.compute.manager [req-347dcc06-13cb-4ced-a10d-b21bf4427430 - - - - -] [instance: ec21b955-8d9c-4c42-ab33-ce5d32d6ba61] Instance shutdown by itself. Calling the stop API. Current vm_state: active, current task_state: None, original DB power_state: 1, current VM power_state: 4

2017-10-02 22:42:03.116 80378 INFO nova.compute.manager [req-347dcc06-13cb-4ced-a10d-b21bf4427430 - - - - -] [instance: ec21b955-8d9c-4c42-ab33-ce5d32d6ba61] Instance is already powered off in the hypervisor when stop is called.

2017-10-02 22:42:03.171 80378 INFO nova.virt.libvirt.driver [req-347dcc06-13cb-4ced-a10d-b21bf4427430 - - - - -] [instance: ec21b955-8d9c-4c42-ab33-ce5d32d6ba61] Instance already shutdown.


解决办法:

修改配置文件/etc/nova/nova.conf

sync_power_state_interval=-1

这个是管理层面用来检测虚拟机电源状态的参数,导致了计算节点上面的虚拟主机莫名其妙关机.


参考文档:http://www-01.ibm.com/support/docview.wss?uid=nas8N1020669

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章