2022-09-07 07:05:18 |
Diko Parvanov |
bug |
|
|
added bug |
2022-09-07 07:05:18 |
Diko Parvanov |
attachment added |
|
cinder_api.txt https://bugs.launchpad.net/bugs/1988942/+attachment/5614235/+files/cinder_api.txt |
|
2022-09-13 20:26:00 |
Sofia Enriquez |
cinder: importance |
Undecided |
Wishlist |
|
2022-09-13 20:26:01 |
Sofia Enriquez |
cinder: status |
New |
Incomplete |
|
2022-09-13 20:27:03 |
Sofia Enriquez |
tags |
|
metadata |
|
2022-09-13 21:15:16 |
Sofia Enriquez |
cinder: importance |
Wishlist |
Low |
|
2022-12-19 14:14:33 |
Diko Parvanov |
cinder: status |
Incomplete |
New |
|
2022-12-23 12:53:54 |
OpenStack Infra |
cinder: status |
New |
In Progress |
|
2022-12-23 13:05:47 |
Jorge Merlino |
cinder: assignee |
|
Jorge Merlino (jorge-merlino) |
|
2023-12-15 00:08:54 |
OpenStack Infra |
cinder: status |
In Progress |
Fix Released |
|
2023-12-18 20:19:50 |
Jorge Merlino |
bug task added |
|
cinder (Ubuntu) |
|
2023-12-18 20:20:06 |
Jorge Merlino |
bug task deleted |
cinder (Ubuntu) |
|
|
2024-02-09 12:48:18 |
Bartosz Woronicz |
attachment added |
|
Screenshot from 2024-02-09 01-49-25.png https://bugs.launchpad.net/cinder/+bug/1988942/+attachment/5745442/+files/Screenshot%20from%202024-02-09%2001-49-25.png |
|
2024-02-09 12:48:31 |
Bartosz Woronicz |
bug |
|
|
added subscriber Canonical Field Critical |
2024-02-13 12:35:21 |
Edward Hope-Morley |
bug task added |
|
cloud-archive |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/zed |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
bug task added |
|
cloud-archive/zed |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/bobcat |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
bug task added |
|
cloud-archive/bobcat |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/antelope |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
bug task added |
|
cloud-archive/antelope |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/yoga |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
bug task added |
|
cloud-archive/yoga |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/caracal |
|
2024-02-13 12:35:37 |
Edward Hope-Morley |
bug task added |
|
cloud-archive/caracal |
|
2024-02-13 12:35:44 |
Edward Hope-Morley |
bug task added |
|
cinder (Ubuntu) |
|
2024-02-13 12:36:47 |
Edward Hope-Morley |
nominated for series |
|
Ubuntu Noble |
|
2024-02-13 12:36:47 |
Edward Hope-Morley |
bug task added |
|
cinder (Ubuntu Noble) |
|
2024-02-13 12:36:47 |
Edward Hope-Morley |
nominated for series |
|
Ubuntu Jammy |
|
2024-02-13 12:36:47 |
Edward Hope-Morley |
bug task added |
|
cinder (Ubuntu Jammy) |
|
2024-02-13 12:36:47 |
Edward Hope-Morley |
nominated for series |
|
Ubuntu Mantic |
|
2024-02-13 12:36:47 |
Edward Hope-Morley |
bug task added |
|
cinder (Ubuntu Mantic) |
|
2024-02-15 17:52:51 |
Jorge Merlino |
cinder (Ubuntu Noble): status |
New |
Fix Released |
|
2024-02-15 18:19:41 |
Jorge Merlino |
cloud-archive/caracal: status |
New |
Fix Released |
|
2024-02-19 09:48:57 |
Nobuto Murata |
bug |
|
|
added subscriber Nobuto Murata |
2024-02-20 19:30:15 |
Jorge Merlino |
description |
Seems cinder doesn't allow long names for metadata:
Failed to set image property: Invalid input for field/attribute simplestreams_metadata. Value: {"aliases": "20.04,default,f,focal,lts,ubuntu", "arch": "amd64", "ftype": "disk1.img", "label": "release", "md5": "8646f69a6814ed96e27de0a1be1120a4", "os": "ubuntu", "pubname": "ubuntu-focal-20.04-amd64-server-20201111", "release": "focal", "release_codename": "Focal Fossa", "release_title": "20.04 LTS", "sha256": "151e5e797dc0131c4a1a41b76dac34c551389be67e6b551ab18c36026c420e6a", "size": "546570752", "support_eol": "2025-04-23", "supported": "True", "version": "20.04"}. '{"aliases": "20.04,default,f,focal,lts,ubuntu", "arch": "amd64", "ftype": "disk1.img", "label": "release", "md5": "8646f69a6814ed96e27de0a1be1120a4", "os": "ubuntu", "pubname": "ubuntu-focal-20.04-amd64-server-20201111", "release": "focal", "release_codename": "Focal Fossa", "release_title": "20.04 LTS", "sha256": "151e5e797dc0131c4a1a41b76dac34c551389be67e6b551ab18c36026c420e6a", "size": "546570752", "support_eol": "2025-04-23", "supported": "True", "version": "20.04"}' is too long (HTTP 400) (Request-ID: req-5e6c7ce5-b5bc-445f-9b59-9946845e1a0b)
One or more of the set operations failed
Traceback (most recent call last):
File "/home/stack/myansible/lib/python3.6/site-packages/cliff/app.py", line 401, in run_subcommand
result = cmd.run(parsed_args)
File "/home/stack/myansible/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run
return super(Command, self).run(parsed_args)
File "/home/stack/myansible/lib/python3.6/site-packages/cliff/command.py", line 185, in run
return_code = self.take_action(parsed_args) or 0
File "/home/stack/myansible/lib/python3.6/site-packages/openstackclient/volume/v2/volume.py", line 719, in take_action
raise exceptions.CommandError(_("One or more of the "
osc_lib.exceptions.CommandError: One or more of the set operations failed
clean_up SetVolume: One or more of the set operations failed
END return value: 1 |
[Impact]
Cinder does not allow setting volume metadata properties with values longer that 255 characters. Glance does allow values of up to 65536 bytes and a volume created from an image with metadata larger than 255 characters will keep that longer value in Cinder (the Cinder database field is long enough to hold it). The problem is that Cinder would not let a longer value to be set after the volume has been created.
This is inconsistent and generates issues in backup services that expect to be able to set metadata values to the same value the volume had before.
[Test Plan]
Create a volume:
openstack volume create test_vol --size 1
Try to set a property with a long value:
openstack volume set test_vol --image-property longprop=12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
This should return an error like:
Invalid input for field/attribute longprop. Value: 123456789012345...' is too long (HTTP 400) (Request-ID: req-69875caf-16e1-4afb-91c0-3e50ff694c07)
Update cinder to this SRU version and run the volume set command again. It should work and return nothing.
[Where problems could occur]
The patch just changes the validation for the metadata length. It includes several tests of border cases. Worst case could be that it would not allow setting a metadata value that was allowed before but as the check has been changed to increase the value size that is unlikely. |
|
2024-02-20 19:53:00 |
Jorge Merlino |
attachment added |
|
lp1988942_jammy.debdiff https://bugs.launchpad.net/cloud-archive/caracal/+bug/1988942/+attachment/5747792/+files/lp1988942_jammy.debdiff |
|
2024-02-20 19:53:49 |
Jorge Merlino |
attachment added |
|
lp1988942_mantic.debdiff https://bugs.launchpad.net/cloud-archive/caracal/+bug/1988942/+attachment/5747793/+files/lp1988942_mantic.debdiff |
|
2024-02-20 19:54:27 |
Jorge Merlino |
attachment added |
|
lp1988942_uca-yoga.debdiff https://bugs.launchpad.net/cloud-archive/caracal/+bug/1988942/+attachment/5747794/+files/lp1988942_uca-yoga.debdiff |
|
2024-02-20 19:54:52 |
Jorge Merlino |
attachment added |
|
lp1988942_uca-zed.debdiff https://bugs.launchpad.net/cloud-archive/caracal/+bug/1988942/+attachment/5747795/+files/lp1988942_uca-zed.debdiff |
|
2024-02-20 19:55:15 |
Jorge Merlino |
attachment added |
|
lp1988942_uca-antelope.debdiff https://bugs.launchpad.net/cloud-archive/caracal/+bug/1988942/+attachment/5747796/+files/lp1988942_uca-antelope.debdiff |
|
2024-02-20 19:55:48 |
Jorge Merlino |
attachment added |
|
lp1988942_uca-bobcat.debdiff https://bugs.launchpad.net/cloud-archive/caracal/+bug/1988942/+attachment/5747797/+files/lp1988942_uca-bobcat.debdiff |
|
2024-02-20 19:57:14 |
Jorge Merlino |
tags |
metadata |
metadata sts |
|
2024-02-20 19:58:02 |
Jorge Merlino |
bug |
|
|
added subscriber Support Engineering Sponsors |
2024-02-20 19:58:37 |
Jorge Merlino |
cloud-archive/yoga: status |
New |
In Progress |
|
2024-02-20 19:58:50 |
Jorge Merlino |
cloud-archive/zed: status |
New |
In Progress |
|
2024-02-20 19:58:50 |
Jorge Merlino |
cloud-archive/zed: assignee |
|
Jorge Merlino (jorge-merlino) |
|
2024-02-20 19:58:58 |
Jorge Merlino |
cloud-archive/yoga: assignee |
|
Jorge Merlino (jorge-merlino) |
|
2024-02-20 19:59:09 |
Jorge Merlino |
cloud-archive/bobcat: status |
New |
In Progress |
|
2024-02-20 19:59:09 |
Jorge Merlino |
cloud-archive/bobcat: assignee |
|
Jorge Merlino (jorge-merlino) |
|
2024-02-20 19:59:21 |
Jorge Merlino |
cloud-archive/antelope: status |
New |
In Progress |
|
2024-02-20 19:59:21 |
Jorge Merlino |
cloud-archive/antelope: assignee |
|
Jorge Merlino (jorge-merlino) |
|
2024-02-20 19:59:39 |
Jorge Merlino |
cinder (Ubuntu Jammy): status |
New |
In Progress |
|
2024-02-20 19:59:39 |
Jorge Merlino |
cinder (Ubuntu Jammy): assignee |
|
Jorge Merlino (jorge-merlino) |
|
2024-02-20 19:59:50 |
Jorge Merlino |
cinder (Ubuntu Mantic): status |
New |
In Progress |
|
2024-02-20 19:59:50 |
Jorge Merlino |
cinder (Ubuntu Mantic): assignee |
|
Jorge Merlino (jorge-merlino) |
|
2024-03-20 09:43:42 |
Ubuntu Archive Robot |
bug |
|
|
added subscriber Dariusz Gadomski |
2024-03-21 16:54:18 |
Jorge Merlino |
bug |
|
|
added subscriber Jorge Merlino |
2024-04-19 12:37:34 |
Mauricio Faria de Oliveira |
cloud-archive/zed: status |
In Progress |
Won't Fix |
|
2024-04-19 12:37:45 |
Mauricio Faria de Oliveira |
cloud-archive/zed: assignee |
Jorge Merlino (jorge-merlino) |
|
|
2024-04-19 12:42:54 |
Mauricio Faria de Oliveira |
bug |
|
|
added subscriber Mauricio Faria de Oliveira |
2024-04-19 16:02:56 |
Mauricio Faria de Oliveira |
cloud-archive/antelope: status |
In Progress |
Triaged |
|
2024-04-26 07:41:02 |
Timo Aaltonen |
cinder (Ubuntu Mantic): status |
In Progress |
Fix Committed |
|
2024-04-26 07:41:04 |
Timo Aaltonen |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-04-26 07:41:14 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2024-04-26 07:41:19 |
Timo Aaltonen |
tags |
metadata sts |
metadata sts verification-needed verification-needed-mantic |
|
2024-04-26 07:43:18 |
Timo Aaltonen |
cinder (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2024-04-26 07:43:27 |
Timo Aaltonen |
tags |
metadata sts verification-needed verification-needed-mantic |
metadata sts verification-needed verification-needed-jammy verification-needed-mantic |
|
2024-04-28 00:39:06 |
Jorge Merlino |
tags |
metadata sts verification-needed verification-needed-jammy verification-needed-mantic |
metadata sts verification-done-jammy verification-needed verification-needed-mantic |
|
2024-05-02 22:18:06 |
Jorge Merlino |
tags |
metadata sts verification-done-jammy verification-needed verification-needed-mantic |
metadata sts verification-done-jammy verification-failed-mantic verification-needed |
|
2024-05-03 14:00:52 |
Jorge Merlino |
tags |
metadata sts verification-done-jammy verification-failed-mantic verification-needed |
metadata sts verification-done-jammy verification-done-mantic verification-needed |
|
2024-05-09 16:08:43 |
Launchpad Janitor |
cinder (Ubuntu Mantic): status |
Fix Committed |
Fix Released |
|
2024-05-09 16:08:56 |
Andreas Hasenack |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|