We make sure the hiera is set in an either-or branches so that we
prevent from executing both at the same time or none at all.
Edge case 1 which is not that much of an edge case --
single-controller environment with Pacemaker. Previously we ran both
branches resulting in duplicate entries.
Edge case 2 -- having the service in roles data but having no node
assigned to that role. In that case previously we wouldn't set the
variables and the upgrade would fail.
Reviewed: https:/ /review. opendev. org/670062 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=2b427970a36 a63cc2b9afbd61f 10fe033287aca5
Committed: https:/
Submitter: Zuul
Branch: master
commit 2b427970a36a63c c2b9afbd61f10fe 033287aca5
Author: Jiri Stransky <email address hidden>
Date: Wed Jul 10 15:24:13 2019 +0200
Handle edge cases in staged upgrade hiera data
We make sure the hiera is set in an either-or branches so that we
prevent from executing both at the same time or none at all.
Edge case 1 which is not that much of an edge case -- controller environment with Pacemaker. Previously we ran both
single-
branches resulting in duplicate entries.
Edge case 2 -- having the service in roles data but having no node
assigned to that role. In that case previously we wouldn't set the
variables and the upgrade would fail.
Change-Id: I1681a5e5ac7842 500fc5e9dd0900e e6121773537
Partial-Bug: #1831690