image_utils: misleading log message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Triaged
|
Low
|
Unassigned |
Bug Description
The image_utils.
https:/
During testing for Bug #1996188, Luigi noticed that if you are using a VMDK with a named extent where the named file isn't available, the call to qemu-img will return an error code that gets propagated up to image_utils as a ProcessExecutio
$ qemu-img create -f vmdk mono.vmdk 1M -o subformat=
This will create 2 files: mono.vmdk and mono-flat.vmdk. (mono.vmdk is the VMDK image; mono-flat.vmdk is the named extent holding the data.)
If you put mono.vmdk in glance, and then create a volume that contains the image, the volume will go to 'error' status, and you'll see something like this in the log:
2023-02-15 15:42:32.242 66 ERROR oslo_messaging.
We actually don't know that qemu-img is not installed. This is what happens when you ask qemu-img to give you info about the image (when mono-flat.vmdk is not present, which it isn't in glance):
$ qemu-img info --output=json mono.vmdk
qemu-img: Could not open 'mono.vmdk': Could not open 'mono-flat.vmdk': No such file or directory
$ echo $?
1
Since the call returns an error code, processutils will raise a ProcessExecutio
Changed in cinder: | |
importance: | Low → Medium |
importance: | Medium → Low |
Hey @lsofia-enriquez can I work on this?