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
Reviewed: https:/ /review. openstack. org/631198 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=8f297c22e7f 6c821a968c4a691 7bc6e13a6bfe6e
Committed: https:/
Submitter: Zuul
Branch: master
commit 8f297c22e7f6c82 1a968c4a6917bc6 e13a6bfe6e
Author: John Fulton <email address hidden>
Date: Wed Jan 16 11:37:34 2019 +0000
Make ceph-ansible integration respect PythonInterpreter
PythonInter preter defaults to /usr/bin/python. If a user overrides python_ interpreter by the
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_
calling ansible execution.
Change-Id: If599855c00d0ab 8861ea7f873d410 f9a880d35be
Closes-Bug: #1811974