Project

General

Profile

Actions

Bug #25156

open

rudder-package fails to parse old plugin version numbers, breaking the upgrade

Added by Sylvain BALLARD 4 months ago. Updated 15 days ago.

Status:
Pending technical review
Priority:
N/A
Category:
Server components
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When upgrading from 8.0 to 8.1 we get the following error:

[root@epcsilrudder01 ~]# dnf update rudder-server
Repository pgdg13 is listed more than once in the configuration
Rudder 8.1                                                                                                                                                                                                                       176 kB/s |  35 kB     00:00
Dependencies resolved.
=================================================================================================================================================================================================================================================================
 Package                                                          Architecture                                          Version                                                                  Repository                                                 Size
=================================================================================================================================================================================================================================================================
Upgrading:
 rudder-agent                                                     x86_64                                                1398866025:8.1.5-1.EL.8                                                  Rudder_8.1                                                5.2 M
 rudder-api-client                                                x86_64                                                8.1.5-1.EL.8                                                             Rudder_8.1                                                 15 k
 rudder-relay                                                     x86_64                                                8.1.5-1.EL.8                                                             Rudder_8.1                                                6.3 M
 rudder-server                                                    x86_64                                                8.1.5-1.EL.8                                                             Rudder_8.1                                                198 M

Transaction Summary
=================================================================================================================================================================================================================================================================
Upgrade  4 Packages

Total download size: 209 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): rudder-api-client-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                 179 kB/s |  15 kB     00:00
(2/4): rudder-agent-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                       21 MB/s | 5.2 MB     00:00
(3/4): rudder-relay-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                       19 MB/s | 6.3 MB     00:00
(4/4): rudder-server-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                      54 MB/s | 198 MB     00:03
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                             56 MB/s | 209 MB     00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       1/1
  Preparing        :                                                                                                                                                                                                                                         1/1
  Running scriptlet: rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/1
  Running scriptlet: rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Upgrading        : rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Running scriptlet: rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Upgrading        : rudder-relay-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                        2/8
  Running scriptlet: rudder-relay-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                        2/8
  Upgrading        : rudder-api-client-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                   3/8
  Running scriptlet: rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       4/8
ERROR Unparsable Rudder version '6.0' at line 1 column 595
error: %prein(rudder-server-0:8.1.5-1.EL.8.x86_64) scriptlet failed, exit status 1

Error in PREIN scriptlet in rpm package rudder-server
  Running scriptlet: rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       5/8
error: rudder-server-0:8.1.5-1.EL.8.x86_64: install failed
error: rudder-server-0:8.0.10-1.EL.8.x86_64: erase skipped

  Cleanup          : rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       5/8
  Running scriptlet: rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       5/8
  Running scriptlet: rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            6/8
  Cleanup          : rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            6/8
  Running scriptlet: rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            6/8
  Cleanup          : rudder-api-client-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                  7/8
  Running scriptlet: rudder-api-client-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                  7/8
  Verifying        : rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Verifying        : rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            2/8
  Verifying        : rudder-api-client-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                   3/8
  Verifying        : rudder-api-client-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                  4/8
  Verifying        : rudder-relay-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                        5/8
  Verifying        : rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       6/8
  Verifying        : rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       7/8
  Verifying        : rudder-server-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                      8/8

Upgraded:
  rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                rudder-api-client-8.1.5-1.EL.8.x86_64                                                rudder-relay-8.1.5-1.EL.8.x86_64
Failed:
  rudder-server-8.0.10-1.EL.8.x86_64                                                                                              rudder-server-8.1.5-1.EL.8.x86_64

Error: Transaction failed
Actions #1

Updated by Alexis Mousset 4 months ago

What does rpm-qa | grep rudder give?

Actions #2

Updated by Sylvain BALLARD 4 months ago

Alexis Mousset wrote in #note-1:

What does rpm-qa | grep rudder give?

I have performed a rollback for now. Before upgrade we have:
[root@epcsilrudder01 ~]# rpm -qa | grep rudder
rudder-agent-8.0.10-1.EL.8.x86_64
rudder-reports-7.3.10-1.EL.8.noarch
rudder-api-client-8.0.10-1.EL.8.x86_64
rudder-relay-8.0.10-1.EL.8.x86_64
rudder-server-8.0.10-1.EL.8.x86_64

Actions #3

Updated by Alexis Mousset 4 months ago

Thanks. And rudder package list?

Actions #4

Updated by Sylvain BALLARD 4 months ago · Edited

Alexis Mousset wrote in #note-3:

Thanks. And rudder package list?

[root@epcsilrudder01 ~]# rudder package list
Verify that /opt/rudder/etc/rudder-pkg/rudder-pkg.conf is correctly configured, run `rudder package update` and retry
could not parse the index file /var/rudder/tmp/plugins/rpkg.index
+-------------------------+---------+----------------+----------+
| Plugin Name             | Version | Latest release | Status   |
+-------------------------+---------+----------------+----------+
| rudder-plugin-reporting | 6.0-1.3 |                | disabled |

It looks to be here. I have removed the unused plugin and upgrade looks better, even if we still have one error:

[root@epcsilrudder01 ~]# dnf update rudder-server
Repository pgdg13 is listed more than once in the configuration
Rudder 8.1                                                                                                                                                                                                                       329 kB/s |  35 kB     00:00
Dependencies resolved.
=================================================================================================================================================================================================================================================================
 Package                                                          Architecture                                          Version                                                                  Repository                                                 Size
=================================================================================================================================================================================================================================================================
Upgrading:
 rudder-agent                                                     x86_64                                                1398866025:8.1.5-1.EL.8                                                  Rudder_8.1                                                5.2 M
 rudder-api-client                                                x86_64                                                8.1.5-1.EL.8                                                             Rudder_8.1                                                 15 k
 rudder-relay                                                     x86_64                                                8.1.5-1.EL.8                                                             Rudder_8.1                                                6.3 M
 rudder-server                                                    x86_64                                                8.1.5-1.EL.8                                                             Rudder_8.1                                                198 M

Transaction Summary
=================================================================================================================================================================================================================================================================
Upgrade  4 Packages

Total download size: 209 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): rudder-api-client-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                 235 kB/s |  15 kB     00:00
(2/4): rudder-agent-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                       21 MB/s | 5.2 MB     00:00
(3/4): rudder-relay-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                       17 MB/s | 6.3 MB     00:00
(4/4): rudder-server-8.1.5-1.EL.8.x86_64.rpm                                                                                                                                                                                      51 MB/s | 198 MB     00:03
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                             53 MB/s | 209 MB     00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       1/1
  Preparing        :                                                                                                                                                                                                                                         1/1
  Running scriptlet: rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/1
  Running scriptlet: rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Upgrading        : rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Running scriptlet: rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Upgrading        : rudder-relay-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                        2/8
  Running scriptlet: rudder-relay-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                        2/8
  Upgrading        : rudder-api-client-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                   3/8
  Running scriptlet: rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       4/8
 INFO Plugins statuses saved in /tmp/rudder-plugins-upgrade
 INFO Plugins status successfully saved

  Upgrading        : rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       4/8
warning: /opt/rudder/etc/rudder-web.properties created as /opt/rudder/etc/rudder-web.properties.rpmnew

  Running scriptlet: rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       4/8
Already on 'master'
 INFO Plugins status successfully restored
 INFO Plugins successfully disabled
ERROR Parsing index from repository

Caused by:
    EOF while parsing a value at line 1 column 0

  Running scriptlet: rudder-server-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                      5/8
  Cleanup          : rudder-server-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                      5/8
  Running scriptlet: rudder-server-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                      5/8
  Running scriptlet: rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       6/8
  Cleanup          : rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       6/8
  Running scriptlet: rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       6/8
  Running scriptlet: rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            7/8
  Cleanup          : rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            7/8
  Running scriptlet: rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            7/8
  Cleanup          : rudder-api-client-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                  8/8
  Running scriptlet: rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       8/8
  Running scriptlet: rudder-api-client-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                  8/8
  Verifying        : rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                                                                                                                                                                                             1/8
  Verifying        : rudder-agent-1398866025:8.0.10-1.EL.8.x86_64                                                                                                                                                                                            2/8
  Verifying        : rudder-api-client-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                   3/8
  Verifying        : rudder-api-client-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                  4/8
  Verifying        : rudder-relay-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                        5/8
  Verifying        : rudder-relay-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                       6/8
  Verifying        : rudder-server-8.1.5-1.EL.8.x86_64                                                                                                                                                                                                       7/8
  Verifying        : rudder-server-8.0.10-1.EL.8.x86_64                                                                                                                                                                                                      8/8

Upgraded:
  rudder-agent-1398866025:8.1.5-1.EL.8.x86_64                           rudder-api-client-8.1.5-1.EL.8.x86_64                           rudder-relay-8.1.5-1.EL.8.x86_64                           rudder-server-8.1.5-1.EL.8.x86_64

Complete!

Status looks fine after the upgrade.

Thanks for you quick support.
Sylvain

Actions #5

Updated by Alexis Mousset 4 months ago

  • Subject changed from mise a jour vers version 8.1 to rudder-package fails to parse old plugin version numbers, breaking the upgrade

This error may happen if you used to have access to private plugins (free trial maybe).

It should be harmless.

Actions #6

Updated by Alexis Mousset 4 months ago

  • Description updated (diff)
Actions #7

Updated by Alexis Mousset 4 months ago

  • Description updated (diff)
Actions #8

Updated by Alexis Mousset 4 months ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #9

Updated by Alexis Mousset 4 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder/pull/5773
Actions #10

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 8.1.6 to 8.1.7
Actions #11

Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 8.1.7 to 8.1.8
Actions #12

Updated by Vincent MEMBRÉ 15 days ago

  • Target version changed from 8.1.8 to 8.1.9
Actions

Also available in: Atom PDF