nova reset-state deleting openstack 删除 虚拟机


nova reset-state c581153e-38e3-4c4c-a13e-7e7e0224e304 --active

nova delete c581153e-38e3-4c4c-a13e-7e7e0224e304


[root@ctl1 ~(keystone_admin)]# nova list
+--------------------------------------+-----------------+---------+------------+-------------+-------------------------------+
| ID                                   | Name            | Status  | Task State | Power State | Networks                      |
+--------------------------------------+-----------------+---------+------------+-------------+-------------------------------+
| 91c65f4c-cc83-4baa-9c86-4d51a49dae21 | Peformence_Test | SHUTOFF | -          | Shutdown    | n1=16.16.16.4                 |
| c581153e-38e3-4c4c-a13e-7e7e0224e304 | t2              | ACTIVE  | deleting   | Running     | n1=16.16.16.2, 192.168.234.24 |
+--------------------------------------+-----------------+---------+------------+-------------+-------------------------------+

[root@ctl1 ~(keystone_admin)]# nova reset-state c581153e-38e3-4c4c-a13e-7e7e0224e304 --active
[root@ctl1 ~(keystone_admin)]# nova list
+--------------------------------------+-----------------+--------+------------+-------------+-------------------------------+
| ID                                   | Name            | Status | Task State | Power State | Networks                      |
+--------------------------------------+-----------------+--------+------------+-------------+-------------------------------+
| 91c65f4c-cc83-4baa-9c86-4d51a49dae21 | Peformence_Test | ACTIVE | -          | Running     | n1=16.16.16.4                 |
| c581153e-38e3-4c4c-a13e-7e7e0224e304 | t2              | ACTIVE | -          | Running     | n1=16.16.16.2, 192.168.234.24 |
+--------------------------------------+-----------------+--------+------------+-------------+-------------------------------+
[root@ctl1 ~(keystone_admin)]# nova delete c581153e-38e3-4c4c-a13e-7e7e0224e304
Request to delete server c581153e-38e3-4c4c-a13e-7e7e0224e304 has been accepted.
[root@ctl1 ~(keystone_admin)]# nova list
+--------------------------------------+-----------------+--------+------------+-------------+---------------+
| ID                                   | Name            | Status | Task State | Power State | Networks      |
+--------------------------------------+-----------------+--------+------------+-------------+---------------+
| 91c65f4c-cc83-4baa-9c86-4d51a49dae21 | Peformence_Test | ACTIVE | -          | Running     | n1=16.16.16.4 |
+--------------------------------------+-----------------+--------+------------+-------------+---------------+


你可能感兴趣的:(openstack,linux)