Bug 1548070 - Heat is not shutting down instances before anything else when running a stack-delete
Summary: Heat is not shutting down instances before anything else when running a stack...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Zane Bitter
QA Contact: Ronnie Rasouli
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-22 16:08 UTC by David Vallee Delisle
Modified: 2021-12-10 15:59 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-15 14:14:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vm with volume as root disk (4.46 KB, text/plain)
2018-03-05 17:01 UTC, Jeremy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1546826 0 high CLOSED error detaching volumes when under load 2023-03-21 18:44:33 UTC
Red Hat Bugzilla 1548053 0 high CLOSED Repeated call to virDomainDetachDeviceFlags fails with internal error: unable to execute QEMU command 'device_del' 2021-12-10 15:42:28 UTC
Red Hat Issue Tracker OSP-4920 0 None None None 2021-12-10 15:59:32 UTC

Description David Vallee Delisle 2018-02-22 16:08:49 UTC
Description of problem:
Having the instances running when detaching volume generates issues as described in these BZ: bug 1548053 bug 1546826


Version-Release number of selected component (if applicable):
openstack-heat-common-9.0.1-3

How reproducible:
100% of the time

Steps to Reproduce:
1. Create a stack with running instances
2. Delete stack with running instances

Actual results:
If the volumes are in use in the instances, libvirt is unable to cleanly detach them, thus failing the stack-delete

Expected results:
stack-delete shouldn't fail

Additional info:
If heat would shutdown the instance before, all the volume detachment would work

Comment 2 Zane Bitter 2018-03-05 16:32:55 UTC
So IIUC this is believed to be a regression in libvirt, but you want Heat to work around it?

Seeing the template would help. Are you using a separate VolumeAttachment resource, or attaching it directly to the server?

If the former then there's definitely nothing Heat can do. If the latter then it might be possible, I guess, but I'd still be concerned that it's a fairly substantial behaviour change to address a problem that is not of Heat's making, and which will in any event continue to exist for any users of Cinder that either don't use Heat or use the VolumeAttachment resource.

Comment 3 Jeremy 2018-03-05 17:01:23 UTC
Created attachment 1404407 [details]
vm with volume as root disk


Note You need to log in before you can comment on or make changes to this bug.