Project

General

Profile

Actions

Bug #17659

closed

An error in during upgrade to 6.1 breaks rudder upgrade and everything

Added by François ARMAND almost 4 years ago. Updated almost 4 years ago.

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

Description

I tried to upgrade rudder 6.0.7 to 6.1.0 in centos 8.

During install, I got an error:

INFO: Removing ncf-api-venv user and group ...userdel: ncf-api-venv mail spool (/var/spool/mail/ncf-api-venv) not found
userdel: /var/lib/ncf-api-venv not owned by ncf-api-venv, not removing

That lead to rudder-upgrade and other things not being done, and broke everything. Upgrade must be more resilient to that.

Full install log for information:

[root@server vagrant]# yum update rudder-server-root
Last metadata expiration check: 0:00:10 ago on Mon 08 Jun 2020 12:06:23 PM UTC.
Dependencies resolved.
====================================================================================================================================================================================
 Package                                    Architecture                  Version                                                            Repository                        Size
====================================================================================================================================================================================
Upgrading:
 rudder-reports                             noarch                        1398866025:6.1.0.rc4.git202006080353-1.EL.8                        Rudder                            15 k
 rudder-server-root                         noarch                        1398866025:6.1.0.rc4.git202006080353-1.EL.8                        Rudder                            10 k
 rudder-agent                               x86_64                        1398866025:6.1.0.rc4.git202006080353-1.EL.8                        Rudder                           4.1 M
 rudder-server-relay                        x86_64                        1398866025:6.1.0.rc4.git202006080353-1.EL.8                        Rudder                           2.4 M
 rudder-webapp                              x86_64                        1398866025:6.1.0.rc4.git202006080353-1.EL.8                        Rudder                           124 M
Installing dependencies:
 jq                                         x86_64                        1.5-12.el8                                                         AppStream                        161 k
 oniguruma                                  x86_64                        6.8.2-1.el8                                                        AppStream                        188 k

Transaction Summary
====================================================================================================================================================================================
Install  2 Packages
Upgrade  5 Packages

Total download size: 131 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): rudder-reports-6.1.0.rc4.git202006080353-1.EL.8.noarch.rpm                                                                                    94 kB/s |  15 kB     00:00
(2/7): rudder-server-root-6.1.0.rc4.git202006080353-1.EL.8.noarch.rpm                                                                               345 kB/s |  10 kB     00:00
(3/7): jq-1.5-12.el8.x86_64.rpm                                                                                                                     829 kB/s | 161 kB     00:00
(4/7): oniguruma-6.8.2-1.el8.x86_64.rpm                                                                                                             724 kB/s | 188 kB     00:00
(5/7): rudder-server-relay-6.1.0.rc4.git202006080353-1.EL.8.x86_64.rpm                                                                              1.6 MB/s | 2.4 MB     00:01
(6/7): rudder-agent-6.1.0.rc4.git202006080353-1.EL.8.x86_64.rpm                                                                                     2.4 MB/s | 4.1 MB     00:01
(7/7): rudder-webapp-6.1.0.rc4.git202006080353-1.EL.8.x86_64.rpm                                                                                    5.5 MB/s | 124 MB     00:22
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                               5.6 MB/s | 131 MB     00:23
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                           1/1
  Running scriptlet: rudder-server-root-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                      1/1
  Preparing        :                                                                                                                                                            1/1
  Running scriptlet: rudder-reports-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                          1/1
  Upgrading        : rudder-reports-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                         1/12
  Running scriptlet: rudder-reports-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                         1/12
INFO: Setting PostgreSQL as a boot service... Done
INFO: Waiting for PostgreSQL to be up... Done

  Installing       : oniguruma-6.8.2-1.el8.x86_64                                                                                                                              2/12
  Running scriptlet: oniguruma-6.8.2-1.el8.x86_64                                                                                                                              2/12
  Installing       : jq-1.5-12.el8.x86_64                                                                                                                                      3/12
  Running scriptlet: rudder-agent-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                           4/12
  Upgrading        : rudder-agent-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                           4/12
  Running scriptlet: rudder-agent-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                           4/12
INFO: Scheduling an inventory during next run...
INFO: No disable file detected and no agent executor process either. Restarting agent service... Done
FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error.

  Upgrading        : rudder-server-relay-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                    5/12
  Running scriptlet: rudder-server-relay-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                    5/12
INFO: Setting Apache httpd as a boot service... Done
INFO: Creating users ... Done
INFO: Configuring systemd services... Done
INFO: Starting services... Done
INFO: rudder-server-relay setup complete.

  Running scriptlet: rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                          6/12
Redirecting to /bin/systemctl stop rudder-jetty.service

  Upgrading        : rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                          6/12
warning: /opt/rudder/etc/openldap/slapd.conf created as /opt/rudder/etc/openldap/slapd.conf.rpmnew
warning: /opt/rudder/etc/rudder-web.properties created as /opt/rudder/etc/rudder-web.properties.rpmnew

  Running scriptlet: rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                          6/12
INFO: Creating groups ... Done
INFO: Creating users ... Done
INFO: Removing ncf-api-venv user and group ...userdel: ncf-api-venv mail spool (/var/spool/mail/ncf-api-venv) not found
userdel: /var/lib/ncf-api-venv not owned by ncf-api-venv, not removing
INFO: Applying selinux policy... Done

  Running scriptlet: rudder-server-root-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                     7/12
  Upgrading        : rudder-server-root-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                     7/12
  Running scriptlet: rudder-server-root-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                     7/12
  Cleanup          : rudder-server-root-1398866025:6.0.7.rc1.git202006050245-1.EL.8.noarch                                                                                     8/12
  Running scriptlet: rudder-server-root-1398866025:6.0.7.rc1.git202006050245-1.EL.8.noarch                                                                                     8/12
  Running scriptlet: rudder-webapp-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                          9/12
  Cleanup          : rudder-webapp-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                          9/12
  Running scriptlet: rudder-webapp-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                          9/12
  Running scriptlet: rudder-server-relay-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                   10/12
  Cleanup          : rudder-server-relay-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                   10/12
  Running scriptlet: rudder-server-relay-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                   10/12
  Running scriptlet: rudder-agent-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                          11/12
INFO: A back up copy of the /opt/rudder/etc/uuid.hive has been created in /var/backups/rudder
INFO: A back up copy of the /var/rudder/cfengine-community/policy_server.dat has been created in /var/backups/rudder
INFO: A back up copy of the /var/rudder/cfengine-community/ppkeys has been created in /var/backups/rudder
INFO: A back up copy of the /opt/rudder/etc/ssl/agent.cert has been created in /var/backups/rudder

  Cleanup          : rudder-agent-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                          11/12
  Running scriptlet: rudder-agent-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                          11/12
  Cleanup          : rudder-reports-1398866025:6.0.7.rc1.git202006050245-1.EL.8.noarch                                                                                        12/12
  Running scriptlet: rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                         12/12
  Running scriptlet: rudder-reports-1398866025:6.0.7.rc1.git202006050245-1.EL.8.noarch                                                                                        12/12
  Verifying        : jq-1.5-12.el8.x86_64                                                                                                                                      1/12
  Verifying        : oniguruma-6.8.2-1.el8.x86_64                                                                                                                              2/12
  Verifying        : rudder-reports-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                         3/12
  Verifying        : rudder-reports-1398866025:6.0.7.rc1.git202006050245-1.EL.8.noarch                                                                                         4/12
  Verifying        : rudder-server-root-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                                                                                     5/12
  Verifying        : rudder-server-root-1398866025:6.0.7.rc1.git202006050245-1.EL.8.noarch                                                                                     6/12
  Verifying        : rudder-agent-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                           7/12
  Verifying        : rudder-agent-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                           8/12
  Verifying        : rudder-server-relay-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                    9/12
  Verifying        : rudder-server-relay-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                   10/12
  Verifying        : rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                                                                                         11/12
  Verifying        : rudder-webapp-1398866025:6.0.7.rc1.git202006050245-1.EL.8.x86_64                                                                                         12/12

Upgraded:
  rudder-reports-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch                      rudder-server-root-1398866025:6.1.0.rc4.git202006080353-1.EL.8.noarch
  rudder-agent-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64                        rudder-server-relay-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64
  rudder-webapp-1398866025:6.1.0.rc4.git202006080353-1.EL.8.x86_64

Installed:
  jq-1.5-12.el8.x86_64                                                                 oniguruma-6.8.2-1.el8.x86_64

Complete!
Actions #1

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from New to Pending technical review
  • Assignee set to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2312
Actions #2

Updated by Anonymous almost 4 years ago

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

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.0~rc4 which was released today.

Actions

Also available in: Atom PDF