glusterfs_native: Unable to delete snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Ramana Raja |
Bug Description
Run into the following error while trying to delete a snapshot,
CMD "sudo manila-rootwrap /etc/manila/
ERROR oslo_messaging.
Exception during message handling: syntax error: line 1, column 0
The partial traceback,
File "/opt/stack/
share_server=
File "/opt/stack/
outxml = etree.fromstrin
File "<string>", line 124, in XML
ParseError: syntax error: line 1, column 0
The variable 'out' which stores the XML output of the Gluster's delete snapshot command, and is parsed later in the code, gets an incorrect value that cannot be parsed. This is because the Gluster CLI runs in the interactive mode even when the stdin is not a terminal.
The faulty code from glusterfs_native driver's delete_snapshot API pasted
below,
<code snippet>
args = ('--xml', 'snapshot', 'delete', snapshot['id'])
try:
out, err = gluster_
...
outxml = etree.fromstrin
</code snippet>
description: | updated |
Changed in manila: | |
importance: | Undecided → Medium |
milestone: | none → kilo-rc1 |
Changed in manila: | |
status: | Fix Committed → Fix Released |
Changed in manila: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/172197
Review: https:/