[RFE] Add IMAGE_UPDATE_POLICY that will first "shutdown old server"

Bug #1698920 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
Wishlist
Unassigned

Bug Description

The current workflow when updating an image is:
 * Detach interfaces
 * Start new server
 * Re-attach interfaces
 * Delete old server

This workflow fail if the guest instance does not have ACPI capabilities. The "detach interfaces" step return OK, but in fact libvirt/qemu does the interface detach asynchronously and the detach requires guest cooperation via ACPI drivers.

The current workflow works for most guests, but if the guest does not have ACPI capabilities the current workflow will fail with "Device or resource busy" at the re-attach interfaces step if the new guest is scheduled on the same host.

The suggested additional IMAGE_UPDATE_POLICY would have the following workflow:
 * Shutdown old server
 * Detach interfaces
 * Start new server
 * Re-attach interfaces
 * Delete old server

By shutting down the old server first, the interface detach should succeed even on servers that do not have ACPI capabilities to do PCI hotplug in the guest.

Tags: spec-lite
Thomas Herve (therve)
tags: added: spec-lite
Changed in heat:
importance: Undecided → Medium
Zane Bitter (zaneb)
Changed in heat:
importance: Medium → Wishlist
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.