← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1212565] Re: libvirt driver: Failed to attach new interface to VM

 

** Changed in: nova/grizzly
       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/1212565

Title:
  libvirt driver: Failed to attach new interface to VM

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Released

Bug description:
  The "nova interface-attach" command fails in nova-compute with
  libvirt/KVM driver due to missing arguments.

  Related commit:
  https://review.openstack.org/#q,I63c1fb51ea637d461755b309c7464f4b4d49a4b2,n,z

  
  It fails with the following response:
  $ nova interface-attach --net-id 6d2b5fb2-1f4b-4b3f-b670-93a897c3721b vm
  ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-95a70e59-a401-4e42-bdb7-6d4711ebb92a)

  
  Error message in nova-compute log:
  2013-08-15 16:10:17.971 27780 DEBUG nova.openstack.common.rpc.amqp [-] Making synchronous call on conductor ... multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:583
  2013-08-15 16:10:17.971 27780 DEBUG nova.openstack.common.rpc.amqp [-] MSG_ID is 82cd88f9957d45dd92e34c9f45cd7819 multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:586
  2013-08-15 16:10:17.972 27780 DEBUG nova.openstack.common.rpc.amqp [-] UNIQUE_ID is b9ba88875ff74c09b5362565a6e4d25c. _add_unique_id /opt/stack/nova/nova/openstack/common/rpc/amqp.py:337

  /nova/compute/manager.py", line 3054, in attach_interface
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp     self.driver.attach_
  interface(instance, image_meta, legacy_net_info)
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova
  /nova/exception.py", line 117, in wrapped
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp     temp_level, payload
  )
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python
  2.7/contextlib.py", line 24, in __exit__
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova
  /nova/exception.py", line 94, in wrapped
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp     return f(self, cont
  ext, *args, **kw)
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova
  /nova/virt/libvirt/driver.py", line 1052, in attach_interface
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp     image_meta)
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp TypeError: get_config()
   takes exactly 6 arguments (5 given)
  2013-08-15 16:03:29.265 27780 TRACE nova.openstack.common.rpc.amqp
  2013-08-15 16:03:29.268 ERROR nova.openstack.common.rpc.common [req-95a70e59-a401-4e42-bdb
  7-6d4711ebb92a demo demo] Returning exception get_config() takes exactly 6 arguments (5 gi
  ven) to caller
  2013-08-15 16:03:29.268 ERROR nova.openstack.common.rpc.common [req-95a70e59-a401-4e42-bdb
  7-6d4711ebb92a demo demo] ['Traceback (most recent call last):\n', '  File "/opt/stack/nov
  a/nova/openstack/common/rpc/amqp.py", line 430, in _process_data\n    rval = self.proxy.di
  spatch(ctxt, version, method, **args)\n', '  File "/opt/stack/nova/nova/openstack/common/r
  pc/dispatcher.py", line 133, in dispatch\n    return getattr(proxyobj, method)(ctxt, **kwa
  rgs)\n', '  File "/opt/stack/nova/nova/compute/manager.py", line 3054, in attach_interface
  \n    self.driver.attach_interface(instance, image_meta, legacy_net_info)\n', '  File "/op
  t/stack/nova/nova/exception.py", line 117, in wrapped\n    temp_level, payload)\n', '  Fil
  e "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n    self.gen.next()\n', '  Fil
  e "/opt/stack/nova/nova/exception.py", line 94, in wrapped\n    return f(self, context, *a
  rgs, **kw)\n', '  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1052, in attach
  _interface\n    image_meta)\n', 'TypeError: get_config() takes exactly 6 arguments (5 give
  n)\n']

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