Project

General

Profile

Actions

Bug #17080

closed

Bug #16521: Rudder agent 5.x package not compatible with Centos8

Bug #16751: NCF python script should not be forced to python2

Python 2 vs 3 error on centos8 for package install

Added by François ARMAND over 4 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
-
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Error - Fixed
Regression:

Description

On rudder 5.0, when using a package present gm, even with parent ticket corrected, I got:

Traceback (most recent call last):
  File "/var/rudder/cfengine-community/modules/packages/yum", line 430, in <module>
    sys.exit(main())
  File "/var/rudder/cfengine-community/modules/packages/yum", line 412, in main
    return list_updates(True)
  File "/var/rudder/cfengine-community/modules/packages/yum", line 139, in list_updates
    line = lastline + line
TypeError: must be str, not bytes
Traceback (most recent call last):
  File "/var/rudder/cfengine-community/modules/packages/yum", line 430, in <module>
    sys.exit(main())
  File "/var/rudder/cfengine-community/modules/packages/yum", line 415, in main
    return list_updates(False)
  File "/var/rudder/cfengine-community/modules/packages/yum", line 139, in list_updates
    line = lastline + line
TypeError: must be str, not bytes
   error: Error installing package 'acpid'
   error: Method 'ncf_package' failed in some repairs
   error: Method 'package_present' failed in some repairs
   error: Method 'test_plop' failed in some repairs
Actions

Also available in: Atom PDF