bootstrap node index is hard coded again

Bug #1724888 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Steven Hardy

Bug Description

I think the switch to containers has reintroduced https://bugs.launchpad.net/tripleo/+bug/1640449 because we now do:

{get_param: [servers, {{primary_role_name}}, '0']}

In a couple of places in common/deploy-steps.j2

This is a regression because we should instead get the first available server, not the one called "0" from the map generated by the resource group.

Previously we fixed this via https://review.openstack.org/#/c/395699/3/overcloud.j2.yaml but I think a different approach may be needed as we get a map not a list inside deploy-steps.j2

Steven Hardy (shardy)
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → queens-2
assignee: nobody → Steven Hardy (shardy)
tags: added: pike-backport-potential
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/513449

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

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

commit a460a093c7a8f1cb18a9f955d7fadb4178416f9a
Author: Steven Hardy <email address hidden>
Date: Thu Oct 19 18:06:42 2017 +0100

    Select first node as bootstrap node not using name

    This fixes a regression which reintroduced bug #1640449 because
    we hard-code the node index/name instead of sorting the map of servers

    Change-Id: Iaffc66a41edf176dde3b5adf603a9cff6db7aa24
    Closes-Bug: #1724888

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

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

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

Reviewed: https://review.openstack.org/523822
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ce071f3faea62f1337d80e42f12b201606074d29
Submitter: Zuul
Branch: stable/pike

commit ce071f3faea62f1337d80e42f12b201606074d29
Author: Steven Hardy <email address hidden>
Date: Thu Oct 19 18:06:42 2017 +0100

    Select first node as bootstrap node not using name

    This fixes a regression which reintroduced bug #1640449 because
    we hard-code the node index/name instead of sorting the map of servers

    Conflicts:
     common/deploy-steps.j2

    Change-Id: Iaffc66a41edf176dde3b5adf603a9cff6db7aa24
    Closes-Bug: #1724888
    (cherry picked from commit a460a093c7a8f1cb18a9f955d7fadb4178416f9a)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.6

This issue was fixed in the openstack/tripleo-heat-templates 7.0.6 release.

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/513449
Reason: Abandoning this patch per the TripleO Patch Abandonment guidelines (https://specs.openstack.org/openstack/tripleo-specs/specs/policy/patch-abandonment.html). If you wish to have this restored and cannot do so yourself, please reach out via #tripleo on freenode or the OpenStack Dev mailing list.

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.