is_bootstrap_node fact potential name collisions

Bug #1810408 reported by Jiří Stránský
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Jiří Stránský

Bug Description

Many services currently set an `is_bootstrap_node` fact, meaning they
override each other's results when the fact is being set. As long as
the fact doesn't belong into a particular step but it's executed on
every step, nothing bad happens, as the correct is_bootstrap_node
setting directly precedes any service upgrade tasks. However, we
intend to put the fact setting into step 0 in change
Ib04b051e8f4275e06be0cafa81e2111c9cced9b7 and at that point the name
collision would break upgrades (only one service would "win" in
setting the is_bootstrap_node fact).

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

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

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

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

commit 54fb81ecd94965e6b518060a4760c6aeb3987efe
Author: Jiri Stransky <email address hidden>
Date: Thu Jan 3 13:50:09 2019 +0100

    Prevent service bootstrap node facts from colliding with each other

    Many services currently set an `is_bootstrap_node` fact, meaning they
    override each other's results when the fact is being set. As long as
    the fact doesn't belong into a particular step but it's executed on
    every step, nothing bad happens, as the correct is_bootstrap_node
    setting directly precedes any service upgrade tasks. However, we
    intend to put the fact setting into step 0 in change
    Ib04b051e8f4275e06be0cafa81e2111c9cced9b7 and at that point the name
    collision would break upgrades (only one service would "win" in
    setting the is_bootstrap_node fact).

    This patch changes the is_bootstrap_node facts in upgrade_tasks to use
    per-service naming.

    Note that fast_forward_upgrade_tasks use their own is_boostrap_node
    logic. We've uncovered some weirdness there while looking into the
    is_boostrap_node issue, but the fix is not a low hanging fruit and
    likely we'll be completely redoing the FFU tasks for Q->T
    upgrade. So the FFU tasks are left alone for now.

    Change-Id: I9c585d3cb282b7e4eb0bacb3cf6909e04a9a495e
    Closes-Bug: #1810408

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.3.0

This issue was fixed in the openstack/tripleo-heat-templates 10.3.0 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.