Project

General

Profile

Actions

Bug #18521

closed

Upgrading Rudder 6.2 on centos 7 fails

Added by Nicolas CHARLES about 4 years ago. Updated about 4 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

During upgrade from 6.2 to 6.2

INFO: rudder-server-relay setup complete.
Redirecting to /bin/systemctl stop rudder-jetty.service
error: %pre(rudder-webapp-1398866025:6.2.0.beta2.git202011060227-1.EL.7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package 1398866025:rudder-webapp-6.2.0.beta2.git202011060227-1.EL.7.x86_64

rudder-upgrade fails

[root@server vagrant]# /opt/rudder/bin/rudder-upgrade 
INFO: Checking if rudder-web.properties database access credentials are all right... LDAP OK,  SQL OK
Overriding existing techniques
INFO: Correcting permissions on /var/rudder/configuration-repository... Done
# On branch master
nothing to commit, working directory clean
Techniques have been updated, and update branch set to current state of the Techniques
INFO: Checking PostgreSQL service status... OK
INFO: Checking LDAP service status... OK
Plugins were not updated, because connection test is failing, please upgrade your plugins manually
Could not read the conf file /opt/rudder/etc/rudder-pkg/rudder-pkg.conf
get() got an unexpected keyword argument 'fallback'

INFO: The migration has completed successfully.


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #18487: error when installing rudder 6.2 on centos7RejectedActions
Actions #1

Updated by Nicolas CHARLES about 4 years ago

  • Subject changed from Upgrading Rudder 6.2 on centos fails to Upgrading Rudder 6.2 on centos 7 fails
Actions #2

Updated by Nicolas CHARLES about 4 years ago

preinst does

  if [ -x /opt/rudder/bin/rudder-pkg ]
  then
    /opt/rudder/bin/rudder-pkg plugin save-status > /tmp/rudder-plugins-upgrade
  else
    rudder package plugin save-status > /tmp/rudder-plugins-upgrade
  fi

which fails because

Could not read the conf file /opt/rudder/etc/rudder-pkg/rudder-pkg.conf
get() got an unexpected keyword argument 'fallback'

Actions #3

Updated by Nicolas CHARLES about 4 years ago

because of

lib/rudder-pkg/rudderPkgUtils.py:        PROXY_URL      = config.get(REPO, 'proxy_url', fallback = '')
lib/rudder-pkg/rudderPkgUtils.py:        PROXY_USERNAME = config.get(REPO, 'proxy_username', fallback = '')
lib/rudder-pkg/rudderPkgUtils.py:        PROXY_PASSWORD = config.get(REPO, 'proxy_password', fallback = '')

it fails on python 2.7.5

Actions #4

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #5

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/3355
Actions #6

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by Nicolas CHARLES about 4 years ago

  • Has duplicate Bug #18487: error when installing rudder 6.2 on centos7 added
Actions #8

Updated by Nicolas CHARLES about 4 years ago

  • Fix check changed from To do to Checked
Actions #9

Updated by Vincent MEMBRÉ about 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.2.0~rc1 which was released today.

Actions

Also available in: Atom PDF