Project

General

Profile

Actions

Bug #23040

closed

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

Bug #23040: Package management broken on CentOS 8 - RHEL 8 - missing dependency

Added by Michel BOUISSOU over 2 years ago. Updated almost 2 years 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
CentOS_8_packages_error.png
unsupported_package_API_230707c.png
post_python2_install_230707c.png
Rudder_agent_recommends_230707a.png

Updated by Michel BOUISSOU over 2 years ago Actions #1

Rudder_agent_recommends_230707a.png

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 2 years ago Actions #2

  • Target version changed from 7.3.4 to 7.3.5

Updated by Alexis Mousset over 2 years ago Actions #3

  • Target version changed from 7.3.5 to 7.3.6

Updated by Vincent MEMBRÉ over 2 years ago Actions #4

  • Target version changed from 7.3.6 to 7.3.7

Updated by Vincent MEMBRÉ over 2 years ago Actions #5

  • Target version changed from 7.3.7 to 7.3.8

Updated by Benoît PECCATTE over 2 years ago Actions #6

  • 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É over 2 years ago Actions #7

  • Target version changed from 7.3.8 to 7.3.9

Updated by Vincent MEMBRÉ over 2 years ago Actions #8

  • Target version changed from 7.3.9 to 7.3.10

Updated by Vincent MEMBRÉ about 2 years ago Actions #9

  • Target version changed from 7.3.10 to 7.3.11

Updated by Vincent MEMBRÉ about 2 years ago Actions #10

  • Target version changed from 7.3.11 to 7.3.12

Updated by Vincent MEMBRÉ almost 2 years ago Actions #11

  • Target version changed from 7.3.12 to 7.3.13

Updated by Vincent MEMBRÉ almost 2 years ago Actions #12

  • Target version changed from 7.3.13 to 7.3.14

Updated by Vincent MEMBRÉ almost 2 years ago Actions #13

  • Target version changed from 7.3.14 to 7.3.15

Updated by Alexis Mousset almost 2 years ago Actions #14

  • 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: PDF Atom