yum repolist
Updating Subscription Management repositories.
repo id repo name
Jack_Henry_Katello_Host_Tools_katello_client_el9_x86_64_3_4 katello_client_el9_x86_64 3.4
rhel-9-for-x86_64-appstream-rpms Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
ansible --version
ansible 2.9.20
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
executable location = /bin/ansible
python version = 3.9.14 (main, Jan 9 2023, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)]
python --version
Python 3.9.14
# rpm -qa | grep ibm
libmnl-1.0.4-15.el9.x86_64
libmaxminddb-1.5.2-3.el9.x86_64
libmspack-0.10.1-0.7.alpha.el9.x86_64
libmount-2.37.4-9.el9.x86_64
libmodulemd-2.13.0-2.el9.x86_64
python39-setuptools-54.1.1-4.ibm.el8.noarch
python3-ply-3.11-20.ibm.el8.noarch
python3-six-1.16.0-1.ibm.el8.noarch
python3-pycparser-2.20-94.ibm.el8.noarch
python3-cffi-1.14.5-92.ibm.el9.x86_64
python3-idna-2.10-92.ibm.el8.noarch
python3-PyYAML-6.0-2.ibm.el8.x86_64
python3-cryptography-36.0.1-2.ibm.el9.x86_64
python3-pyOpenSSL-22.0.0-1.ibm.el8.x86_64
python3-jinja2-3.0.3-1.ibm.noarch
python3-zipp-3.4.0-3.ibm.el8.noarch
python3-daemon-2.2.4-1.ibm.el8.noarch
python3-PyNaCl-1.4.0-3.ibm.el8.x86_64
python3-iniparse-0.5-1.ibm.el8.noarch
python3-chardet-4.0.0-92.ibm.el8.noarch
python3-backports-ssl_match_hostname-3.7.0.1-3.ibm.el8.noarch
python3-json-logger-2.0.1-2.ibm.el8.noarch
python3-jmespath-0.10.0-2.ibm.el8.noarch
python3-ipaddress-1.0.23-2.ibm.el8.noarch
python3-urllib3-1.25.7-20.ibm.el8.noarch
python3-requests-2.25.1-20.ibm.el8.noarch
ansible-collection-ansible-posix-1.4.0-1.ibm.el9.noarch
ansible-collection-community-general-5.5.0-1.ibm.el9.noarch
ansible-collection-community-mongodb-1.4.2-1.ibm.el9.noarch
python3-ansible-runner-1.4.6-2.ibm.el8.noarch
python3-argparse-1.4.0-2.ibm.noarch
powervc-opsmgr-2.1.0-1.ibm.el8.noarch
python3-powervc-opsmgr-2.1.0-1.ibm.el8.noarch
python3-crudini-0.9-4.ibm.el8.noarch
python3-oslo-i18n-5.1.0-1.ibm.el8.noarch
rpm -qa | grep ansible
ansible-2.9.20-3.el8.noarch
ansible-collection-ansible-posix-1.4.0-1.ibm.el9.noarch
ansible-collection-community-general-5.5.0-1.ibm.el9.noarch
ansible-collection-community-mongodb-1.4.2-1.ibm.el9.noarch
python3-ansible-runner-1.4.6-2.ibm.el8.noarch
------------------------------
Karen Van Gogh
Jack Henry and Associates
kvangogh@jackhenry.com------------------------------
Original Message:
Sent: Tue March 28, 2023 01:19 PM
From: Karen Van Gogh
Subject: PowerVC 2.1 install failure fatal looks like python we are using 3.9.14 and RHEL 9.1
unable to determine the cause of the fatals from the install. It looks like its trying to set python to 3.9 its referencing RHEL V8 we are on V9
Looks like its trying to read an //var/lib/alternatives/python file. We are not using an alternative.
TASK [pvc_utils : Install python39 packages] ***********************************
ok: [servername]
TASK [pvc_utils : Install python39 packages] ***********************************
ok: [servername]
Tuesday 28 March 2023 10:57:12 -0500 (0:00:01.997) 0:00:13.714 *********
TASK [pvc_utils : Set python to python39 for RHEL8] ****************************
fatal: [servername]: FAILED! => {"changed": true, "cmd": "alternatives --set python /usr/bin/python3.9", "delta": "0:00:00.006701", "end": "2023-03-28 10:57:12.746113", "msg": "non-zero return code", "rc": 2, "start": "2023-03-28 10:57:12.739412", "stderr": "cannot access /var/lib/alternatives/python: No such file or directory", "stderr_lines": ["cannot access /var/lib/alternatives/python: No such file or directory"], "stdout": "", "stdout_lines": []}
TASK [pvc_utils : Set python to python39 for RHEL8] ****************************
fatal: [servername]: FAILED! => {"changed": true, "cmd": "alternatives --set python /usr/bin/python3.9", "delta": "0:00:00.006701", "end": "2023-03-28 10:57:12.746113", "msg": "non-zero return code", "rc": 2, "start": "2023-03-28 10:57:12.739412", "stderr": "cannot access /var/lib/alternatives/python: No such file or directory", "stderr_lines": ["cannot access /var/lib/alternatives/python: No such file or directory"], "stdout": "", "stdout_lines": []}
Tuesday 28 March 2023 10:57:12 -0500 (0:00:00.402) 0:00:14.116 *********
Tuesday 28 March 2023 10:57:12 -0500 (0:00:00.062) 0:00:14.179 *********
changed: [servername]
------------------------------
Karen Van Gogh
Jack Henry and Associates
kvangogh@jackhenry.com
------------------------------
#PowerVC