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
Updated by Michel BOUISSOU over 1 year ago
After more research and advice it appears that no ptyhon interpreter was installed at all.
Uninstalling python2 and installing python3 works as well.
I believe a working python interpreter should be a dependancy of rudder-agent.
It doesn't seem to be even in the “recommends” section.
This might be a duplicate of #19904
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.3.4 to 7.3.5
Updated by Alexis Mousset over 1 year ago
- Target version changed from 7.3.5 to 7.3.6
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.6 to 7.3.7
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.7 to 7.3.8
Updated by Benoît PECCATTE about 1 year ago
- Subject changed from Package management broken on CentOS 8 - RHEL 8 - missing dependancy to Package management broken on CentOS 8 - RHEL 8 - missing dependency
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.8 to 7.3.9
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.9 to 7.3.10
Updated by Vincent MEMBRÉ 12 months ago
- Target version changed from 7.3.10 to 7.3.11
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.11 to 7.3.12
Updated by Vincent MEMBRÉ 9 months ago
- Target version changed from 7.3.12 to 7.3.13
Updated by Vincent MEMBRÉ 9 months ago
- Target version changed from 7.3.13 to 7.3.14
Updated by Vincent MEMBRÉ 7 months ago
- Target version changed from 7.3.14 to 7.3.15
Updated by Alexis Mousset 7 months ago
- Status changed from New to Resolved
Dependency added in 8.1, and we won't add it to 7.3, closing.