-
Notifications
You must be signed in to change notification settings - Fork 7
Python 3.x virtual environment needs system-site-packages -- need to update docs #512
Description
Specify type:
- Bug
Bug severity (if applicable):
- High
Description:
Writing the report file fails when running rho installed in python 3.6.3 virtual environment. Error message claims it is because of missing libselinux python bindings, but libselinux-python3 is installed via dnf.
Bug Report
Version of rho:
[ 1d5dfde] (master)
Expected behaviour:
If I can otherwise run rho in my python 3.6.3 virtual environment, I should be able to write a report for any successful scan.
Actual behaviour:
Rho is able to write the report for some successful scans, but breaks on the report writing for others.
Reports missing dependency on libselinxu-python3, but this is installed.
See tail of scan log, will provide verbose logs on request:
____________________________________________
< TASK [write : write the host vars to JSON] >
--------------------------------------------
\ / \ //\
\ |\___/| / \// \\
/0 0 \__ / // | \ \
/ / \/_/ // | \ \
@_^_@'/ \/_ // | \ \
//_^_/ \/_ // | \ \
( //) | \/// | \ \
( / /) _|_ / ) // | \ _\
( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-.
(( / / )) ,-{ _ `-.|.-~-. .~ `.
(( // / )) '/\ / ~-. _ .-~ .-~^-. \
(( /// )) `. { } / \ \
(( / )) .----~-.\ \-' .~ \ `. \^-.
///.----..> \ _ -~ `. ^-` ^-_
///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
/.-~
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "2e5aee5f1fdc638a62bbe1b4bee3dc40dd8d5582", "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"}
to retry, use: --limit @/home/elijah/sfw/quipu/rho/rho_playbook.retry
Steps to reproduce:
It seems I am able to scan 1 to 3 machines successfully and then it writes the report. It seems the reproducer for me is to scan the 26 test matrix machines from my Fedora 26 workstation, the scan portion of the playbook completes and then it breaks when attempting to write the report..
Environment information:
Provide detailed information on the scanning and target systems (if applicable); see example below.
| Type | Operating System | OS Version | Python Version | Virtualization |
|---|---|---|---|---|
| Scanning System | Fedora | 26 | 3.6.3 | Bare Metal |
| Target System | test matrix (see internal docs) | vCenter |