← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1242916] Re: metadata server update_all expects body but doesn't get it passed to it

 

** Also affects: tempest
   Importance: Undecided
       Status: New

-- 
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/1242916

Title:
  metadata server update_all expects body but doesn't get it passed to
  it

Status in OpenStack Compute (Nova):
  Confirmed
Status in Tempest:
  New

Bug description:
  This recently started showing up in n-api. Seems like mishandling of invalid client args from a negative test in tempest.
  Example: http://logs.openstack.org/03/52803/3/check/check-tempest-devstack-vm-postgres-full/354d7a3/logs/screen-n-api.txt.gz

  2013-10-21 20:04:51.724 20923 DEBUG routes.middleware [-] Matched PUT /6fa344aaf3034c4992bc30b3c06ad531/servers/a329912b-7874-4636-a08b-e40362e04ab2/metadata __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
  2013-10-21 20:04:51.724 20923 DEBUG routes.middleware [-] Route path: '/{project_id}/servers/{server_id}/metadata', defaults: {'action': u'update_all', 'controller': <nova.api.openstack.wsgi.Resource object at 0x48d2bd0>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:102
  2013-10-21 20:04:51.724 20923 DEBUG routes.middleware [-] Match dict: {'action': u'update_all', 'server_id': u'a329912b-7874-4636-a08b-e40362e04ab2', 'project_id': u'6fa344aaf3034c4992bc30b3c06ad531', 'controller': <nova.api.openstack.wsgi.Resource object at 0x48d2bd0>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
  2013-10-21 20:04:51.724 DEBUG nova.api.openstack.wsgi [req-23bdfb52-dae5-42f7-a5b7-17c319ed67ff ServerMetadataTestJSON-tempest-1354548727-user ServerMetadataTestJSON-tempest-1354548727-tenant] Empty body provided in request get_body /opt/stack/new/nova/nova/api/openstack/wsgi.py:839
  2013-10-21 20:04:51.724 DEBUG nova.api.openstack.wsgi [req-23bdfb52-dae5-42f7-a5b7-17c319ed67ff ServerMetadataTestJSON-tempest-1354548727-user ServerMetadataTestJSON-tempest-1354548727-tenant] Calling method <bound method Controller.update_all of <nova.api.openstack.compute.server_metadata.Controller object at 0x48d2450>> _process_stack /opt/stack/new/nova/nova/api/openstack/wsgi.py:962
  2013-10-21 20:04:51.725 ERROR nova.api.openstack.wsgi [req-23bdfb52-dae5-42f7-a5b7-17c319ed67ff ServerMetadataTestJSON-tempest-1354548727-user ServerMetadataTestJSON-tempest-1354548727-tenant] Exception handling resource: update_all() takes exactly 4 arguments (3 given)
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 997, in _process_stack
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi   File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 1078, in dispatch
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi TypeError: update_all() takes exactly 4 arguments (3 given)
  2013-10-21 20:04:51.725 20923 TRACE nova.api.openstack.wsgi 
  2013-10-21 20:04:51.726 DEBUG nova.api.openstack.wsgi [req-23bdfb52-dae5-42f7-a5b7-17c319ed67ff ServerMetadataTestJSON-tempest-1354548727-user ServerMetadataTestJSON-tempest-1354548727-tenant] Returning 400 to user: The server could not comply with the request since it is either malformed or otherwise incorrect. __call__ /opt/stack/new/nova/nova/api/openstack/wsgi.py:1224

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