Not enough arguments passed to vif_driver.get_config() in libvirt driver's interface_attach

Bug #1210203 reported by Anton Frolov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Noorul Islam K M

Bug Description

When I try to attach port to running VM instance using "nova interface-attach --port-id <port id> <instance id>" command I get HTTP error 400 and following messages in log:

2013-08-08 20:37:34.675 ERROR nova.openstack.common.rpc.amqp [req-ec5a5edc-99d6-4bb6-abbf-2621531d3e2d admin demo] Exception during message handling
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 421, in _process_data
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp **args)
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 3654, in attach_interface
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp self.driver.attach_interface(instance, image_meta, legacy_net_info)
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 100, in wrapped
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp temp_level, payload)
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/exception.py", line 77, in wrapped
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp return f(self, context, *args, **kw)
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1165, in attach_interface
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp cfg = self.vif_driver.get_config(instance, network, mapping,
2013-08-08 20:37:34.675 TRACE nova.openstack.common.rpc.amqp TypeError: get_config() takes exactly 6 arguments (5 given)

Changed in nova:
status: New → Confirmed
Anton Frolov (anton0)
tags: added: low-hanging-fruit
Changed in nova:
assignee: nobody → Noorul Islam K M (noorul)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/41286

Changed in nova:
status: Confirmed → In Progress
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.