Bug #23040
closedPackage management broken on CentOS 8 - RHEL 8 - missing dependency
Description
After installing rudder-agent on CentOS 8, it was globally working, but soon to notice that every directive making use of built-in techniques related to package management would fail and bail in error, including :
- “Packages” built-in technique
- “Sudoers” built-in technique
Checking rudder agent run it appears to complain about missing python2 :
/var/rudder/cfengine-community/modules/packages/yum: line 10: exec: python2: not found
Then :
info: Error occurred while getting supported API version.
error: Unsupported package module wrapper API version: -1
error: Some error occurred while contacting package module for promise 'sudo'
Installing python2 `yum install python2` solves this.
So either our package misses a dependancy to python2, or we install a cfgengine “yum” module that wants python2 when the others are happy with python3 and this wasn't detected.
Files