Stack update leaves raw template behind

Bug #1506077 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Thomas Herve

Bug Description

I noticed that a stack update creates 3 additional raw_template rows. Unfortunately, we seem to lose the reference to one template:

Before the update:

select raw_template_id, prev_raw_template_id from stack;
| 1 | NULL |

select id from raw_template;
| 1 |

After the stack update:

select raw_template_id, prev_raw_template_id from stack;

| 4 | 2 |
| 3 | NULL |

select id from raw_template;

| 1 |
| 2 |
| 3 |
| 4 |

When we flip from 1 to 4 in the stack, we don't delete the old template.

Thomas Herve (therve)
Changed in heat:
assignee: nobody → Thomas Herve (therve)
importance: Undecided → Medium
milestone: none → mitaka-1
summary: - Stack updates leaves raw template behind
+ Stack update leaves raw template behind
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/234818
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=117e5a0e654111de3f28900228d858cd0683cb1f
Submitter: Jenkins
Branch: master

commit 117e5a0e654111de3f28900228d858cd0683cb1f
Author: Thomas Herve <email address hidden>
Date: Wed Oct 14 16:44:42 2015 +0200

    Delete previous template upon update

    During stack update, we flip the stack raw_template a number of times.
    In case of success, we leave the old active raw_template row unlinked to
    anything, so it needs to be deleted. This patch does so.

    Change-Id: I6f3ff5bfbac417e3bd6032cabfbc00bd6dec8b02
    Closes-Bug: #1506077

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b1

This issue was fixed in the openstack/heat 6.0.0.0b1 development milestone.

Changed in heat:
status: Fix Committed → Fix Released
Thomas Herve (therve)
tags: added: liberty-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/333544

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/liberty)

Reviewed: https://review.openstack.org/333544
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=c43ae9a7231b5911376d88f3385c8dbb4d869d3d
Submitter: Jenkins
Branch: stable/liberty

commit c43ae9a7231b5911376d88f3385c8dbb4d869d3d
Author: Thomas Herve <email address hidden>
Date: Wed Oct 14 16:44:42 2015 +0200

    Delete previous template upon update

    During stack update, we flip the stack raw_template a number of times.
    In case of success, we leave the old active raw_template row unlinked to
    anything, so it needs to be deleted. This patch does so.

    Change-Id: I6f3ff5bfbac417e3bd6032cabfbc00bd6dec8b02
    Closes-Bug: #1506077
    (cherry picked from commit 117e5a0e654111de3f28900228d858cd0683cb1f)

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 5.0.2

This issue was fixed in the openstack/heat 5.0.2 release.

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.