After undercloud update, overcloud updates fail with The Workflow (tripleo.overcloud.workflowtasks.step2) could not be found.

Bug #1715389 reported by Giulio Fidente
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Dougal Matthews

Bug Description

We seem to be removing all workflows with 'tripleo' in the name from instack-undercloud after the undercloud update [1]

Some of the workflows (tripleo.$stackname.workflowtasks.$stepnumber) are created during the stack deployment [2] are necessary on stack updates and should not be removed.

1. https://github.com/openstack/instack-undercloud/blob/master/instack_undercloud/undercloud.py#L1533
2. https://github.com/openstack/tripleo-heat-templates/blob/master/common/deploy-steps.j2#L109

summary: - On minor update the WorkflowTasks are delete from Mistral
+ After undercloud update, overcloud updates fail with The Workflow
+ (tripleo.overcloud.workflowtasks.step2) could not be found.
Changed in tripleo:
milestone: none → queens-1
Revision history for this message
Alex Schultz (alex-schultz) wrote :

Can we rename the dynamically created tasks to a different format perhaps?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

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

Changed in tripleo:
assignee: nobody → Dougal Matthews (d0ugal)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/501319
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=e0434359dd291d283b8c5c6246aeb48171995dbf
Submitter: Jenkins
Branch: master

commit e0434359dd291d283b8c5c6246aeb48171995dbf
Author: Dougal Matthews <email address hidden>
Date: Wed Sep 6 16:46:11 2017 +0100

    Add "tripleo-common-managed" to all workflows in tripleo_common

    At the moment instack-undercloud deletes all workflows with "tripleo" in
    the name. This has caused an issue when workflows come from other
    locations but shouldn't be deleted.

    Adding the tag allows instack-undercloud to delete only workflows with
    this tag. It shouldn't delete or touch workflows outside of the
    tripleo-common package.

    Parital-Bug: #1715389
    Change-Id: Ieeb51f8e705b8988fb4d0f5d17d7fce6b5b04f36

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/501554

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/501594

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/pike)

Reviewed: https://review.openstack.org/501554
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=87ec6cf5a98069d4ea5f979bb9d4af4545926e49
Submitter: Jenkins
Branch: stable/pike

commit 87ec6cf5a98069d4ea5f979bb9d4af4545926e49
Author: Dougal Matthews <email address hidden>
Date: Wed Sep 6 16:46:11 2017 +0100

    Add "tripleo-common-managed" to all workflows in tripleo_common

    At the moment instack-undercloud deletes all workflows with "tripleo" in
    the name. This has caused an issue when workflows come from other
    locations but shouldn't be deleted.

    Adding the tag allows instack-undercloud to delete only workflows with
    this tag. It shouldn't delete or touch workflows outside of the
    tripleo-common package.

    Parital-Bug: #1715389
    Change-Id: Ieeb51f8e705b8988fb4d0f5d17d7fce6b5b04f36
    (cherry picked from commit e0434359dd291d283b8c5c6246aeb48171995dbf)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/501844

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/501326
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=d6c0636421d2186690a4f0d46533593f4ad8ad19
Submitter: Jenkins
Branch: master

commit d6c0636421d2186690a4f0d46533593f4ad8ad19
Author: Dougal Matthews <email address hidden>
Date: Wed Sep 6 16:56:09 2017 +0100

    Only delete workflows with the tripleo-common-managed tag

    The new workflow tag allows us to detect tripleo-common workflows. It is
    safe to delete and reload these. Workflows that come from other places
    shouldn't be removed.

    There is some upgrade logic here that handles the O -> P upgrade, as on
    the first run the workflows will not have the tripleo-common-managed
    tag. If the tag isn't found, we revert to the current behaviour and then
    on future undercloud installations this wont be a problem.

    The new test is a duplication of a previous test but with multiple
    workflows that have tripleo in the name. Only the one with the tag is
    deleted.

    Depends-On: Ieeb51f8e705b8988fb4d0f5d17d7fce6b5b04f36
    Closes-Bug: #1715389
    Change-Id: I84d441daedcafe686b9576d47b037977b493dbc7

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/pike)

Reviewed: https://review.openstack.org/501844
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=72ce841253cf513ccc1f081efdddf76eb6bdf7c0
Submitter: Jenkins
Branch: stable/pike

commit 72ce841253cf513ccc1f081efdddf76eb6bdf7c0
Author: Dougal Matthews <email address hidden>
Date: Wed Sep 6 16:56:09 2017 +0100

    Only delete workflows with the tripleo-common-managed tag

    The new workflow tag allows us to detect tripleo-common workflows. It is
    safe to delete and reload these. Workflows that come from other places
    shouldn't be removed.

    There is some upgrade logic here that handles the O -> P upgrade, as on
    the first run the workflows will not have the tripleo-common-managed
    tag. If the tag isn't found, we revert to the current behaviour and then
    on future undercloud installations this wont be a problem.

    The new test is a duplication of a previous test but with multiple
    workflows that have tripleo in the name. Only the one with the tag is
    deleted.

    Depends-On: Ieeb51f8e705b8988fb4d0f5d17d7fce6b5b04f36
    Closes-Bug: #1715389
    Change-Id: I84d441daedcafe686b9576d47b037977b493dbc7
    (cherry picked from commit d6c0636421d2186690a4f0d46533593f4ad8ad19)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 7.4.0

This issue was fixed in the openstack/instack-undercloud 7.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/501594
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=a7a02f0da866c66dce9757a42bf56144cfa70d5a
Submitter: Jenkins
Branch: master

commit a7a02f0da866c66dce9757a42bf56144cfa70d5a
Author: Giulio Fidente <email address hidden>
Date: Thu Sep 7 09:13:04 2017 +0200

    Tag workflows created by the templates

    This is useful to easily filter workflows created by the templates
    and for a specific stack.

    Change-Id: I0a26cacaf5ad5709881043434694c9254a9e710b
    Related-Bug: #1715389

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/503762

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/503766

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Alex Schultz (<email address hidden>) on branch: master
Review: https://review.openstack.org/503766
Reason: https://review.openstack.org/#/c/503762/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 8.0.0

This issue was fixed in the openstack/instack-undercloud 8.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/503762
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=f890e4e5120e7e969a1d0c9ca10a798ddb626eef
Submitter: Zuul
Branch: master

commit f890e4e5120e7e969a1d0c9ca10a798ddb626eef
Author: Giulio Fidente <email address hidden>
Date: Wed Sep 13 19:34:14 2017 +0200

    Revert "Revert "Tag workflows created by the templates""

    Also touches ceph-ansible/ceph-base.yaml to make sure this is
    tested by scenario001

    Change-Id: I7a7beea36669a79662f384315a3fbd19c958de8a
    Related-Bug: #1715389

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/520357

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/pike)

Change abandoned by Giulio Fidente (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/520357
Reason: Never landed into master

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.