Upgrade data transfer step fails: /usr/bin/python: No such file or directory

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

Bug Description

TASK [tripleo-transfer : wipe the destination directory] ***********************
Friday 24 May 2019 08:57:02 +0000 (0:00:00.377) 0:01:04.821 ************
[DEPRECATION WARNING]: evaluating mysql_upgrade_transfer as a bare variable,
this behaviour will go away and you might need to add |bool to the expression
in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This
feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
fatal: [undercloud]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: /usr/bin/python: No such file or directory\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need
 to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}

This is likely due to some bad interaction between `delegate_to` used in that task, and the heterogenous mix of EL7/8 machines in the environment.

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

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

Reviewed: https://review.opendev.org/661718
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=770b578bfbb151a91184f1e6f403e952def0c30e
Submitter: Zuul
Branch: master

commit 770b578bfbb151a91184f1e6f403e952def0c30e
Author: Jiri Stransky <email address hidden>
Date: Tue May 28 10:49:28 2019 +0000

    Explicitly set ansible_python_interpreter in external upgrade playbook

    During the run of external upgrade playbook, we connect to systems
    with different OS releases via delegate_to, which seems to confuse the
    autodetection of Python interpreter. Set it explicitly to
    platform-python which should work both on EL7 and EL8.

    Co-Authored-By: Sergii Golovatiuk <email address hidden>
    Change-Id: Ieb486f0c3e4de7229cdd2be49d4d0f038668f06d
    Closes-Bug: #1830713

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

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

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

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

commit d5d227b5485c373e8c79de617c00f40c3b77b48d
Author: Jiri Stransky <email address hidden>
Date: Tue May 28 10:49:28 2019 +0000

    Explicitly set ansible_python_interpreter in external upgrade playbook

    During the run of external upgrade playbook, we connect to systems
    with different OS releases via delegate_to, which seems to confuse the
    autodetection of Python interpreter. Set it explicitly to
    platform-python which should work both on EL7 and EL8.

    Co-Authored-By: Sergii Golovatiuk <email address hidden>
    Change-Id: Ieb486f0c3e4de7229cdd2be49d4d0f038668f06d
    Closes-Bug: #1830713
    (cherry picked from commit 770b578bfbb151a91184f1e6f403e952def0c30e)

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

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

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

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