'RBDDriver' object has no attribute 'unmanage_snapshot'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
lihaijing |
Bug Description
If we use rbd as storage backend, trying to unmanage snapshot will hit an AttributeError: 'RBDDriver' object has no attribute 'unmanage_
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
2016-11-28 16:19:04.448 2121 ERROR oslo_messaging.
Changed in cinder: | |
status: | New → Invalid |
Our RBDDriver neither extends `ManageableSnap shotsVD` nor implements `unmanage_snapshot` method in current version, so obviously the attribute `unmanage_snapshot` doesn't exist, but we don't check it in our current code :
https:/ /github. com/openstack/ cinder/ blob/master/ cinder/ volume/ manager. py#L882