libvirt: blockCommit fails if domain is not running, for attached cinder volumes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Using a devstack setup, fairly latest!
1) Create a cinder volume (used GlusterFS as the cinder backed) - cv1
2) Attach cv1 to vm1 (vm1 is a nova VM in running state)
3) Create 2 snapshots of vol1 using cinder snapshot-create ... cv1-snap1, cv1-snap2
4) Stop the nova vm vm1 (Note that cinder still reports the volume cv1 as 'in-use')
5) From cinder, delete cv1-snap1. Since cv1-snap1 is _Not_ the active file, nova tries to do a blockCommit and fails with excp below:
2015-07-06 09:33:00.479 ERROR oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
2015-07-06 09:33:00.479 TRACE oslo_messaging.
tags: |
added: volumes removed: blockcommit |
Changed in nova: | |
status: | New → Confirmed |
This bug is similar to :
https:/ /bugs.launchpad .net/cinder/ +bug/1444806 boot_pattern tempest test failure for glusterfs backend - Part 2)
(test_volume_
https:/ /bugs.launchpad .net/nova/ +bug/1465416 volume- snapshots: delete doesn't work if instance is SHUTOFF )
(os-assisted-
except that those are for blockRebase, and this bug covers blockCommit case.
In talking with folks on IRC it seemed a failing testcase for blockCommit was needed, hence I created this bug report