Deployment graphs is not deleted when parent entity is removed

Bug #1567471 reported by Ilya Kutukov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Ilya Kutukov
Mitaka
Fix Released
High
Ilya Kutukov

Bug Description

When i delete Cluster Environment or Plugin i expect that all linked DeploymentGraph entities will be removed as well. Now they are staying in database having impact on database size.

Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/303573

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
milestone: 9.0 → 10.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/303573
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=68a8e258d7d35caea6eed2d1643a4b5ea4b758ea
Submitter: Jenkins
Branch: master

commit 68a8e258d7d35caea6eed2d1643a4b5ea4b758ea
Author: Ilya Kutukov <email address hidden>
Date: Fri Apr 8 21:36:41 2016 +0300

    Deployment graphs are deleted together with parent entity

    When Release, Plugin or Cluster is deleted, related
    deployment graphs are deleted as well.

    Note, that current DeploymentGraph deletion schema works if
    DeploymentGraph have only relation to parent
    otherwise unwanted relations may be affected by graph cleanup.

    Change-Id: If489879a3d4ca01ba2335dd279136c57e1bad171
    Closes-Bug: #1567471
    Closes-Bug: #1557632

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/313013

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/313014

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Ilya Kutukov (<email address hidden>) on branch: master
Review: https://review.openstack.org/313013

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (stable/mitaka)

Change abandoned by Ilya Kutukov (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/313014

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/315687

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/315687
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=3cd17b967a1703953e7af9bbb91701adad525a4c
Submitter: Jenkins
Branch: stable/mitaka

commit 3cd17b967a1703953e7af9bbb91701adad525a4c
Author: Ilya Kutukov <email address hidden>
Date: Fri Apr 8 21:36:41 2016 +0300

    Deployment graphs are deleted together with parent entity

    When Release, Plugin or Cluster is deleted, related
    deployment graphs are deleted as well.

    Note, that current DeploymentGraph deletion schema works if
    DeploymentGraph have only relation to parent
    otherwise unwanted relations may be affected by graph cleanup.

    Closes-Bug: #1567471
    Closes-Bug: #1557632
    Change-Id: If489879a3d4ca01ba2335dd279136c57e1bad171

tags: added: on-verification
Revision history for this message
Ekaterina Shutova (eshutova) wrote :

Scenario checked: get api request GET http://10.109.5.2:8000/api/v1/graphs
"model": "cluster" relations are deleted when clusted is deleted.
Verified on:
cat /etc/fuel_build_id:
 443
cat /etc/fuel_build_number:
 443
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0

tags: removed: on-verification
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.