Conversation
9d0683c to
ce8b39d
Compare
|
what was the testing during which you observed this as a bug ? |
Carthaca
left a comment
There was a problem hiding this comment.
The {key: None} breaks the NetApp driver's methods, that expect strings
Please add explicit handling when those receive None now:
update_volume_snapshot_policy()
update_cross_volume_dedupe()
update_showmount()
update_pnfs().
Extended scope, but would be nice:
if update_all_metadata deletes driver_updatable_metadata keys, the same logic (with {key: None}) should be applied to those keys
I'll leave it up to you, if you would want to include this here or in a follow-up.
|
This is for https://bugs.launchpad.net/manila/+bug/2156333 |
|
I only saw now, that this is proposed upstream, too - I copied my remarks to gerrit https://review.opendev.org/c/openstack/manila/+/1000846 Let's solve it upstream first, please ;) |
ce8b39d to
114f271
Compare
114f271 to
eb77306
Compare
a912995 to
483566a
Compare
|
IMHO, If user want to revert the behaviour they should use update metadata with new value rather than delete_metadata. Delete_metadata does not mean reset to default, as different driver can have different behaviour. |
but this is confusing to me: The other way I see would be to have all options that can be configured with metadata explicitly set and disallow to delete those keys, only allow updating the value. This would mean a plus in transparency, but on the downside we would blow up all shares with metadata. |
|
Deleting a share metadata key listed in ``driver_updatable_metadata`` now creates an ``UPDATE_METADATA_NOT_DELETED`` user message, matching the existing behavior for ``driver_updatable_subnet_metadata`` on share network subnets. Operators get consistent feedback that the deletion was not passed to the share driver. Closes-Bug: #2156333 Change-Id: I315a8e55c169e030ee6eb290506e6450a02dffd1 Signed-off-by: Nikita Skakun <nikita.skakun@sap.com>
483566a to
15be24c
Compare
Fix inconsistent driver-updatable metadata delete
Deleting a share metadata key listed in
driver_updatable_metadatanow creates anUPDATE_METADATA_NOT_DELETEDuser message, matching the existing behavior fordriver_updatable_subnet_metadataon share network subnets. Operators get consistent feedback that the deletion was not passed to the share driver.Closes-Bug: #2156333
Change-Id: I315a8e55c169e030ee6eb290506e6450a02dffd1