The installation of the ovirt "hosted-engine" hangs at the stage "[INFO]
TASK [ovirt.ovirt.hosted_engine_setup: Wait for the host to be up]"
(
https://pastebin.com/zvf9T8nP) for 20 minutes, then gives an error " [ERROR] fatal:
[localhost]: FAILED! => {"Changed": false, "msg": Host is not up,
please check logs, perhaps also on the engine machine "}". At the same time vm
with "engine" started, but the installation was not complete.
In the logs on "ovirt-engine vm"
https://pastebin.com/95GCVeQp I see that the
ansible script searches the host for node02 python2: "2021-03-06 19:42:30 OMST -
fatal: [node02.locdomain.local]: FAILED! => {" changed ": false,"
module_stderr ":" / bin / sh: / usr / bin / python2: 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}"
the choice of the version is carried out according to the condition:
- name: Detect host operating system
set_fact:
el_ver: "{{ ansible_distribution_major_version|int
if ansible_distribution == 'RedHat' or ansible_distribution ==
'CentOS'
else 0 }}"
fc_ver: "{{ ansible_distribution_major_version|int
if ansible_distribution == 'Fedora'
else 0 }}"
"remote_addr" : "node02.locdomain.local",
"res" : {
"changed" : false,
"ansible_facts" : {
"el_ver" : "0",
"fc_ver" : "0"
},
ansible_python_interpreter : "{{ '/usr/bin/python3'
if (fc_ver|int > 0 or el_ver|int >= 8)
else '/usr/bin/python2' }}
/etc/os-release
NAME="AlmaLinux"
VERSION="8.3 (Purple Manul)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.3 RC (Purple Manul)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:almalinux:almalinux:8.3:rc"
HOME_URL="https://almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
cat /etc/redhat-release
AlmaLinux 8.3 RC (Purple Manul)