target uses selinux but python bindings (libselinux-python) aren't installed!"} #1444
Comments
It's working for me on macOS. If you haven't, could you try |
I'm going to close this issue since the request to try the venv hasn't produced any actionable information. I'd guess this is an issue specific to deploying from Fedora. If someone with a Fedora machine is able to reproduce & produce a PR that will address the SELinux problem I would try to find cycles to review it. Thanks! |
I am still getting this error on rawhide and a fresh checkout of streisand as of today. python2 and python3 libsebindings are installed on the host and i've tried refreshing the venv. Attached log |
I think I have found the root cause. Newer versions of fedora use the package python2-libselinux and the requirements in the selinux.py bindings only check for the old unversioned python-libselinux package:
|
Hrm this needs a 'use system packages' approach I think to solving given that the libselinux bindings are installed variously on different platforms and don't get added to the venv related bug : ansible/ansible#34340 |
Fedora 28 host / digital ocean droplet running
deploy/streisand-new-cloud-server.sh --provider digitalocean --site-config global_vars/noninteractive/digitalocean-site.yml
I have updated my ssh and tokens in digitalocean-site.yml
PLAY [Collect diagnostics in case of error] ***********************************************************************************************************************************************************************************************************************************************************************************
TASK [diagnostics : Determine the git revision of the current Streisand clone] ************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [diagnostics : Determine if there are untracked changes in the Streisand clone] ******************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [diagnostics : Produce the diagnostics markdown file to share if there is an error] **************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "8917d7d8f3fbbc09a01ae814eec3575cd2efa990", "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"}
to retry, use: --limit @/home/dingo/streisand/playbooks/digitalocean.retry
PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************************************************************
188.166.106.18 : ok=6 changed=1 unreachable=0 failed=0
localhost : ok=12 changed=1 unreachable=0 failed=1
The text was updated successfully, but these errors were encountered: