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

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