During a SAS® Viya® 3.5 upgrade, the Ansible play “Perform host connection check” fails on one or more hosts in the deployment. This issue occurs on Red Hat Enterprise Linux 8 hosts where the unversioned python command is not present.
You can resolve this issue by creating a python symlink to the installed Python 3 interpreter on every host in the deployment.
The deployment playbooks use Ansible, which needs a Python interpreter on each target host to run its modules. On Red Hat Enterprise Linux 8 and later, the unversioned /usr/bin/python command is not installed by default, because the operating system distinguishes between Python 2 and Python 3. As a result, Ansible cannot locate a Python interpreter on the target hosts when it runs the connection check, and the play fails with an error similar to the following:
/usr/bin/env: ‘python’: No such file or directory
To resolve this issue, configure the unversioned python command on every host in the deployment, including all nodes in the cluster.
1. Confirm that Python 3 is installed:
python3 --version
2. Create the python symlink that points to Python 3. On Red Hat Enterprise Linux, the supported method is the alternatives command:
sudo alternatives --set python /usr/bin/python3
Alternatively, create the link directly:
sudo ln -s /usr/bin/python3 /usr/bin/python
3. Verify that the command resolves on each host:
python --version
4. Re-run the deployment playbook.
Red Hat documents this behavior in Installing and using dynamic programming languages.