Error with pre_deployment/post_deployment vars if config-download is disabled

Bug #1856314 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Emilien Macchi

Bug Description

The (pre|post)_deployments_'role' variables are only set in group vars when config download is enabled.

It was lately renamed from 'Role'_(pre|post)_deployments and since it has been failing when the variable can't be found.

It's a problem with the default [] which can't be set.

2019-12-12 21:31:55 | TASK [include_tasks] ***********************************************************
2019-12-12 21:31:55 | Thursday 12 December 2019 21:31:55 -0500 (0:00:00.491) 0:00:13.548 *****
2019-12-12 21:31:55 | fatal: [controller-2]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ControllerOpenstack"}
2019-12-12 21:31:55 | fatal: [controller-1]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ControllerOpenstack"}
2019-12-12 21:31:55 | fatal: [controller-0]: FAILED! => {"msg": "No variable found with this name: pre_deployments_ControllerOpenstack"}

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.opendev.org/698893

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

Change abandoned by Emilien Macchi (<email address hidden>) on branch: master
Review: https://review.opendev.org/698893

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/698907

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

Reviewed: https://review.opendev.org/698907
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=44d2502383bc539287cf42ca488773242ad6be9f
Submitter: Zuul
Branch: stable/stein

commit 44d2502383bc539287cf42ca488773242ad6be9f
Author: Emilien Macchi <email address hidden>
Date: Fri Dec 13 08:59:26 2019 -0500

    deploy-steps: use lookup() to get pre|post_deployments_role variables

    Note: this patch is only for Stein and its previous versions.
    Train and master are fine.

    The syntax in place didn't allow to have an empty default for these 2
    vars; which can happen in Queens if config-download is disabled.

    Using the lookup module allows to set a default.

    Change-Id: I38c658e0b0f2e334bd529fe66f937465036cc205
    Closes-Bug: #1856314

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/699072

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

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/699073

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

Reviewed: https://review.opendev.org/699073
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=619228361608b176430a83db66bc350af24110b4
Submitter: Zuul
Branch: stable/queens

commit 619228361608b176430a83db66bc350af24110b4
Author: Emilien Macchi <email address hidden>
Date: Fri Dec 13 08:59:26 2019 -0500

    deploy-steps: use lookup() to get pre|post_deployments_role variables

    Note: this patch is only for Stein and its previous versions.
    Train and master are fine.

    The syntax in place didn't allow to have an empty default for these 2
    vars; which can happen in Queens if config-download is disabled.

    Using the lookup module allows to set a default.

    Change-Id: I38c658e0b0f2e334bd529fe66f937465036cc205
    Closes-Bug: #1856314
    (cherry picked from commit 44d2502383bc539287cf42ca488773242ad6be9f)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/rocky)

Change abandoned by Emilien Macchi (<email address hidden>) on branch: stable/rocky
Review: https://review.opendev.org/699072
Reason: Clearing the gate now, see https://bugs.launchpad.net/tripleo/+bug/1856864
Do not restore the patch yet, I'll take care of it when the gate is back online.

Changed in tripleo:
milestone: ussuri-1 → ussuri-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/rocky)

Reviewed: https://review.opendev.org/699072
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=c8912671511b570bc997356000b94ee9a0b326e6
Submitter: Zuul
Branch: stable/rocky

commit c8912671511b570bc997356000b94ee9a0b326e6
Author: Emilien Macchi <email address hidden>
Date: Fri Dec 13 08:59:26 2019 -0500

    deploy-steps: use lookup() to get pre|post_deployments_role variables

    Note: this patch is only for Stein and its previous versions.
    Train and master are fine.

    The syntax in place didn't allow to have an empty default for these 2
    vars; which can happen in Queens if config-download is disabled.

    Using the lookup module allows to set a default.

    Change-Id: I38c658e0b0f2e334bd529fe66f937465036cc205
    Closes-Bug: #1856314
    (cherry picked from commit 44d2502383bc539287cf42ca488773242ad6be9f)

tags: added: in-stable-rocky
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
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 rocky-eol

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

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

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

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

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