Libvirt/KVM snapshot , disk_format != container_format, is it a bug?
Environment : diablo-released.
steps to reproduce:
1. i upload some images using ec2tools, so the value of disk_format and container_format should be "ami"
2. start an instance
3. snapshot it (direct request to osAPI ) and exception is thrown
Command: qemu-img convert -f qcow2 -O ami -s aa03c01c0c4e4ab
(nova.rpc): TRACE: Exit code: 1
(nova.rpc): TRACE: Stdout: ''
(nova.rpc): TRACE: Stderr: "qemu-img: Unknown file format 'ami'\n"
after digging into the code, i found the function here assume that the previous value of image_format must be raw, qcow2, vmdk, vdi.
if i set "qcow2" in FLAGS.snapshot_
it's not a big deal since i can fix it easily with some small changes.
My question is :
is this a bug or i can't use it with ec2 style ?
# orginal image here
base = image_service.
# image_format is "ami"
if FLAGS.use_
if 'container_format' in base:
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vish Ishaya
- Solved:
- Last query:
- Last reply: