Project

General

Profile

Bug #16521

Rudder agent 5.x package not compatible with Centos8

Added by Romain Brucker 5 months ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Effort required:
Priority:
0

Description

Latest Centos8 installed using CentOS-8-x86_64-1905-dvd1.iso.

Ran install script with :

[root@template-packer ~]# curl https://repository.rudder.io/tools/rudder-setup | bash -s setup-agent 5.0 myserver.com
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29260  100 29260    0     0   621k      0 --:--:-- --:--:-- --:--:--  621k
Rudder 5.0 Repository                                                                                  18 kB/s |  38 kB     00:02    
Error: 
 Problem: conflicting requests
  - nothing provides /usr/bin/python needed by rudder-agent-1398866025:5.0.15.release-1.EL.8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

[root@template-packer ~]# dnf install python2 python3
Last metadata expiration check: 0:01:29 ago on Fri 10 Jan 2020 03:11:56 PM CET.
Package python2-2.7.15-24.module_el8.0.0+193+7850e68f.x86_64 is already installed.
Package python36-3.6.8-2.module_el8.0.0+33+0a10c0e1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

[root@template-packer ~]# cat /etc/centos-release
CentOS Linux release 8.0.1905 (Core) 

This is due to /usr/bin/python not being installable anymore through dnf (can install either python2 or python3, and create an alternative instead).
Setting up the alternative doesn't help to install rudder-agent.


Subtasks

ncf - Bug #16751: NCF python script should not be forced to python2ReleasedBenoît PECCATTEActions
ncf - Bug #17080: Python 2 vs 3 error on centos8 for package installReleasedFélix DALLIDETActions
ncf - Bug #17149: Syntax error in Python based package modules headerReleasedAlexis MOUSSETActions
#1

Updated by Romain Brucker 5 months ago

  • Description updated (diff)
#2

Updated by Alexis MOUSSET 5 months ago

Thanks for reporting. As a workaround before the fix, you can use the 6.0 package that should work and is compatible with 5.0 servers.

#3

Updated by Alexis MOUSSET 4 months ago

  • Target version changed from 5.0.16 to 5.0.17
#4

Updated by Félix DALLIDET 3 months ago

This is most likely due to the lib auto-detection done by the rpm packaging which triggers on the python files in the agent.
Backporting our support for python3 scripts to 5.0 should fix the issue.

#5

Updated by Félix DALLIDET 3 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
#6

Updated by Félix DALLIDET 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/287
#7

Updated by Félix DALLIDET 3 months ago

  • Status changed from Pending technical review to Pending release
#10

Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.17 and 6.0.5 which were released today.

Also available in: Atom PDF