HNAS driver always handles snapshots as if mount_snaphot_support
is always True.
The driver always create exports in snapshot_create and tries to
delete it in snapshot_delete. Also, the driver tries to add rules
for exports in snapshot_update_access without checking if the export
exists.
Fixing it by checking the key 'mount_snapshot_support' in shares and
checking if the snapshot has an export before adding or removing
rules.
Reviewed: https:/ /review. openstack. org/428077 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=c4b65df3745 62540f83f6478e5 1ce2f2949aab73
Committed: https:/
Submitter: Jenkins
Branch: master
commit c4b65df37456254 0f83f6478e51ce2 f2949aab73
Author: Alyson Rosa <email address hidden>
Date: Wed Feb 1 14:09:32 2017 -0200
Fix HNAS driver always handling mountable snapshots
HNAS driver always handles snapshots as if mount_snaphot_ support update_ access without checking if the export
is always True.
The driver always create exports in snapshot_create and tries to
delete it in snapshot_delete. Also, the driver tries to add rules
for exports in snapshot_
exists.
Fixing it by checking the key 'mount_ snapshot_ support' in shares and
checking if the snapshot has an export before adding or removing
rules.
Change-Id: If25d68d04400f0 e9015f6ad6aff84 5f9c5d47f94
Closes-bug: #1660420
Closes-bug: #1660421