emc-xchallenge / nova

OpenStack Compute (Nova)
http://openstack.org
Apache License 2.0
0 stars 3 forks source link

[nova]Lock required in nova reboot server operation #9

Open jybuestc opened 8 years ago

jybuestc commented 8 years ago

Description: Lock required in nova reboot server operation

Project: OpenStack

Project Area: nova

Release: OpenStack

Severity: S1

Full Details:

Now nova can receive 2nd reboot request even if 1st reboot is ongoing. A lock is required when it's being reboot.

stack@ubuntu:~$ nova reboot aba46ead-87fb-40ff-9df4-9bf4739bda96 Request to reboot server has been accepted. stack@ubuntu:~$ nova reboot --hard aba46ead-87fb-40ff-9df4-9bf4739bda96 Request to reboot server has been accepted. stack@ubuntu:~$ nova reboot --hard aba46ead-87fb-40ff-9df4-9bf4739bda96 Request to reboot server has been accepted. stack@ubuntu:~$ nova list +--------------------------------------+-----------+-------------+---------------------+-------------+--------------------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-----------+-------------+---------------------+-------------+--------------------------------------------------------+ | aba46ead-87fb-40ff-9df4-9bf4739bda96 | CentOS_VM | HARD_REBOOT | reboot_pending_hard | Running | private=10.0.0.4, fd49:d2f7:ca05:0:f816:3eff:fe60:1823 | +--------------------------------------+-----------+-------------+---------------------+-------------+--------------------------------------------------------+ stack@ubuntu:~$ nova reboot aba46ead-87fb-40ff-9df4-9bf4739bda96 Request to reboot server has been accepted. stack@ubuntu:~$ nova list +--------------------------------------+-----------+--------+----------------+-------------+--------------------------------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-----------+--------+----------------+-------------+--------------------------------------------------------+ | aba46ead-87fb-40ff-9df4-9bf4739bda96 | CentOS_VM | REBOOT | reboot_started | Running | private=10.0.0.4, fd49:d2f7:ca05:0:f816:3eff:fe60:1823 | +--------------------------------------+-----------+--------+----------------+-------------+--------------------------------------------------------+ stack@ubuntu:~$ nova reboot --hard aba46ead-87fb-40ff-9df4-9bf4739bda96 Request to reboot server has been accepted.