* Update manila from branch 'master'
to
975e546f7be3b7c92cce3ef19614f9292c3f8b6e
- Merge "fix netapp delete_share private_storage cleanup"
- fix netapp delete_share private_storage cleanup
The NetApp driver records info [original_name] and
[original_junction_path] when a share is managed.This data
is not removed during share deletion and is stored in
private_storage and never cleaned up
This change ensures that when a NetApp share is managed, the
associated private storage entry is deleted via
private_storage.delete(share['id'])
If the share does not exist, no deletion of private storage is done
so that diagnosis is possible if necessary.
private_storage.delete(share['id]) also removed from
_update_create_from_snapshot_status as it now introduces redundancy for
the deletion there, since the _delete_share function is already being
called before that.
Test Plan:
test_delete_share_clears_private_storage
- Verifies private storage is deleted when the share exists.
This is when _share_exists() is True
test_delete_share_nonexistent_does_not_delete_private_storage
- Verifies that when _share_exixts() returns False,
private_storage.delete is not called, preserving any metadata.
Closes-Bug: #
2084666
Change-Id: I0b3613e1ea1f54471b1f9cc73fec0761f3639b26
Signed-off-by: Rose Kimondo <rosewairimu1@gmail.com>