OpenStack API 1.0 services.create should return more informative error

Bug #764551 reported by Eldar Nugaev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Eldar Nugaev

Bug Description

2011-04-18 16:04:44,792 routes.middleware: Match dict: {'action': u'detail', 'controller': <nova.api.openstack.flavors.ControllerV10 object at 0x39672d0>}
2011-04-18 16:05:07,750 routes.middleware: Matched POST /servers
2011-04-18 16:05:07,750 routes.middleware: Route path: '/servers', defaults: {'action': u'create', 'controller': <nova.api.openstack.servers.ControllerV10 object at 0x395b5d0>}
2011-04-18 16:05:07,750 routes.middleware: Match dict: {'action': u'create', 'controller': <nova.api.openstack.servers.ControllerV10 object at 0x395b5d0>}
2011-04-18 16:05:07,754 nova.api.openstack: Caught error: invalid literal for int() with base 10: ''
(nova.api.openstack): TRACE: Traceback (most recent call last):
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 59, in __call__
(nova.api.openstack): TRACE: return req.get_response(self.application)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/request.py", line 919, in get_response
(nova.api.openstack): TRACE: application, catch_exc_info=False)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/request.py", line 887, in call_application
(nova.api.openstack): TRACE: app_iter = application(self.environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 130, in __call__
(nova.api.openstack): TRACE: response = self.app(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 147, in __call__
(nova.api.openstack): TRACE: resp = self.call_func(req, *args, **self.kwargs)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 208, in call_func
(nova.api.openstack): TRACE: return self.func(req, *args, **kwargs)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/wsgi.py", line 354, in __call__
(nova.api.openstack): TRACE: result = method(**arg_dict)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/servers.py", line 131, in create
(nova.api.openstack): TRACE: context, requested_image_id)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/common.py", line 119, in get_image_id_from_image_hash
(nova.api.openstack): TRACE: if abs(hash(image_id)) == int(image_hash):
(nova.api.openstack): TRACE: ValueError: invalid literal for int() with base 10: ''

Related branches

Eldar Nugaev (reldan)
Changed in nova:
assignee: nobody → Eldar Nugaev (reldan)
Jay Pipes (jaypipes)
Changed in nova:
status: New → In Progress
importance: Undecided → Low
Eldar Nugaev (reldan)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-1
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-1 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.