Manila does not delete snapshots that are reported to be busy
Bug #1564623 reported by
Goutham Pacha Ravi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Undecided
|
NidhiMittalHada |
Bug Description
As of commit: https:/
tags: | added: netapp |
tags: | added: zfsonlinux |
Changed in manila: | |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
assignee: | Goutham Pacha Ravi (gouthamr) → nobody |
tags: | added: low-hanging-fruit |
Changed in manila: | |
assignee: | nobody → NidhiMittalHada (nidhimittal19) |
Changed in manila: | |
status: | New → In Progress |
To post a comment you must log in.
Steps to reproduce:- ------- ------- ------- ------- 72c3-400d- b3ee-b3bc40e120 7e
-------
1) manila snapshot-create --name snapshot1 --description "Snapshot1" 726245d0-
2)stack@ controller: ~/devstack$ manila snapshot-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+ d6ed-4559- a9b8-199bd99334 44 | 726245d0- 72c3-400d- b3ee-b3bc40e120 7e | available | snapshot1 | 1 | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+
+------
| ID | Share ID | Status | Name | Share Size |
+------
| 3d8406c2-
+------
3)stack@ controller: ~/devstack$ manila --debug snapshot-delete 3d8406c2- d6ed-4559- a9b8-199bd99334 44
exception raised!!!!
ShareSnapshotIs Busy: DemoVol1/ share_d061ea16_ fb95_40ee_ 9d23_524ebdefcd cd@share_ snapshot_ 849700f8_ 4f6b_4a78_ a4e2_67863a84c3 b9
4)stack@ controller: ~/devstack$ manila snapshot-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+ d6ed-4559- a9b8-199bd99334 44 | 726245d0- 72c3-400d- b3ee-b3bc40e120 7e | available | snapshot1 | 1 | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+ r:~/devstack$
+------
| ID | Share ID | Status | Name | Share Size |
+------
| 3d8406c2-
+------
stack@controlle
snapshot has become "available".
but if we do r:~/devstack$ manila --debug snapshot- force-delete 3d8406c2- d6ed-4559- a9b8-199bd99334 44
stack@controlle
msg comes as d6ed-4559- a9b8-199bd99334 44 was busy on the backend. Since this operation was forced, the snapshot will be deleted from Manila's database. A cleanup on the backend may be necessary.
The driver reported that the snapshot 3d8406c2-
and..... r:~/devstack$ manila snapshot-list ------- --+---- ----+-- ----+-- ------- ---+ ------- --+---- ----+-- ----+-- ------- ---+ ------- --+---- ----+-- ----+-- ------- ---+
stack@controlle
+----+-
| ID | Share ID | Status | Name | Share Size |
+----+-
+----+-
snapshot is deleted from manila db. ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =====
=======
As per code :-
self. driver. delete_ snapshot( context, snapshot_instance,
share_ server= share_server) ShareSnapshotIs Busy: save_and_ reraise_ exception( ) as exc:
msg = _("The driver reported that the snapshot %s "
"was busy on the backend. Since this "
"operation was forced, the snapshot will "
"be deleted from Manila's database. A "
"cleanup on the backend may be necessary.")
LOG. ex...
------------------
try:
except exception.
with excutils.
if force: