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 8 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 #1

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

Actions #2

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.3.4 to 7.3.5
Actions #3

Updated by Alexis Mousset over 1 year ago

  • Target version changed from 7.3.5 to 7.3.6
Actions #4

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.6 to 7.3.7
Actions #5

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.7 to 7.3.8
Actions #6

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
Actions #7

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #8

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #9

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #10

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #11

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #12

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #13

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.14 to 7.3.15
Actions #14

Updated by Alexis Mousset 8 months ago

  • Status changed from New to Resolved

Dependency added in 8.1, and we won't add it to 7.3, closing.

Actions

Also available in: Atom PDF