Stop and delete operations should give guest a chance to shutdown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Olga Gusarenko |
Bug Description
https:/
commit abca73c23942c45
Author: Phil Day <email address hidden>
Date: Tue Jul 2 15:32:57 2013 +0100
Stop and delete operations should give guest a chance to shutdown
Currently in libvirt stop and delete operations simply destroy the
underlying VM. Some GuestOS's do not react well to this type of
power failure, and so it would be better if these operations
followed the same approach as soft_reboot and give the guest as
chance to shutdown gracefully. Even where VM is being deleted,
it may be booted from a volume which will be reused on another
server.
The change is implemented by adding a clean_shutdown parameter
to delete and stop methods from the compute/api layer downwards
and into the virt drivers. The implementation in the libvirt
driver is also provided. Other drivers are modified just to
expect the additional parameter.
The timer configuration value previous used by soft_reboot in
libvirt is moved up to virt/driver so it can be used by other drivers.
A separate config value defines what the default shutdown
behaviour for delete should be (default False to keep compatibility
with current behaviour).
This code enables a subsequent API change to add add clean/forced
options to the stop and delete methods
Fixes bug 1196924
DocImpact
Change-Id: Ie69aa2621cb52d
Changed in openstack-manuals: | |
milestone: | none → havana |
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: release-notes |
tags: | added: autogen |
Changed in openstack-manuals: | |
milestone: | havana → juno |
tags: |
added: autogenerate-config-docs removed: autogen |
Changed in openstack-manuals: | |
milestone: | juno → kilo |
Changed in openstack-manuals: | |
assignee: | nobody → Olga Gusarenko (ogusarenko) |
Changed in openstack-manuals: | |
milestone: | kilo → liberty |
Changed in openstack-manuals: | |
status: | In Progress → Fix Released |
Hi, everyone!
I have a question regarding the list of operations which give the GuestOS a chance to shutdown. I am not sure about "delete", as it is not in the spec.
Could anyone please clarify wether the following list is complete:
- nova stop [–hard-shutdown]
- nova rescue [–hard-shutdown]
- nova resize [–hard-shutdown]
- nova shelve [–hard-shutdown]
Thanks in advance!