With grizzly 1:2013.1+git201303180832~precise-0ubuntu1
Doing
nova reboot --hard test;nova reboot --hard test
causes the following ERROR in the log. The second reboot is returning 422. I presume the second call is expected to fail though 422 is not one of the codes mentioned in the spec. If so, there should not be an ERROR in the log. Interestingly, if you do the same thing with soft reboot, there is no error and the response to the second call is 409.
Mar 19 10:58:09 se11-1eth0 2013-03-19 10:58:09.154 ERROR nova.api.openstack.compute.servers [req-3ca09d16-7195-43cc-b0c8-4e52ac334920 5dda90b838634950ae3bb5e43b9225e0 8f6f26e2d384488989abad72c7f2612f] [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] Error in reboot unexpected task state: expecting [None, 'rebooting'] but the actual state is rebooting_hard#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] Traceback (most recent call last):#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 1072, in _action_reboot#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] self.compute_api.reboot(context, instance, reboot_type)#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 163, in wrapped#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] return func(self, context, target, *args, **kwargs)#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 153, in inner#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] return function(self, context, instance, *args, **kwargs)#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 134, in inner#0122013-03-19 10:58:09.154 32202 TRACE nova.api.openstack.compute.servers [instance: 10e0dfa0-5c7e-4526-b2a1-fa9b21ba531a] return f(self, context, ins
Mar 19 10:58:09 se11-1eth0 2013-03-19 10:58:09.156 INFO nova.api.openstack.wsgi [req-3ca09d16-7195-43cc-b0c8-4e52ac334920 5dda90b838634950ae3bb5e43b9225e0 8f6f26e2d384488989abad72c7f2612f] HTTP exception thrown: Unable to process the contained instructions
Mar 19 10:58:09 se11-1eth0 2013-03-19 10:58:09.157 INFO nova.osapi_compute.wsgi.server [req-3ca09d16-7195-43cc-b0c8-4e52ac334920 5dda90b83863
Can you clarify exactly which version or revision of nova this package relates to? The line numbers don't match up to the most recent code at least.