gluster_native: 'manila delete <share>' fails with gluster 3.7.x as backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Ramana Raja |
Bug Description
With gluster native driver, 'Manila delete share' on a gluster volume fails to delete the share and puts the share in 'error_deleting' state. This issue will be seen with gluster 3.7.
Following steps are done by the API In order to delete the share,
1) reset ssl options
2) temporarily mount gluster volume
3) Delete the contents
4) umount gluster volume
5) set ssl options back
Starting GlusterFS 3.7.x, trashcan feature is introduced to temporarily store deleted files. This directory cannot be deleted and api tries to delete and fails.
# ls -liah /tmp/tmpYuqpvv/
total 4.0K
1 drwxr-xr-x. 4 root root 78 Jul 10 12:32 .
133 drwxrwxrwt. 36 root root 4.0K Jul 10 12:48 ..
5 drwxr-xr-x. 3 root root 48 Jul 7 11:19 .trashcan
# find /tmp/tmpYuqpvv -mindepth 1 -delete
find: cannot delete ‘/tmp/tmpYuqpvv
code snippet:
# Delete only the contents, not the directory.
cmd = ['find', pipes.quote(
try:
except exception.
msg = (_("Error trying to wipe gluster volume. "
raise exception.
finally:
# Unmount.
Changed in manila: | |
milestone: | none → liberty-2 |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: kilo-backport-potential |
Changed in manila: | |
status: | Fix Committed → Fix Released |
Changed in manila: | |
milestone: | liberty-2 → 1.0.0 |
Fix proposed to branch: master /review. openstack. org/202905
Review: https:/