← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1702410] Re: TypeError: _delete_nic_metadata() takes exactly 3 arguments (4 given)

 

Reviewed:  https://review.openstack.org/480369
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=86bccc32cb68408cac61a406bafa14017cc3b2af
Submitter: Jenkins
Branch:    master

commit 86bccc32cb68408cac61a406bafa14017cc3b2af
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date:   Wed Jul 5 15:21:13 2017 +0900

    Fix arguments in calling _delete_nic_metadata
    
    Change-Id: Ia9b75dcf5a295f223bb850ea18a491dc181712a0
    Closes-Bug: #1702410


** Changed in: nova
       Status: In Progress => 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/1702410

Title:
  TypeError: _delete_nic_metadata() takes exactly 3 arguments (4 given)

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Description
  ===========

  "Virtual device tagged attach"(*1) has been added in microversion 2.49.
  After attaching the interface by using this function, detaching the interface from the server does not work properly.
  So attaching the interface again fails.

  *1: https://blueprints.launchpad.net/nova/+spec/virt-device-tagged-
  attach-detach

  Steps to reproduce
  ==================

  1. attach an interface (neutron port) to a server with tag
  2. detach the interface from the server
     The following message is logged in nova-compute.log.

     TypeError: _delete_nic_metadata() takes exactly 3 arguments (4
  given)

  3. attach the interface (neutron port) to the server again
     HTTP 500 returns.
     <class 'VirtualInterfaceCreateException_Remote'> (HTTP 500) (Request-ID: req-5c369d01-e2f2-4cba-97a9-84fba8e240af)

  Environment
  ===========
  OS: Ubuntu 16.04.2 LTS
  nova: master(commit de5c9e076d5df24a996abf2146fc4c468cf54d71)

  Logs
  ==============
  nova-compute.log:
  Jul 05 14:57:01 devstack-master nova-compute[24791]: DEBUG nova.virt.libvirt.guest [None req-03db79c6-f542-4c86-81b5-b802c10892d6 admin admin] Successfully detached device <nova.virt.libvirt.config.Libv
  Jul 05 14:57:01 devstack-master nova-compute[24791]: DEBUG nova.virt.libvirt.guest [None req-03db79c6-f542-4c86-81b5-b802c10892d6 admin admin] Start retrying detach until device tap2839da9c-3f is gone. 
  Jul 05 14:57:01 devstack-master nova-compute[24791]: DEBUG oslo.service.loopingcall [None req-03db79c6-f542-4c86-81b5-b802c10892d6 admin admin] Waiting for function nova.virt.libvirt.guest._do_wait_and_
  Jul 05 14:57:01 devstack-master nova-compute[24791]: WARNING nova.compute.manager [None req-03db79c6-f542-4c86-81b5-b802c10892d6 admin admin] [instance: 80aac8ae-182f-4665-ac29-59eb23a63709] Failed to d
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server [None req-03db79c6-f542-4c86-81b5-b802c10892d6 admin admin] Exception during message handling: TypeError: _delete_nic
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server Traceback (most recent call last):
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 153, in _process_incoming
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 76, in wrapped
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     function_name, call_dict, binary)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     self.force_reraise()
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 67, in wrapped
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     return f(self, context, *args, **kw)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 210, in decorated_function
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     self.force_reraise()
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 198, in decorated_function
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 5253, in detach_interface
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     instance=instance)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     self.force_reraise()
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 5245, in detach_interface
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     context, instance, port_id)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/network/neutronv2/api.py", line 1230, in deallocate_port_for_instance
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server     self._delete_nic_metadata(self, instance, vif)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server TypeError: _delete_nic_metadata() takes exactly 3 arguments (4 given)
  Jul 05 14:57:02 devstack-master nova-compute[24791]: ERROR oslo_messaging.rpc.server

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


References