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
Dear Diko Parvanov,
From the logs, I can see that you are using the cinder client and the error looks like this:
RESP BODY: {"badRequest": {"code": 400, "message": "Invalid input for field/attribute simplestreams_ metadata. Value: {\"aliases\": \"20.04, default, f,focal, lts,ubuntu\ ", \"arch\": \"amd64\", \"ftype\": \"disk1.img\", \"label\": \"release\", \"md5\": \"8646f69a6814e d96e27de0a1be11 20a4\", \"os\": \"ubuntu\", \"pubname\": \"ubuntu- focal-20. 04-amd64- server- 20201111\ ", \"release\": \"focal\", \"release_ codename\ ": \"Focal Fossa\", \"release_title\": \"20.04 LTS\", \"sha256\": \"151e5e797dc01 31c4a1a41b76dac 34c551389be67e6 b551ab18c36026c 420e6a\ ", \"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\": \"8646f69a6814e d96e27de0a1be11 20a4\", \"os\": \"ubuntu\", \"pubname\": \"ubuntu- focal-20. 04-amd64- server- 20201111\ ", \"release\": \"focal\", \"release_ codename\ ": \"Focal Fossa\", \"release_title\": \"20.04 LTS\", \"sha256\": \"151e5e797dc01 31c4a1a41b76dac 34c551389be67e6 b551ab18c36026c 420e6a\ ", \"size\": \"546570752\", \"support_eol\": \"2025-04-23\", \"supported\": \"True\", \"version\": \"20.04\"}' is too long"}} 172.22. 8.3:8776/ v3/74833ea5ad9e 4d1db5698037745 47fc7/volumes/ 82449828- aa1e-468c- bfe8-ed79514fd9 f7/action used request id req-5e6c7ce5- b5bc-445f- 9b59-9946845e1a 0b metadata. Value: {"aliases": "20.04, default, f,focal, lts,ubuntu" , "arch": "amd64", "ftype": "disk1.img", "label": "release", "md5": "8646f69a6814ed 96e27de0a1be112 0a4", "os": "ubuntu", "pubname": "ubuntu- focal-20. 04-amd64- server- 20201111" , "release": "focal", "release_codename": "Focal Fossa", "release_title": "20.04 LTS", "sha256": "151e5e797dc013 1c4a1a41b76dac3 4c551389be67e6b 551ab18c36026c4 20e6a", "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": "8646f69a6814ed 96e27de0a1be112 0a4", "os": "ubuntu", "pubname": "ubuntu- focal-20. 04-amd64- server- 20201111" , "release": "focal", "release_codename": "Focal Fossa", "release_title": "20.04 LTS", "sha256": "151e5e797dc013 1c4a1a41b76dac3 4c551389be67e6b 551ab18c36026c4 20e6a", "size": "546570752", "support_eol": "2025-04-23", "supported": "True", "version": "20.04"}' is too long (HTTP 400) (Request-ID: req-5e6c7ce5- b5bc-445f- 9b59-9946845e1a 0b)
POST call to volumev3 for http://
Failed to set image property: Invalid input for field/attribute simplestreams_
Would you mind sharing the next information with us so the cinder team can reproduce the problem:
- Would you mind sharing an input sample to reproduce this without simplestream and check if this is a cinder problem or a simplestream feature problem?
- Steps to reproduce this. What command are you using to update the metadata?
- Cinder Version
Best Regards
Sofia