Project

General

Profile

Actions

Bug #23040

closed

Package management broken on CentOS 8 - RHEL 8 - missing dependency

Added by Michel BOUISSOU over 1 year ago. Updated 7 months ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Agent
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

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

CentOS_8_packages_error.png (120 KB) CentOS_8_packages_error.png Package management error on CentOS 8 Michel BOUISSOU, 2023-07-07 14:49
unsupported_package_API_230707c.png (113 KB) unsupported_package_API_230707c.png Unsupported API ? Lookx cfengine yum module wants python 2 ! Michel BOUISSOU, 2023-07-07 14:52
post_python2_install_230707c.png (104 KB) post_python2_install_230707c.png Works OK after python2 install Michel BOUISSOU, 2023-07-07 14:52
Rudder_agent_recommends_230707a.png (46.3 KB) Rudder_agent_recommends_230707a.png Michel BOUISSOU, 2023-07-07 16:50
Actions

Also available in: Atom PDF