on qemu, create image fails when volume is attached to vm instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
High
|
Vish Ishaya |
Bug Description
I'm using Essex-4 with qemu.
When volume is attached to instance, create server (snapshot) fails like followings.
command:
openstack@
+----+-
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+-
| 1 | in-use | vol1 | 1 | None | 0a66f533-
+----+-
openstack@
nova-compute says:
2012-03-05 12:22:07 AUDIT nova.compute.
libvir: QEMU error : Requested operation is not valid: Disk '/dev/disk/
2012-03-05 12:22:08 ERROR nova.rpc.common [-] Exception during message handling
(nova.rpc.common): TRACE: Traceback (most recent call last):
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: rval = node_func(
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: return f(*args, **kw)
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: sys.exc_info())
(nova.rpc.common): TRACE: File "/usr/lib/
(nova.rpc.common): TRACE: self.gen.next()
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: return function(self, context, instance_uuid, *args, **kwargs)
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: self.driver.
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: return f(*args, **kw)
(nova.rpc.common): TRACE: File "/opt/openstack
(nova.rpc.common): TRACE: snapshot_ptr = virt_dom.
(nova.rpc.common): TRACE: File "/usr/lib/
(nova.rpc.common): TRACE: if ret is None:raise libvirtError(
(nova.rpc.common): TRACE: libvirtError: Requested operation is not valid: Disk '/dev/disk/
(nova.rpc.common): TRACE:
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Vish Ishaya (vishvananda) |
milestone: | none → essex-rc1 |
Changed in nova: | |
status: | Triaged → In Progress |
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: master
commit 7dbf9c7de236232
Author: Vishvananda Ishaya <email address hidden>
Date: Thu Mar 8 16:26:13 2012 -0800
Make snapshots with qemu-img instead of libvirt
* snapshot is only supposed to snapshot the root drive, whereas
libvirt snapshots snapshot the memory and all attached disks
* removes silly qemu_img flag
* fixes bug 946830
Change-Id: I6afc9dbaa855f0
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-rc1 → 2012.1 |
Fix proposed to branch: master /review. openstack. org/5172
Review: https:/