Bug 1041070

Summary: [RFE][nova]: XenAPI: migrate ephemeral disks instead of re-creating
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-novaAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: hateya, markmc, ndipanov, sgordon, yeylon
Target Milestone: Upstream M1Keywords: FutureFeature
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/xenapi-migrate-ephemeral-disks
Whiteboard: upstream_milestone_icehouse-1 upstream_status_implemented upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-12 21:31:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 13:33:50 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/xenapi-migrate-ephemeral-disks.

Description:

When migrating, the xenapi driver currently drops the ephemeral disk, and re-creates it on the destination. This doesn't really fit the use cases properly, we should migrate both the root and ephemeral disks.

If machine is dead, use evacuate:
* volume root disk: reattach
* other disks: re-create, or download from glance

if machine is alive, use migrate:
* attempt to move disks to new host
* optionally turn off the VM to reduce stress on server

Where machine can still run a VM, as failure is not iminent, attempt live-migrate:
* only works with VM running (XenAPI limitation)
* does put a lot of stress on servers with mirroring the disk while copying the disk

Note: currently in the above middle migrate case, the ephemeral disk is deleted, rather than migrated. This blueprint aims to fix this, so the above use cases all make more sense.

Snapshots still do not backup the ephemeral disk, but this data should be kept during migrates, as this should just be a "maintenance" operation that is as transparent to the user as possible.

For consistency, this also means we should correctly resize ephemeral disk, rather than delete then re-create them on the destination.

Specification URL (additional information):

None

Comment 2 Stephen Gordon 2013-12-12 21:31:47 UTC
Xen is not formally supported in RHELOSP at this time.