[ceph] can't unmanage volume

Bug #1592029 reported by Sergei Chipiga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Fix Committed
Medium
Yuriy Nesenenko

Bug Description

MOS build:
cat /etc/fuel_build_id:
 452
cat /etc/fuel_build_number:
 452
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0

deploy config:
Ceph RBD for volumes (Cinder)
Ceph RadosGW for objects (Swift API)
Ceph RBD for ephemeral volumes (Nova)
Ceph RBD for images (Glance)
1 node - controller; 1 node - compute, ceph-osd

Steps:
- create volume with horizon or via cinder cli
- execute cinder unmanage <ID>

Expected result:
- Volume will be unmanaged

Actual result:
- Volume has status "error_deleting"

root@node-1:~# cinder list
+--------------------------------------+-----------+----------+------+--------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+----------+------+--------------+----------+-------------+
| b5344948-475c-4740-a54c-544a91f1f61d | available | test_vol | 1 | volumes_ceph | true | |
+--------------------------------------+-----------+----------+------+--------------+----------+-------------+
root@node-1:~# cinder unmanage test_vol
root@node-1:~# cinder list
+--------------------------------------+----------------+----------+------+--------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+----------------+----------+------+--------------+----------+-------------+
| b5344948-475c-4740-a54c-544a91f1f61d | error_deleting | test_vol | 1 | volumes_ceph | true | |
+--------------------------------------+----------------+----------+------+--------------+----------+-------------+

root@node-1:/var/log/cinder# cinder list
+--------------------------------------+-----------+--------+------+--------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------+------+--------------+----------+-------------+
| 5f842653-d196-4150-a993-7479ad2eefe8 | available | volume | 1 | volumes_ceph | true | |
+--------------------------------------+-----------+--------+------+--------------+----------+-------------+
root@node-1:/var/log/cinder# cinder unmanage 5f842653-d196-4150-a993-7479ad2eefe8
root@node-1:/var/log/cinder# cinder list
+--------------------------------------+----------------+--------+------+--------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+----------------+--------+------+--------------+----------+-------------+
| 5f842653-d196-4150-a993-7479ad2eefe8 | error_deleting | volume | 1 | volumes_ceph | true | |
+--------------------------------------+----------------+--------+------+--------------+----------+-------------+

in /var/log/cinder/cinder-volume.log:
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher [req-9eb37d19-4bf4-41fd-8633-caaed9deb4bd 75e8de81972a4b9f8926d8180b62728a a8a5744cf9964b85ba514f6714c1fc99 - - -] Exception during message handling: Unmanage volume not implemented.
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher incoming.message))
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 169, in lvo_inner1
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher return lvo_inner2(inst, context, volume_id, **kwargs)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 168, in lvo_inner2
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher return f(*_args, **_kwargs)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 760, in delete_volume
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher 'error_deleting')
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher self.force_reraise()
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 725, in delete_volume
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher self.driver.unmanage(volume)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/driver.py", line 1578, in unmanage
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher raise NotImplementedError(msg)
2016-06-13 14:49:53.059 10507 ERROR oslo_messaging.rpc.dispatcher NotImplementedError: Unmanage volume not implemented.

Revision history for this message
Sergei Chipiga (schipiga) wrote :
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :
Changed in mos:
status: New → Won't Fix
importance: Undecided → Medium
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Commit from upstream https://github.com/openstack/cinder/commit/b7ce275b5a1e476545008a6ccf9cf8b3bc1105ef is already synced to mos10/master branch

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.