** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1247735

Title:
  500 occurs when making a reboot request without the type field

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  By accident, I tried to perform a reboot via the API without passing
  the type field, which returned a 500. On further investigation, it
  appears that there may not be a check if the reboot type field is None
  before making the upper call on the value:

  2013-11-04 06:20:13.936 DEBUG nova.api.openstack.wsgi 
[req-2a11d741-2988-4b8f-af9f-81282790d3c9 auto auto] Action: 'action', body: 
{"reboot": {"type": null}} from (pid=18212) _process_stack 
/opt/stack/nova/nova/api/openstack/wsgi.py:962
  2013-11-04 06:20:13.937 DEBUG nova.api.openstack.wsgi 
[req-2a11d741-2988-4b8f-af9f-81282790d3c9 auto auto] Calling method <bound 
method Controller._action_reboot of 
<nova.api.openstack.compute.contrib.keypairs.Controller object at 0x3c8bf10>> 
from (pid=18212) _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:963
  2013-11-04 06:20:13.937 ERROR nova.api.openstack 
[req-2a11d741-2988-4b8f-af9f-81282790d3c9 auto auto] Caught error: 'NoneType' 
object has no attribute 'upper'
  2013-11-04 06:20:13.941 INFO nova.api.openstack 
[req-2a11d741-2988-4b8f-af9f-81282790d3c9 auto auto] 
http://127.0.0.1:8774/v2/400db056ab16454fa4c7c2fe987dafc4/servers/6d897db9-b4f2-459f-95a4-0ad264e87334/action
 returned with HTTP 500
  2013-11-04 06:20:13.941 DEBUG nova.api.openstack.wsgi 
[req-2a11d741-2988-4b8f-af9f-81282790d3c9 auto auto] Returning 500 to user: The 
server has either erred or is incapable of performing the requested operation. 
from (pid=18212) __call__ /opt/stack/nova/nova/api/openstack/wsgi.py:1224
  2013-11-04 06:20:13.942 INFO nova.osapi_compute.wsgi.server 
[req-2a11d741-2988-4b8f-af9f-81282790d3c9 auto auto] 72.32.115.230 "POST 
/v2/400db056ab16454fa4c7c2fe987dafc4/servers/6d897db9-b4f2-459f-95a4-0ad264e87334/action
 HTTP/1.1" status: 500 len: 335 time: 0.1340361

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1247735/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to