Error while creating an Instance multi() got an unexpected keyword argument 'body'

Bug #1305997 reported by Maximiliano Osorio
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

Description of problem
---------------------------

Create instance fails.
 nova.api.openstack.wsgi [-] Exception handling resource: multi() got an unexpected keyword argument 'body'

Version
---------

ii nova-ajax-console-proxy 1:2014.1~rc2-0ubuntu1
ii nova-api 1:2014.1~rc2-0ubuntu1
ii nova-cert 1:2014.1~rc2-0ubuntu1
ii nova-common 1:2014.1~rc2-0ubuntu1
ii nova-compute 1:2014.1~rc2-0ubuntu1
ii nova-compute-kvm 1:2014.1~rc2-0ubuntu1
ii nova-compute-libvirt 1:2014.1~rc2-0ubuntu1
ii nova-conductor 1:2014.1~rc2-0ubuntu1
ii nova-consoleauth 1:2014.1~rc2-0ubuntu1
ii nova-doc 1:2014.1~rc2-0ubuntu1
ii nova-novncproxy 1:2014.1~rc2-0ubuntu1
ii nova-scheduler 1:2014.1~rc2-0ubuntu1
ii python-nova 1:2014.1~rc2-0ubuntu1
ii python-novaclient 1:2.17.0-0ubuntu1

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu Trusty Tahr (development branch)"
NAME="Ubuntu"
VERSION="14.04, Trusty Tahr"

Test env
----------

A 3 node openstack havana on ubuntu 14.04. Creating a instance to any node.

Steps to Reproduce
------------------
 - Create the instance

And observe /var/log/nova/nova-api.log

Actual results
--------------

/var/log/nova-api.log
2014-04-10 12:16:35.058 18945 ERROR nova.api.openstack.wsgi [-] Exception handling resource: multi() got an unexpected keyword argument 'body'
2014-04-10 12:16:35.058 18945 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
2014-04-10 12:16:35.058 18945 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 983, in _process_stack
2014-04-10 12:16:35.058 18945 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args)
2014-04-10 12:16:35.058 18945 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1070, in dispatch
2014-04-10 12:16:35.058 18945 TRACE nova.api.openstack.wsgi return method(req=request, **action_args)
2014-04-10 12:16:35.058 18945 TRACE nova.api.openstack.wsgi TypeError: multi() got an unexpected keyword argument 'body'

/var/log/nova-compute.log

2014-04-10 12:21:34.729 18931 WARNING nova.virt.libvirt.driver [req-290090c7-9cbf-49e3-ab68-f8e8f85c85d1 42fab7a8b7434bfc8473767c01e8378d b1cf6337c229491c96ad6e0a96e82979] Timeout waiting for vif plugging callback for instance 3fab918c-66fe-4edb-be30-36e40316c950
2014-04-10 12:21:36.030 18931 ERROR nova.compute.manager [req-290090c7-9cbf-49e3-ab68-f8e8f85c85d1 42fab7a8b7434bfc8473767c01e8378d b1cf6337c229491c96ad6e0a96e82979] [instance: 3fab918c-66fe-4edb-be30-36e40316c950] Instance failed to spawn
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] Traceback (most recent call last):
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1720, in _spawn
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] block_device_info)
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2253, in spawn
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] block_device_info)
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3663, in _create_domain_and_network
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] raise exception.VirtualInterfaceCreateException()
2014-04-10 12:21:36.030 18931 TRACE nova.compute.manager [instance: 3fab918c-66fe-4edb-be30-36e40316c950] VirtualInterfaceCreateException: Virtual Interface creation failed
2014-04-10 12:21:36.030 18931 TRAC

Tags: api compute
description: updated
description: updated
Revision history for this message
coolper (coolper22) wrote :

I have the same problem.

Revision history for this message
Dan Prince (dan-prince) wrote :

I think this should be address by this branch:

  https://review.openstack.org/86983

The issue stems from the fact that Neutron now tries to make a callback to Nova to notify it that vif plugging has finished... but the default Neutron was incorrect (it didn't have an API version see here https://review.openstack.org/#/c/86646/).

The above two fixes should resolve the confusing error messages.

In order to have Neutron VIF plugging working though you'll need to configure the keystone credentials in Neutron's conf file in order for it to contact Nova.

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.