When running the overcloud upgrade run operation for the first controller, it is failing with the following error:
2019-12-12 17:14:59 | PLAY [Gather facts from undercloud] ********************************************
2019-12-12 17:14:59 | skipping: no hosts matched
2019-12-12 17:14:59 |
2019-12-12 17:14:59 | PLAY [Gather facts from overcloud] *********************************************
2019-12-12 17:14:59 |
2019-12-12 17:14:59 | PLAY [Load global variables] ***************************************************
2019-12-12 17:14:59 | Thursday 12 December 2019 17:14:58 -0500 (0:00:00.132) 0:00:00.132 *****
2019-12-12 17:14:59 |
2019-12-12 17:14:59 | TASK [include_vars] ************************************************************
2019-12-12 17:14:59 | ok: [controller-0] => {"ansible_facts": {"deploy_steps_max": 6, "ssh_known_hosts": {"compute-0": "[172.17.1.30]*,[compute-0.redhat.local]*,[compute-0]*,[172.17.3.19]*,[compute-0.storage.redhat.local]*,[compute-0.storage]*,[172.17.1.30]*,[compute-0.internalapi.redhat.local]*,[compute-0.internalapi]*,[172.17.2.10]*,[compute-0.tenant.redhat.local]*,[compute-0.tenant]*,[192.168.24.6]*,[compute-0.ctlplane.redhat.local]*,[compute-0.ctlplane]*", "compute-1": "[172.17.1.23]*,[compute-1.redhat.local]*,[compute-1]*,[172.17.3.34]*,[compute-1.storage.redhat.local]*,[compute-1.storage]*,[172.17.1.23]*,[compute-1.internalapi.redhat.local]*,[compute-1.internalapi]*,[172.17.2.29]*,[compute-1.tenant.redhat.local]*,[compute-1.tenant]*,[192.168.24.13]*,[compute-1.ctlplane.redhat.local]*,[compute-1.ctlplane]*", "controller-0": "[172.17.1.31]*,[controller-0.redhat.local]*,[controller-0]*,[172.17.3.22]*,[controller-0.storage.redhat.local]*,[controller-0.storage]*,[172.17.4.26]*,[controller-0.storagemgmt.redhat.local]*,[controller-0.storagemgmt]*,[172.17.1.31]*,[controller-0.internalapi.redhat.local]*,[controller-0.internalapi]*,[172.17.2.18]*,[controller-0.tenant.redhat.local]*,[controller-0.tenant]*,[10.0.0.110]*,[controller-0.external.redhat.local]*,[controller-0.external]*,[192.168.24.24]*,[controller-0.ctlplane.redhat.local]*,[controller-0.ctlplane]*", "controller-1": "[172.17.1.14]*,[controller-1.redhat.local]*,[controller-1]*,[172.17.3.24]*,[controller-1.storage.redhat.local]*,[controller-1.storage]*,[172.17.4.10]*,[controller-1.storagemgmt.redhat.local]*,[controller-1.storagemgmt]*,[172.17.1.14]*,[controller-1.internalapi.redhat.local]*,[controller-1.internalapi]*,[172.17.2.25]*,[controller-1.tenant.redhat.local]*,[controller-1.tenant]*,[10.0.0.106]*,[controller-1.external.redhat.local]*,[controller-1.external]*,[192.168.24.10]*,[controller-1.ctlplane.redhat.local]*,[controller-1.ctlplane]*", "controller-2": "[172.17.1.17]*,[controller-2.redhat.local]*,[controller-2]*,[172.17.3.28]*,[controller-2.storage.redhat.local]*,[controller-2.storage]*,[172.17.4.32]*,[controller-2.storagemgmt.redhat.local]*,[controller-2.storagemgmt]*,[172.17.1.17]*,[controller-2.internalapi.redhat.local]*,[controller-2.internalapi]*,[172.17.2.13]*,[controller-2.tenant.redhat.local]*,[controller-2.tenant]*,[10.0.0.104]*,[controller-2.external.redhat.local]*,[controller-2.external]*,[192.168.24.17]*,[controller-2.ctlplane.redhat.local]*,[controller-2.ctlplane]*"}}, "ansible_included_var_files": ["/var/lib/mistral/607d277d-df56-40ef-95bc-5bc7f46dac5f/global_vars.yaml"], "changed": false}
2019-12-12 17:14:59 | Thursday 12 December 2019 17:14:58 -0500 (0:00:00.079) 0:00:00.211 *****
2019-12-12 17:14:59 |
2019-12-12 17:14:59 | TASK [ensure we get the right selinux context] *********************************
2019-12-12 17:14:59 | fatal: [controller-0]: FAILED! => {"changed": false, "module_stderr": "Warning: Permanently added '192.168.24.24' (ECDSA) to the list of known hosts.\r\n/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}
2019-12-12 17:14:59 |
2019-12-12 17:14:59 | PLAY RECAP *********************************************************************
2019-12-12 17:14:59 | controller-0 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2019-12-12 17:14:59 |
2019-12-12 17:14:59 | Thursday 12 December 2019 17:14:59 -0500 (0:00:00.446) 0:00:00.658 *****
2019-12-12 17:14:59 | ===============================================================================
When checking the overcloud-0 facts cache, we can see that it hasn't been updated and the ansible_python binary is still pointing to /usr/bin/python which it isn't present at that point in time as we have upgraded the controller from RHEL7 to RHEL8.
Fix proposed to branch: master /review. opendev. org/698891
Review: https:/