[openstack-dev] [heat] Stack adopt after handle_create

Dimitri Mazmanov dimitri.mazmanov at ericsson.com
Fri Jul 18 09:02:33 UTC 2014


Hi,
I¹m working on the following use-case:
I have a stack template containing a custom resource - my_res - that upon
handle_create invokes creation of another set of resources [r1, r2, r3,
...] (not expressed in the template). These newly created resources are
not associated with the stack. The goal is to include them into the
existing stack.

My idea was to perform stack adopt on r1, r2, r3, etc inside handle_create
of my_res.

handle_create 
  create my_res
  find r1, r2, ...
  for each r in [r1, r2, Š]
     my_res.stack.adopt r

Is this ok or a terrible, terrible idea?

Thanks!
-
Dimitri




More information about the OpenStack-dev mailing list