[Murano] environment is being deleted even though en error ocurred

Bug #1461594 reported by Kirill Zaitsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Kirill Zaitsev
6.1.x
Won't Fix
High
Kirill Zaitsev
7.0.x
Fix Released
High
Kirill Zaitsev

Bug Description

To reproduce:

1) create an env
2) add an app to the env
3) deploy the env
4) delete the package, containing the app
5) delete the env

Environment deletion should fail, but it doesn't. The env get's deleted, but destroy methods and heat stack is not deleted

Expected behaviour: Environment enter state: Delete Failure.

This behaviour was supposedly introduced by https://review.openstack.org/#/c/179533/ commit

https://bugs.launchpad.net/murano/+bug/1456724

Changed in mos:
milestone: none → 6.1
Changed in mos:
assignee: nobody → Kirill Zaitsev (kzaitsev)
Changed in mos:
assignee: Kirill Zaitsev (kzaitsev) → MOS Murano (mos-murano)
Changed in mos:
importance: Undecided → High
Changed in mos:
assignee: MOS Murano (mos-murano) → Kirill Zaitsev (kzaitsev)
status: New → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/murano (openstack-ci/fuel-6.1/2014.2)

Fix proposed to branch: openstack-ci/fuel-6.1/2014.2
Change author: Kirill Zaitsev <email address hidden>
Review: https://review.fuel-infra.org/7528

tags: added: release-notes
tags: added: known-issue
tags: added: known-issues
removed: known-issue
tags: removed: known-issues
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Release notes:

Sometimes env deletion can raise error.

There are two known scenarios, when this can occur:
1) If an application uses classes, that define destroy() method; in case destroy() raises an exception env deletion would fail. (currently this can happen with kubernetes application from app catalog, after a failed deploy. Although the app is scheduled to be fixed.)
2) If an application, that was deployed was removed from murano Application Catalog (e.g. deleted from Package Definitions page) env deletion would.

In both of the cases murano would actually delete the environment, but would not delete the heat stack.

There is currently no mitigation technique or workaround available for the bug. User would have to navigate to Orchestration -> Stacks and delete any leftover stacks manually.

Changed in mos:
status: In Progress → Won't Fix
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

For 7.0 this functionality should be backported from liberty

Revision history for this message
Ekaterina Chernova (efedorova) wrote :

This is not fixed in upstream yet

Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Bug is in progress, would be fixed before SCF

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/murano (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Kirill Zaitsev <email address hidden>
Review: https://review.fuel-infra.org/10064

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to openstack/murano (openstack-ci/fuel-7.0/2015.1.0)

Related fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Nikolay Starodubtsev <email address hidden>
Review: https://review.fuel-infra.org/10065

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/murano (openstack-ci/fuel-6.1/2014.2)

Change abandoned by Kirill Zaitsev <email address hidden> on branch: openstack-ci/fuel-6.1/2014.2
Review: https://review.fuel-infra.org/7528

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/murano (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/10064
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: a0ad16a7521d800cb6fed4a11c8d4a44ff9993c3
Author: Kirill Zaitsev <email address hidden>
Date: Tue Aug 4 10:27:02 2015

Include original ObjectsCopy/Attributes in exception_result

Before if an exception occured during dsl cleanup exception_result would
use empty ObjectsCopy and empty Attributes for result. In case exception
happened during env deletion this would cause env to be deleted by API,
because it ignored isException and treated any result as valid.

Now exception_result also includes original ObjectsCopy/Attributes in case
they're empty in exception_result.
Api not only checks count of 'error' statuses, in session, but also
checks isException attribute of the result, and treats exception results
as Errors, therefore marking deployment/deletion as failed.

Logging of results in API is now aware, that objects can be empty during
app deletion and no longer throws AttributeError because of that.

Change-Id: Idec8191ee25d1cac606741673719bbb8a72709b0
Closes-Bug: #1461594
(cherry picked from commit 1e62fafe8212a1e2eb4d5f2bad3da2d8c88a33fe)

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to openstack/murano (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/10065
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: eed9f3fd3a32b5fddfa31f1d0929101e0ae74080
Author: Nikolay Starodubtsev <email address hidden>
Date: Tue Aug 4 10:27:02 2015

Add possibilty to delete environment with incorrect .destroy method

In this patch we introduce a possibility to delete an environment
which contains a package with incorrect .destroy method. Previously
such kind of environment was stucked in 'Deletion failure' status
and we can't do anything with that, now murano environment and heat
stack will be deleted completely.

Related-Bug: #1461594
Change-Id: I90dfa4e6e30c325a17e746c36a4e467189834294

tags: added: on-verification
Revision history for this message
Alexander Bochkarev (abochkarev) wrote :

Verified with fuel-7.0-241-2015-08-27_03-02-45.iso

tags: removed: on-verification
tags: added: release-notes-done-7.0
removed: release-notes
tags: added: release-notes-done rn7.0
removed: release-notes-done-7.0
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.