Patch existing parameters should filter out removed parameters

Bug #1558610 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Thomas Herve
Liberty
Fix Released
Undecided
Unassigned

Bug Description

If you do a stack update using the existing flag, Heat will try to reuse parameters from the previous template. But if a parameter was removed, the update with then fail with "parameter xxx was not defined". We should be able to easily filter parameters that were removed will still keeping the other ones.

Thomas Herve (therve)
summary: - Patch existing parameters should filtered out remvoved parameters
+ Patch existing parameters should filter out removed parameters
description: updated
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/294096

Changed in heat:
status: New → In Progress
Zane Bitter (zaneb)
tags: added: liberty-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/294096
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=90fc4fe89e76e18df8831e1163c064eae76fbf69
Submitter: Jenkins
Branch: master

commit 90fc4fe89e76e18df8831e1163c064eae76fbf69
Author: Thomas Herve <email address hidden>
Date: Thu Mar 17 16:03:08 2016 +0100

    Remove unknown parameters in patched update

    When updating a stack with the existing flag, we keep the parameters
    from the old template to be used against the new version. Sometimes
    parameters will get remove and won't make sense anymore, and keeping
    them would break update with a 'Parameter was not defined' error. This
    filters out such parameters so that the updates succeed.

    Change-Id: I6f2aa77da28d271dd001a137bb574b5470292f15
    Closes-Bug: #1558610

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/mitaka)

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

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

Reviewed: https://review.openstack.org/295116
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=419da6560411ee676815363002e87c1671f7062a
Submitter: Jenkins
Branch: stable/mitaka

commit 419da6560411ee676815363002e87c1671f7062a
Author: Thomas Herve <email address hidden>
Date: Thu Mar 17 16:03:08 2016 +0100

    Remove unknown parameters in patched update

    When updating a stack with the existing flag, we keep the parameters
    from the old template to be used against the new version. Sometimes
    parameters will get remove and won't make sense anymore, and keeping
    them would break update with a 'Parameter was not defined' error. This
    filters out such parameters so that the updates succeed.

    Change-Id: I6f2aa77da28d271dd001a137bb574b5470292f15
    Closes-Bug: #1558610
    (cherry picked from commit 90fc4fe89e76e18df8831e1163c064eae76fbf69)

tags: added: in-stable-mitaka
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0rc2

This issue was fixed in the openstack/heat 6.0.0.0rc2 release candidate.

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/299641

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/302565

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)
Download full text (13.0 KiB)

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

commit bea576f802f993204aaaaea82812820f2f51c668
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Wed Mar 30 16:09:29 2016 +0300

    Sync integration tests requirements

    The patch that auto-generates integration tests requirements [1] missed
    Mitaka release.

    This patch manually syncs the integration tests requirements hopefully
    for the last time.

    [1] Ie79338cc10cc101fbf15b51c7923e3a7b8e4fbb4

    Change-Id: I3f001bcb7900f6d822055bf3567773b3a594227d

commit 950505d956e99bc9eed7d6fb0223800251d88b95
Author: Rabi Mishra <email address hidden>
Date: Wed Mar 30 09:34:36 2016 +0530

    Revert "Check RBAC policy for nested stacks"

    This is causing issues with tripleo failures
    with ValueError, when trying do stack-preview as
    part of policy enforcement for stack DELETE.

    This reverts commit a8accbba98b5fc15562864030f49d20570bf8412.

    Change-Id: I366316f27f24c650bd435e67dd17abd8676cedf4
    Closes-Bug: #1561172
    (cherry picked from commit 354f1bcef038340d95f7dc4bc29268c9efed642e)

commit 184b09a40672ccfe1964bbf4fc72234d4cd012b6
Author: OpenStack Proposal Bot <email address hidden>
Date: Wed Mar 30 06:08:07 2016 +0000

    Imported Translations from Zanata

    For more information about this automatic import see:
    https://wiki.openstack.org/wiki/Translations/Infrastructure

    Change-Id: I656cedd8162b5a7d1682a33ab9b836ba25d22de9

commit 0c407b8596499466b93d5b511e19b0de130b6f03
Author: Zane Bitter <email address hidden>
Date: Mon Mar 28 17:19:47 2016 -0400

    Add translation rule to delete ssh auth key from Magnum baymodel

    Add a translation rule to ensure that users with existing templates will
    not have them break when they update due to the 'ssh_authorized_key'
    property having been removed from Magnum and hidden in Heat.

    Change-Id: Id73bace93bfc2379e80777da7dc0c0bb059d6cd3
    Related-Bug: #1560284
    (cherry picked from commit 0ab68f891348eeafa1efa219070ef39f776cb6c6)

commit db06ee4514b0cc8037f037788c34631c272cfc6b
Author: Sergey Kraynev <email address hidden>
Date: Thu Mar 24 04:30:39 2016 -0400

    Increase timeout of WaitCondition due to ConcurrentTransactions

    Currently we have retry logic with random period of delay.
    There is a chance, when we have several re-try attemts with maximum
    timeout, so it can be a root cause of floating fails, when we have not
    enough time for getting all signals.

    Also decrease number of signals from 30 to 25, due to small risk, when
    one of signals goes to ConcurrentTransaction error.

    Note, that all these changes are made in corresponding functional test
    and don't affect main code.

    Change-Id: I9ca85c4378d0f62e316f4f40ff73597ffaaabadf
    Related-Bug: #1497274
    (cherry picked from commit 8f370d6174c7574c6ee611b5089eac8a4c37dbf2)

commit 145be139cc8a34c57f84e1991031cfc2595477ba
Author: OpenStack Proposal Bot <openstack-infra...

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

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

commit a404131e9135012007dd34a3796c197761fbd819
Author: Thomas Herve <email address hidden>
Date: Thu Mar 17 16:03:08 2016 +0100

    Remove unknown parameters in patched update

    When updating a stack with the existing flag, we keep the parameters
    from the old template to be used against the new version. Sometimes
    parameters will get remove and won't make sense anymore, and keeping
    them would break update with a 'Parameter was not defined' error. This
    filters out such parameters so that the updates succeed.

    Change-Id: I6f2aa77da28d271dd001a137bb574b5470292f15
    Closes-Bug: #1558610
    (cherry picked from commit 90fc4fe89e76e18df8831e1163c064eae76fbf69)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/heat 7.0.0.0b1

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

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.