yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #32441
[Bug 1447989] Re: nova volume-detach volume failed due to arguments counts mismatch?
How about not opening bugs against community nova for your busted out of
tree driver, thanks.
http://git.openstack.org/cgit/stackforge/powervc-driver/tree/cinder-
powervc/powervc/volume/driver/powervc.py#n312
** Changed in: nova
Status: Incomplete => Invalid
--
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/1447989
Title:
nova volume-detach volume failed due to arguments counts mismatch?
Status in OpenStack Compute (Nova):
Invalid
Bug description:
nova attached succeeded but when detach, after debug the nova manager
reports error:
> /usr/lib/python2.7/site-packages/nova/compute/manager.py(4927)detach_volume()
-> self.volume_api.detach(context.elevated(), volume_id)
--------Start--------
Invalid input received: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9a6619bc-01bd-4226-9904-45e1f571a5bb)
--------End--------
checked in /var/log/cinder/api.log, it reports:
--------Start--------
2015-04-24 04:18:06.461 27284 ERROR cinder.api.openstack.wsgi [req-9a6619bc-01bd-4226-9904-45e1f571a5bb 486b55b3d6254105b08f1a449777507d 861703cfc7cf4f67a6a0049618b0865f - - -] Exception handling resource: detach_volume() takes exactly 3 arguments (4 given)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
executor_callback))
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
executor_callback)
File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
result = func(ctxt, **new_args)
File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 157, in ldo_inner1
return ldo_inner2(inst, context, volume_id, attachment_id, **kwargs)
File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 445, in inner
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 156, in ldo_inner2
return f(*_args, **_kwargs)
File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 897, in detach_volume
{'attach_status': 'error_detaching'})
File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 892, in detach_volume
self.driver.detach_volume(context, volume, attachment)
File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
return f(*args, **kwargs)
TypeError: detach_volume() takes exactly 3 arguments (4 given)
--------End--------
The result is my detach volume always in "detaching" status, although the real status is already detached.
[root@controller ~]# cinder list
| b1baa918-5a4f-40fc-82ab-63a9aade0efc | detaching | test-for-attach-1 | 1 | pvc:22ba67376ed3d811e4ba520000c9d2fb5c:dev4clstr base template | false |
I believe this is a bug that need to take care
--------------------
1. version:
[root@controller ~]# rpm -aq | grep nova
openstack-nova-conductor-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-network-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-cells-2015.1-201504161438.ibm.el7.111.noarch
python-novaclient-2.23.0-1.ibm.el7.noarch
openstack-nova-scheduler-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-novncproxy-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-objectstore-2015.1-201504161438.ibm.el7.111.noarch
python-nova-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-api-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-console-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-compute-prereqs-2013.1-201503192011.ibm.2.ppc64
openstack-nova-compute-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-common-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-cert-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-2015.1-201504161438.ibm.el7.111.noarch
2. logs:
see above
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1447989/+subscriptions
References