Bug 1042221 - [RFE][heat]: Create a stack by adopting existing resources
Summary: [RFE][heat]: Create a stack by adopting existing resources
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ga
: 5.0 (RHEL 7)
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/heat...
Whiteboard: upstream_milestone_icehouse-3 upstrea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 21:24 UTC by RHOS Integration
Modified: 2014-09-08 05:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
This enhancement adds 'stack-adopt', which allows Orchestration (heat) to manage existing resources as a complete stack. As a result, Orchestration is able to manage resources that were present prior to Orchestration's deployment.
Clone Of:
Environment:
Last Closed: 2014-07-22 19:08:57 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 21:24:20 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/heat/+spec/adopt-stack.

Description:

This will allow a stack to be created without creating any resources. Instead the state of some existing resources will be passed in to the adopt action. Partnered with blueprint abandon-stack this will allow stacks to be moved from one heat instance to another.

Possible use cases for abandon/adopt are:
* Moving a stack from a private heat orchestrating on a public cloud to the public heat
* Rebalancing a sharded heat
* Moving stacks off a heat that needs an offline upgrade

It also may be possible to hand-craft the resource state so that an adopt can happen on resources which were not previously created with heat.

A Resource.handle_adopt method will do the following:
* set the supplied resource id
* set the supplied resource data
* set the supplied metadata(?) if different from the template

Some resource subclasses may need to implement their own handle_adopt, but hopefully this will be rare.

Consideration needs to be given to configured endpoints/signal urls on running compute resources, which may stop working when the stack is moved from one heat to another. Ideally existing compute resource will reconfigure themselves for new endpoints.

Specification URL (additional information):

None


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