On Fri, Jul 19, 2024, at 1:53 PM, Nguyễn Hữu Khôi wrote:
Hello, i encounter this error when apply patch about bug/2059809:
raise exception.ImageConversionNotAllowed( 2024-07-20 03:35:28.067 736 ERROR oslo_messaging.rpc.server cinder.exception.ImageConversionNotAllowed: Image Conversion disallowed for image 7bacbdfb-2ea3-4ed8-90ad-3ec0e274a1d9: Image conversion is disabled. The volume type you have requested requires that the image it is being created from be in 'raw' format, but the image you are using has the disk_format property 'qcow2'. You must use an image with the disk_format property 'raw' to create a volume of this type.
I am using Zed version. Could I have some suggestions?
The issue is that converting arbitrary qcow2 images to other formats is not necessarily secure. The bug fix you refer to addressed the security concerns with this process in OpenStack by preventing the conversion in the first place. This means you will need to upload images in the format that they will be used in. In this case the format is a raw image. If you upload a raw image version of the image you wish to use I suspect it will work. Note if you convert the image locally you are potentially exposing yourself to the same risk. You should ensure you trust the image source before doing a conversion locally as well.
Thank you.
Nguyen Huu Khoi