openstack task_state

2026-02-04

1、nova reset-state instance-id --active

nova reset-state --active ''

openstack server show ''
nova stop ''

nova list|grep id

2、Use nova; 进入nova数据库

select * from instances where uuid=’实例的ID ';

执行语句:UPDATE instances SET vm_state = 'active' and task_state =NULL where uuid = '实例ID';将实例状态更改为active、实例任务状态重置。

UPDATE instances SET power_state='1' where uuid='6f98fa6c-ce8c-4267-949d-952598908c17'; #修改电源状态是running power_state的状态是从0-4

UPDATE instances SET vm_state = 'active' where uuid='6f98fa6c-ce8c-4267-949d-952598908c17'; 修改状态是active

UPDATE instances SET task_state ='none' where uuid='6f98fa6c-ce8c-4267-949d-952598908c17';修改任务是none

分类:Linux | 标签: |

相关日志

评论被关闭!