Open ralberrto opened 9 months ago
This might be a problem with selinux on my system somehow:
(.venv) alberto@thinkpad $ python
Python 3.9.16 (main, May 31 2023, 12:21:58)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import selinux
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/alberto/k8s-storage-tests/.venv/lib64/python3.9/site-packages/selinux/__init__.py", line 106, in <module>
check_system_sitepackages()
File "/home/alberto/k8s-storage-tests/.venv/lib64/python3.9/site-packages/selinux/__init__.py", line 102, in check_system_sitepackages
raise Exception(
Exception: Failed to detect selinux python bindings at ['/usr/local/lib64/python3.9/site-packages', '/usr/local/lib/python3.9/site-packages', '/usr/lib64/python3.9/site-packages', '/usr/lib/python3.9/site-packages']
(.venv) alberto@thinkpad $ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.8 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.8 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.8 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
3.6
:PLAY [localhost] ***
TASK [ocp login using creds] *** skipping: [localhost]
TASK [ocp login using token] *** changed: [localhost]
TASK [debug] *** skipping: [localhost]
TASK [debug] *** ok: [localhost] => { "login_token.stdout_lines": [ "WARNING: Using insecure TLS client config. Setting this option is not supported!", "", "Logged into \"https://api.ocp-d.cpst-lab.ibm.com:6443\" as \"kube:admin\" using the token provided.", "", "You have access to 83 projects, the list has been suppressed. You can list all projects with 'oc projects'", "", "Using project \"default\"." ] } . . .
(.venv36) alberto@thinkpad $ python -V Python 3.6.8
(.venv310) alberto@thinkpad $ ansible-playbook main.yml --extra-vars "@./params.yml" | tee output.log [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] ***
TASK [ocp login using creds] *** skipping: [localhost]
TASK [ocp login using token] *** changed: [localhost]
TASK [debug] *** skipping: [localhost]
TASK [debug] *** ok: [localhost] => { "login_token.stdout_lines": [ "WARNING: Using insecure TLS client config. Setting this option is not supported!", "", "Logged into \"https://api.ocp-d.cpst-lab.ibm.com:6443\" as \"kube:admin\" using the token provided.", "", "You have access to 84 projects, the list has been suppressed. You can list all projects with 'oc projects'", "", "Using project \"default\"." ] }
TASK [Storage Readiness] *** [WARNING]: Collection kubernetes.core does not support Ansible version 2.10.17
TASK [storage-readiness : Create namespace storage-tests if not present] ***
. . .
(.venv310) alberto@thinkpad $ python -V Python 3.10.9