Closed kiranchavala closed 3 weeks ago
Ideally Cloudstack should not allow the Upload of RAW image format if we are not supporting the attachment of it to a vm.
Or we should limit the raw format upload to only OVM hypervisor
Hi @kiranchavala! CloudStack sets hypervisor for the volume OVM when the volume is in RAW format and is not one of those storages: RBD, PowerFlex, CLVM, Linstor, FiberChannel. I've seen a similar problem with CloudStack 4.11.3 but it was with take or revert snapshot (can't recall which operation exactly). I think the best solution is - to handle this in the storage plugins and not change the hypervisor of the volume
thanks @slavkap
Since KVM (qemu) supports attaching raw disk images
I think Cloustack should also support it
Ideally Cloudstack should not allow the Upload of RAW image format if we are not supporting the attachment of it to a vm.
Or we should limit the raw format upload to only OVM hypervisor
Hi @kiranchavala Updated PR here: #9224 - CloudStack doesn't allow RAW image format if supported hypervisor is not found on the zone.
@kiranchavala Fix PR merged, closing this.
ISSUE TYPE
BUG
Component Name
Volume,
CLOUDSTACK VERSION
Cloudstack version 4.18, 4.19
SUMMARY
Unable to attach a raw format volume to an instance running on KVM
Steps to reproduce the issue
tl.raw.zip
Cross check the DB , format is RAW
Currently, Cloudstack doesn't list any running vm during volume attachment
The Backend api checks for vms which are only of Hypervisor type OVM
http://10.0.33.170:8080/client/api/?zoneid=c931b7f8-6376-47b2-8082-c4bb3867e9bf&hypervisor=Ovm&account=admin&domainid=85081752-ca47-11ee-923a-1e00d900023d&state=Stopped&command=listVirtualMachines&response=json
Not sure why Cloudstack limiting it to only OVM hypervisor.
VM running Kvm hypervisor can have disk format in raw which can be attached easily
I was able to attach to raw disk image to a kvm
Dumpxml
Actual Behaviour
Cloudstack is not supporting the attachement of raw disk format to KVM Hypersior
Expected Behaviour
Cloudstack should supporting the attachment of raw disk format to KVM Hypersior