FFU: error while evaluating conditional (tripleo_role_name == \\'Compute\\' and ansible_hostname == Compute[0])

Bug #1816422 reported by Sofer Athlan-Guyot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Sofer Athlan-Guyot

Bug Description

Hi,

originally reported there https://bugzilla.redhat.com/show_bug.cgi?id=1678235

FFU fails on run ffu upgrade.
error while evaluating conditional (tripleo_role_name == \\'Compute\\' and ansible_hostname == Compute[0]):
error appears to have been in \\'/var/lib/mistral/69019ca8-89a4-4741-af85-0088758c813f/fast_forward_upgrade_bootstrap_role_tasks.yaml
Version-Release number of selected component (if applicable):

How reproducible:
100%

Steps to Reproduce:
1. deploy rhos10
2. run FFU undercloud upgrade
3. prepare docker images
4. run ffu prepare step
5. run the ffu upgrade run

Actual results:
the FFU process fails with the error above.

Expected results:

The stage, step to pass with no errors

Additional info:
u'TASK [include_tasks] ***********************************************************',", " u'Sunday 17 February 2019 13:27:18 -0500 (0:00:01.428) 0:12:15.360 ******* ',", " u'fatal: [controller-2]: FAILED! => {\"msg\": \"The conditional check \\'tripleo_role_name == \\'Controller\\' and ansible_hostname == Controller[0]\\' failed. The error was: error while evaluating conditional (tripleo_role_name == \\'Controller\\' and ansible_hostname == Controller[0]): \\'Controller\\' is undefined\\\\n\\\\nThe error appears to have been in \\'/var/lib/mistral/69019ca8-89a4-4741-af85-0088758c813f/fast_forward_upgrade_bootstrap_role_tasks.yaml\\': line 1, column 3, but may\\\\nbe elsewhere in the file depending on the exact syntax problem.\\\\n\\\\nThe offending line appears to be:\\\\n\\\\n\\\\n- include_tasks: Controller/fast_forward_upgrade_tasks.yaml\\\\n ^ here\\\\n\"}',", " u'fatal: [controller-1]: FAILED! => {\"msg\": \"The conditional check \\'tripleo_role_name == \\'Controller\\' and ansible_hostname == Controller[0]\\' failed. The error was: error while evaluating conditional (tripleo_role_name == \\'Controller\\' and ansible_hostname == Controller[0]): \\'Controller\\' is undefined\\\\n\\\\nThe error appears to have been in \\'/var/lib/mistral/69019ca8-89a4-4741-af85-0088758c813f/fast_forward_upgrade_bootstrap_role_tasks.yaml\\': line 1, column 3, but may\\\\nbe elsewhere in the file depending on the exact syntax problem.\\\\n\\\\nThe offending line appears to be:\\\\n\\\\n\\\\n- include_tasks: Controller/fast_forward_upgrade_tasks.yaml\\\\n ^ here\\\\n\"}',", " u'fatal: [controller-0]: FAILED! => {\"msg\": \"The conditional check \\'tripleo_role_name == \\'Controller\\' and ansible_hostname == Controller[0]\\' failed. The error was: error while evaluating conditional (tripleo_role_name == \\'Controller\\' and ansible_hostname == Controller[0]): \\'Controller\\' is undefined\\\\n\\\\nThe error appears to have been in \\'/var/lib/mistral/69019ca8-89a4-4741-af85-0088758c813f/fast_forward_upgrade_bootstrap_role_tasks.yaml\\': line 1, column 3, but may\\\\nbe elsewhere in the file depending on the exact syntax problem.\\\\n\\\\nThe offending line appears to be:\\\\n\\\\n\\\\n- include_tasks: Controller/fast_forward_upgrade_tasks.yaml\\\\n ^ here\\\\n\"}',", " u'skipping: [compute-1] => {\"changed\": false, \"skip_reason\": \"Conditional result was False\"}',", " u'skipping: [compute-0] => {\"changed\": false, \"skip_reason\": \"Conditional result was False\"}',", " u'skipping: [ceph-1] => {\"changed\": false, \"skip_reason\": \"Conditional result was False\"}',", " u'skipping: [ceph-0] => {\"changed\": false, \"skip_reason\": \"Conditional result was False\"}',", " u'skipping: [ceph-2] => {\"changed\": false, \"skip_reason\": \"Conditional result was False\"}',", " u'',", " u'TASK [include_tasks] ***********************************************************',",

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/637542

Changed in tripleo:
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
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/637542
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=a0c3612db836343143b8ebd160710216203dfc8a
Submitter: Zuul
Branch: master

commit a0c3612db836343143b8ebd160710216203dfc8a
Author: Sofer Athlan-Guyot <email address hidden>
Date: Mon Feb 18 14:38:37 2019 +0100

    [FFU] Make sure group access work correctly with ansible 2.6.

    Hi, with ansible 2.6 we cannot access the groups variable using the
    previous idiom anymore. Use a more robust way to access that
    variable.

    Co-Authored-By: "Lukas Bezdicka <email address hidden>"
    Change-Id: I26f97e7fc4da0dd19e1e8a19b3f6a1c1160f7466
    Closes-bug: #1816422

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/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/639045

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.openstack.org/639046

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

Change abandoned by Lukas Bezdicka (<email address hidden>) on branch: stable/rocky
Review: https://review.openstack.org/639045
Reason: broken. will do different fix and backport that.

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

Change abandoned by Lukas Bezdicka (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/639046
Reason: broken. will do different fix and backport that.

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/639169

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.openstack.org/639303

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.openstack.org/639305

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

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

commit 142c944e0fa3e034b97ad09584df1f35adfce231
Author: Lukas Bezdicka <email address hidden>
Date: Mon Feb 25 19:18:09 2019 +0100

    [FFU] Ensure compatibility with ansible 2.6.

    Ansible 2.6 fix didn't properly selct bootstrap node. Also
    new ansible changed mysql backend library making it unable
    to read misformated my.cnf. This library also needs to have
    socket specified if it's going to connect to local server.

    Change-Id: I31b38eaf66bb899e72b1bfeca8795e5d1007eee5
    Resolves: rhbz#1678235
    Closes-bug: #1816422

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

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

commit 1792fa2bea2a86fd849d991d1538fa25945746a6
Author: Lukas Bezdicka <email address hidden>
Date: Mon Feb 25 19:18:09 2019 +0100

    [FFU] Ensure compatibility with ansible 2.6.

    Ansible 2.6 fix didn't properly selct bootstrap node. Also
    new ansible changed mysql backend library making it unable
    to read misformated my.cnf. This library also needs to have
    socket specified if it's going to connect to local server.

    Change-Id: I31b38eaf66bb899e72b1bfeca8795e5d1007eee5
    Resolves: rhbz#1678235
    Closes-bug: #1816422
    (cherry picked from commit d8c368e09f375136efc94cc2b2512bbad8a7ad67)

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

Reviewed: https://review.openstack.org/639305
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=6297c1b2d812b504f3a037af5d358a8eb22ef0eb
Submitter: Zuul
Branch: stable/queens

commit 6297c1b2d812b504f3a037af5d358a8eb22ef0eb
Author: Lukas Bezdicka <email address hidden>
Date: Mon Feb 25 19:18:09 2019 +0100

    [FFU] Ensure compatibility with ansible 2.6.

    Ansible 2.6 fix didn't properly selct bootstrap node. Also
    new ansible changed mysql backend library making it unable
    to read misformated my.cnf. This library also needs to have
    socket specified if it's going to connect to local server.

    Change-Id: I31b38eaf66bb899e72b1bfeca8795e5d1007eee5
    Resolves: rhbz#1678235
    Closes-bug: #1816422
    (cherry picked from commit d8c368e09f375136efc94cc2b2512bbad8a7ad67)

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

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

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

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

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

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