[SRU] Creating snapshot fails due to nonexistent temporary directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Saucy |
Won't Fix
|
High
|
Unassigned |
Bug Description
---- SRU Justification ---
[Impact]
In a libvirt-based OpenStack deployment, Nova fails to snapshot instances, failing with error:
internal error: unable to execute QEMU command 'drive-mirror': Could not open '/var/lib/
I had originally discovered this bug using the Tempset test suite while verifying an unrelated OpenStack SRU, but other users are experiencing this in the wild.
[Test Case]
Deploy an OpenStack cloud based on Ubuntu Saucy and OpenStack Havana, then attempt to snapshot a running instance. The Tempest integration test suite contains a snapshot test case: tempest.
[Regression Potential]
The proposed fix is isolated to the libvirt packaging and simply appends an additional directory exception to the packages apparmor configuration, so that libvirt has appropriate access to the directory used during the process of snapshotting an instance.
--- Original Bug ---
In some cases (not for all instances, just for some) the following error prevents creating the snapshot:
2013-10-25 14:49:30.724 22980 AUDIT nova.compute.
2013-10-25 14:49:30.944 22980 INFO nova.virt.
2013-10-25 14:49:32.006 22980 INFO nova.virt.
2013-10-25 14:49:32.329 22980 ERROR nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
2013-10-25 14:49:32.329 22980 TRACE nova.openstack.
The directory /var/lib/
Permissions to the parent directory are nova:nova 755, I believe they are correct.
Package: nova-compute
Version: 1:2013.
tags: | added: libvirt |
affects: | nova (Ubuntu) → libvirt (Ubuntu) |
description: | updated |
summary: |
- Creating snapshot fails due to nonexistent temporary directory + [SRU] Creating snapshot fails due to nonexistent temporary directory |
Changed in nova: | |
status: | New → Invalid |
Creating a snapshot of the same instance on the same physical node when the instance is shut off works.