← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1675584] [NEW] TypeError: connect_volume() takes exactly 3 arguments (4 given) for NFS Cinder drivers

 

Public bug reported:

NFS driver Cinder CI jobs failed on following error

2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server [req-70f771a4-6cd2-497d-8428-45ed14caa416 tempest-VolumesAdminNegativeTest-1024673784 tempest-VolumesAdminNegativeTest-1024673784] Exception during message handling
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 157, in _process_incoming
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 75, in wrapped
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     function_name, call_dict, binary)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 66, in wrapped
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return f(self, context, *args, **kw)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 215, in decorated_function
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 203, in decorated_function
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4805, in attach_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     do_attach_volume(context, instance, driver_bdm)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4803, in do_attach_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     bdm.destroy()
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4800, in do_attach_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return self._attach_volume(context, instance, driver_bdm)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4823, in _attach_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.volume_api.unreserve_volume(context, bdm.volume_id)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4815, in _attach_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     do_driver_attach=True)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/block_device.py", line 48, in wrapped
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     ret_val = method(obj, context, *args, **kwargs)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/block_device.py", line 282, in attach
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     connector)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/block_device.py", line 273, in attach
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     device_type=self['device_type'], encryption=encryption)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1204, in attach_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self._connect_volume(connection_info, disk_info, instance)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1145, in _connect_volume
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     vol_driver.connect_volume(connection_info, disk_info, instance)
2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server TypeError: connect_volume() takes exactly 3 arguments (4 given)


On IRC I got to know that https://review.openstack.org/#/c/438970/ could be the culprit

Failure CI logs are http://openstack-ci.tintri.com/tintri/refs-
changes-59-448159-4/logs/screen-n-cpu.log.txt

** Affects: nova
     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/1675584

Title:
  TypeError: connect_volume() takes exactly 3 arguments (4 given) for
  NFS Cinder drivers

Status in OpenStack Compute (nova):
  New

Bug description:
  NFS driver Cinder CI jobs failed on following error

  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server [req-70f771a4-6cd2-497d-8428-45ed14caa416 tempest-VolumesAdminNegativeTest-1024673784 tempest-VolumesAdminNegativeTest-1024673784] Exception during message handling
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 157, in _process_incoming
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 75, in wrapped
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     function_name, call_dict, binary)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", line 66, in wrapped
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return f(self, context, *args, **kw)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 215, in decorated_function
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 203, in decorated_function
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4805, in attach_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     do_attach_volume(context, instance, driver_bdm)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4803, in do_attach_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     bdm.destroy()
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4800, in do_attach_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     return self._attach_volume(context, instance, driver_bdm)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4823, in _attach_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.volume_api.unreserve_volume(context, bdm.volume_id)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", line 4815, in _attach_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     do_driver_attach=True)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/block_device.py", line 48, in wrapped
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     ret_val = method(obj, context, *args, **kwargs)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/block_device.py", line 282, in attach
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     connector)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self.force_reraise()
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/block_device.py", line 273, in attach
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     device_type=self['device_type'], encryption=encryption)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1204, in attach_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     self._connect_volume(connection_info, disk_info, instance)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1145, in _connect_volume
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server     vol_driver.connect_volume(connection_info, disk_info, instance)
  2017-03-23 11:12:34.533 3875 ERROR oslo_messaging.rpc.server TypeError: connect_volume() takes exactly 3 arguments (4 given)

  
  On IRC I got to know that https://review.openstack.org/#/c/438970/ could be the culprit

  Failure CI logs are http://openstack-ci.tintri.com/tintri/refs-
  changes-59-448159-4/logs/screen-n-cpu.log.txt

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


Follow ups