On 13/10/2025 08:50, Eugen Block wrote:
Good morning,
after our recent upgrade to Epoxy we had troubles uploading images to Glance:
openstack image create --disk-format raw --file .../opensuse/Leap-16.0-offline-installer-x86_64.install.iso --progress --public test-ebl [=============================>] 100% HttpException: 415: Client Error for url: http://controller.domain:9292/v2/images/e23d802e-d927-4f34-ae2d-1d6f54d62066..., Unsupported Media Type
so the problem is tha tyou are not uploading ths iso file as an iso you should be using `openstack image create --disk-format iso ...`
And in the logs this is reported:
2025-10-11 01:16:56.585 65675 ERROR glance.api.v2.image_data [None req-086ad005-a455-471a-bb0d-9dfe5e27eacf 89c5dcc8793d4867bae22d50e51e16b3 90c403f317ee47feb0dad58461e76fb1 - - default default] Multiple formats detected: iso,gpt: glance.common.exception.InvalidImageData: Multiple formats detected: iso,gpt
This is the official openSUSE Leap 16 ISO file.
For now I disabled the check by setting:
[image_format] require_image_format_match = false
you should not do that in general. it is there to prevent potentially malious images form beign uploaded. nova and cider have there own protections but you shoudl instead sepcify the correct format for the image. the reason its beign detectied as iso,gpt is because the iso format has a reserved space know as the system area where bootloader and partition table metadata can be written to allow the iso to be DD'ed directly onto a flash device or similar and allow booting on hardware that does not supprot cd rom emulation.
The docs state that this is likely a bug:
Disabling this may be required in the case of false match (or mismatch) issues, but those are bugs that should be filed and fixed.
I tried a couple of different ISO files (Ubuntu, openSUSE, incl. older files), all fail with the same error. Uploading raw images seemed to work fine. ISOs are supported file formats according to the docs, could anyone shed some light on this?
There may be docs bog if the docs suggest using raw for iso images as that has never been correct. But this is not a bug in glance code. https://docs.openstack.org/glance/latest/admin/manage-images.html#create-an-... correctly calsl out that --disk-formatiso should be used. perhsap the suse? doc you follow is incorrect do you have a linke to the instuction you followed that suggested using raw?
Thanks! Eugen