Reviewed: https://review.opendev.org/c/openstack/cinder/+/947951 Committed: https://opendev.org/openstack/cinder/commit/97eef845d4101e1c142d77dc37a10d0e04e7e336 Submitter: "Zuul (22348)" Branch: stable/2024.2
commit 97eef845d4101e1c142d77dc37a10d0e04e7e336 Author: Mark Goddard <[email protected]> Date: Tue Nov 24 17:36:19 2020 +0000 Make volume Glance metadata bulk update idempotent The cinder.db.sqlalchemy.api.volume_glance_metadata_bulk_create function has the following in its docstring: This API does not support changing the value of a key once it has been created. However, it actually fails if a specified key exists and has the same value. This can cause problems if volume creation is retried following a failure, since the metadata may have already been created. This change modifies the function to ignore keys that exist and have the expected value, as per the docstring. Related-Bug: #1823445 Change-Id: Ibc3f7b995c43bc281b6978bfcba4d1a50db41fa3 (cherry picked from commit fbf4899764b4ada68e42b39cec80a94c95cef03a) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1823445 Title: [SRU] MetadataCopyFailure: Failed to copy metadata to volume: Glance metadata cannot be updated, key signature_verified exists for volume id <volume id> To manage notifications about this bug go to: https://bugs.launchpad.net/cinder/+bug/1823445/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
