glanceclient 2.4.0 breaks update() for tags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Medium
|
Unassigned |
Bug Description
glanceclient 2.3.0 makes the following REST call via images.update():
curl -g -i -X PATCH -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
"PATCH /v2/images/
release 2.4.0 make sthe following (different) call under the same code (OSC):
curl -g -i -X PATCH -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
"PATCH /v2/images/
Since 2.3.0 works, the likely candidate for this break is in https:/
https:/
Replication: using current release (2.6.0) or current master of OpenStackClient, run an image set --tag command:
openstack image set --tag 01 cirros-
To clarify, in OSC, we call the following:
kwargs['tags'] = list(set( image.tags) .union( set(parsed_ args.tags) )) images. update( image.id, **kwargs)
try:
image = image_client.
....
That seems to be enough to cause the regression
https:/ /github. com/openstack/ python- openstackclient /blob/master/ openstackclient /image/ v2/image. py#L833- L838