when using ceph-ansible with python3 only deployment fails on task nodes-uuid

Bug #1811974 reported by John Fulton on 2019-01-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
John Fulton

Bug Description

With only python2 installed [1] the deployment fails on the run nodes-uuid task [2]

[1]
[stack@fultonj standalone]$ which python
/usr/bin/which: no python in (/home/stack/.local/bin:/home/stack/bin:/home/stack/.local/bin:/home/stack/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
[stack@fultonj standalone]$ which python3
/usr/bin/python3
[stack@fultonj standalone]$

[2]
TASK [run nodes-uuid] ***********************************************************************************************************************************************[0/1957]
fatal: [undercloud]: FAILED! => {"changed": true, "cmd": "ANSIBLE_LOG_PATH=\"/home/stack/undercloud-ansible-g2yfg745/ceph-ansible/nodes_uuid_command.log\" ANSIBLE_CONFIG=\"/home/stack/undercloud-ansible-g2yfg745/ansible.cfg\" ANSIBLE_REMOTE_TEMP=/tmp/nodes_uuid_tmp ansible-playbook -i /home/stack/undercloud-ansible-g2yfg745/ceph-ansible/inventory.yml /home/stack/undercloud-ansible-g2yfg745/ceph-ansible/nodes_uuid_playbook.yml", "delta": "0:00:01.135083", "end": "2019-01-16 10:31:58.384513", "msg": "non-zero return code", "rc": 2, "start": "2019-01-16 10:31:57.249430", "stderr": "", "stderr_lines": [], "stdout": "\nPLAY [all] *********************************************************************\n\nTASK [set nodes data] **********************************************************\nok: [fultonj]\n\nTASK [register machine id] *****************************************************\nfatal: [fultonj]: FAILED! => {\"changed\": false, \"failed_when_result\": true, \"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}\n\nPLAY RECAP *********************************************************************\nfultonj : ok=1 changed=0 unreachable=0 failed=1
", "stdout_lines": ["", "PLAY [all] *********************************************************************", "", "TASK [set nodes data] **********************************************************", "ok: [fultonj]", "", "TASK [register machine id] *****************************************************", "fatal: [fultonj]: FAILED! => {\"changed\": false, \"failed_when_result\": true, \"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}", "", "PLAY RECAP *********************************************************************", "fultonj : ok=1 changed=0 unreachable=0 failed=1 "]}

NO MORE HOSTS LEFT **********************************************************************************************************************************************************

PLAY RECAP ******************************************************************************************************************************************************************
fultonj : ok=195 changed=68 unreachable=0 failed=0
undercloud : ok=27 changed=17 unreachable=0 failed=1

Exception: Deployment failed
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1232, in _standalone_deploy
    raise exceptions.DeploymentError('Deployment failed')
tripleoclient.exceptions.DeploymentError: Deployment failed

Changed in tripleo:
status: Triaged → In Progress

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

commit 8f297c22e7f6c821a968c4a6917bc6e13a6bfe6e
Author: John Fulton <email address hidden>
Date: Wed Jan 16 11:37:34 2019 +0000

    Make ceph-ansible integration respect PythonInterpreter

    PythonInterpreter defaults to /usr/bin/python. If a user overrides
    this default, e.g. to something like python3, then we should use it.
    Modify ceph-base.yml to use the PythonInterpreter parameter. The
    variable will already be set to ansible_python_interpreter by the
    calling ansible execution.

    Change-Id: If599855c00d0ab8861ea7f873d410f9a880d35be
    Closes-Bug: #1811974

Changed in tripleo:
status: In Progress → Fix Released

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers