IBM / k8s-storage-perf

This git repo will host the playbooks for collecting performance metrics for a Kubernetes persistent storage for IBM Cloud Paks
Apache License 2.0
9 stars 18 forks source link

During initial perf test, seeing error about "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!" #35

Closed jfengsun closed 4 months ago

jfengsun commented 4 months ago

Client's environment: RHEL 7, python3.6, ansible 2.10.17

During initial perf test after setup, seeing error for multiple volumes: "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!" Tried adding ansible_python_interpreter=/usr/bin/python3.6 into params.yaml but the error still there

jfengsun commented 4 months ago

Installed python3-libselinux on this RHEL7 host and resolved the issue

shankarpentyala07 commented 4 months ago

For future reference, the resolution is: https://stackoverflow.com/questions/63173955/aborting-target-uses-selinux-but-python-bindings-libselinux-python-arent-ins

jfengsun commented 4 months ago

This seems only happens on RHEL7, which by default has libselinux for python2 only

RHEL8 and above won't have the issue