Instance class implementation is based on OS::Nova::Server
resource in Heat and related networking resources. When deploy
called on Instance number of resources are allocated in Heat.
Some classes (e.g. descendants of Instance) can allocate other
resources that depends on presence of resources allocated by Instance,
for example HeatSWConfigInstance allocate OS::Heat::SoftwareDeployment
that depends on underlying OS::Nova::Server.
When Instance is destroyed and clean-up stage is finished underlying
resources are removed from stack. But since some resources still depend
on removed ones whole stack becomes invalid and deployment fails.
This change implements quick workaround by removing resource clean-up
in Instance class. Warning, this change introduce resource leak, cause
resoures are allocated during Instance deployment now will be deleted
only when whole Environment (and therefor stack) will be deleted.
Reviewed: https:/ /review. openstack. org/118172 /git.openstack. org/cgit/ stackforge/ murano/ commit/ ?id=7a6f6c1c181 ddbf37ea43b0fe5 3615abec6b754c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7a6f6c1c181ddbf 37ea43b0fe53615 abec6b754c
Author: Serg Melikyan <email address hidden>
Date: Mon Sep 1 18:38:21 2014 +0400
Remove partial clean-up in Instance.destroy
Instance class implementation is based on OS::Nova::Server
resource in Heat and related networking resources. When deploy
called on Instance number of resources are allocated in Heat.
Some classes (e.g. descendants of Instance) can allocate other tance allocate OS::Heat: :SoftwareDeploy ment
resources that depends on presence of resources allocated by Instance,
for example HeatSWConfigIns
that depends on underlying OS::Nova::Server.
When Instance is destroyed and clean-up stage is finished underlying
resources are removed from stack. But since some resources still depend
on removed ones whole stack becomes invalid and deployment fails.
This change implements quick workaround by removing resource clean-up
in Instance class. Warning, this change introduce resource leak, cause
resoures are allocated during Instance deployment now will be deleted
only when whole Environment (and therefor stack) will be deleted.
Change-Id: I772f0b35918cd5 54fcbe1e830766e c23d5641176
Closes-Bug: #1359998