os-assisted-volume-snapshots:delete doesn't work if instance is SHUTOFF
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Jordan Pittier | ||
Liberty |
Fix Released
|
Medium
|
Deepak C Shetty |
Bug Description
If the instance is in SHUTOFF state, volume state is 'in-use', so a volume driver for a NAS storage decides to call os-assisted-
The only driver, which supports this API is libvirt, so we go to LibvirtDriver.
result = virt_dom.
Which raises an exception if a domain is not running:
volume_
found device at vda from (pid=20313) _volume_
disk: vda, base: None, bw: 0, flags: 0 from (pid=20313) _volume_
Error occurred during volume_
Traceback (most recent call last):
File "/opt/stack/
snapshot_id, delete_
File "/opt/stack/
rebase_bw, rebase_flags)
File "/usr/lib/
result = proxy_call(
File "/usr/lib/
rv = execute(f, *args, **kwargs)
File "/usr/lib/
six.reraise(c, e, tb)
File "/usr/lib/
rv = meth(*args, **kwargs)
File "/usr/lib/
if ret == -1: raise libvirtError ('virDomainBloc
libvirtError: Requested operation is not valid: domain is not running
I'm, using devstack, which checked out openstack's repos on 15.06.2015.
I'm experiencing the problem with my new volume driver https:/
description: | updated |
Changed in nova: | |
assignee: | nobody → Jordan Pittier (jordan-pittier) |
status: | Triaged → In Progress |
Changed in nova: | |
assignee: | Jordan Pittier (jordan-pittier) → Matt Riedemann (mriedem) |
tags: | added: liberty-backport-potential |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Jordan Pittier (jordan-pittier) |
importance: | Low → Medium |
tags: |
added: in-stable-liberty removed: liberty-backport-potential |
Just wondering if the solution has to be part of Nova. Are you thinking of any check in Nova verifying that the instance is running before calling libvirt ?