Updating power_state in the DB to match the hypervisor
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
本文出自 “学海无涯苦作伴” 博客,请务必保留此出处http://linuxshow.blog.51cto.com/1572053/1979377
以上是关于Updating power_state in the DB to match the hypervisor的主要内容,如果未能解决你的问题,请参考以下文章
pandas基于条件判断更新dataframe中特定数据列数值内容的值(Conditionally updating values in specific pandas Dataframe )
pandas基于applymap函数和lambda条件判断并基于规则函数更新dataframe中所有数据列数值内容的值(Conditionally updating values in pandas
Error updating database. Cause: java.sql.BatchUpdateException: Field 'id' doesn't have a