Previous patch I79d70543856c01a45e2d8c083ab8df6b9c047ebc
implemented filtering of glance "os_glance..." metadata
but its logic overlooked the fact that the glance metadata
to be filtered are actually in a "properties" sub-dict
as adjusted by the "_merge_volume_image_meta" method in
cinder/volume/api.py.
This patch re-invokes the filtering loop on
the "properties" sub-dict when it is present.
New unit test covers filtering in both cases.
Closes-bug: #1945500
Change-Id: I06b8c363c4017adfa1ad134ad7a8a0954c005e62
(cherry picked from commit b3d3f31fa325533cf8130533e955ef43b8f38189)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/885256 /opendev. org/openstack/ cinder/ commit/ f542dd07b07162f 39325a83fae67cd a166e36798
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit f542dd07b07162f 39325a83fae67cd a166e36798
Author: Rodrigo Barbieri <email address hidden>
Date: Tue May 2 13:28:31 2023 -0300
Fix glance metadata properties filtering
Previous patch I79d70543856c01 a45e2d8c083ab8d f6b9c047ebc volume_ image_meta" method in volume/ api.py.
implemented filtering of glance "os_glance..." metadata
but its logic overlooked the fact that the glance metadata
to be filtered are actually in a "properties" sub-dict
as adjusted by the "_merge_
cinder/
This patch re-invokes the filtering loop on
the "properties" sub-dict when it is present.
New unit test covers filtering in both cases.
Closes-bug: #1945500 dfa1ad134ad7a8a 0954c005e62 cf8130533e955ef 43b8f38189)
Change-Id: I06b8c363c4017a
(cherry picked from commit b3d3f31fa325533