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.
Reviewed: https:/ /review. openstack. org/501844 /git.openstack. org/cgit/ openstack/ instack- undercloud/ commit/ ?id=72ce841253c f513ccc1f081efd ddf76eb6bdf7c0
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit 72ce841253cf513 ccc1f081efdddf7 6eb6bdf7c0
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 common- managed
the first run the workflows will not have the tripleo-
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: Ieeb51f8e705b89 88fb4d0f5d17d7f ce6b5b04f36 686b9576d47b037 977b493dbc7 690a4f0d4653359 3f4ad8ad19)
Closes-Bug: #1715389
Change-Id: I84d441daedcafe
(cherry picked from commit d6c0636421d2186