Project

General

Profile

Actions

Bug #25156

closed

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

Bug #25156: rudder-package fails to parse old plugin version numbers, breaking the upgrade

Added by Sylvain BALLARD over 1 year ago. Updated 11 months ago.

Status:
Released
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:
Checked
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

Updated by Alexis Mousset over 1 year ago Actions #1

What does rpm-qa | grep rudder give?

Updated by Sylvain BALLARD over 1 year ago Actions #2

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

Updated by Alexis Mousset over 1 year ago Actions #3

Thanks. And rudder package list?

Updated by Sylvain BALLARD over 1 year ago · Edited Actions #4

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

Updated by Alexis Mousset over 1 year ago Actions #5

  • 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.

Updated by Alexis Mousset over 1 year ago Actions #6

  • Description updated (diff)

Updated by Alexis Mousset over 1 year ago Actions #7

  • Description updated (diff)

Updated by Alexis Mousset over 1 year ago Actions #8

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

Updated by Alexis Mousset over 1 year ago Actions #9

  • 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

Updated by Vincent MEMBRÉ over 1 year ago Actions #10

  • Target version changed from 8.1.6 to 8.1.7

Updated by Vincent MEMBRÉ about 1 year ago Actions #11

  • Target version changed from 8.1.7 to 8.1.8

Updated by Vincent MEMBRÉ about 1 year ago Actions #12

  • Target version changed from 8.1.8 to 8.1.9

Updated by Vincent MEMBRÉ about 1 year ago Actions #13

  • Target version changed from 8.1.9 to 8.1.10

Updated by Vincent MEMBRÉ about 1 year ago Actions #14

  • Target version changed from 8.1.10 to 8.1.11

Updated by Alexis Mousset 12 months ago Actions #15

  • Status changed from Pending technical review to In progress
  • Assignee changed from Félix DALLIDET to Alexis Mousset

I'm taking over this issue!

Updated by Alexis Mousset 12 months ago Actions #16

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET

Updated by Alexis Mousset 12 months ago Actions #17

  • Status changed from Pending technical review to Pending release

Updated by Vincent MEMBRÉ 11 months ago Actions #20

  • Fix check changed from To do to Checked

Updated by Vincent MEMBRÉ 11 months ago Actions #21

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.1.11 and 8.2.4 which were released today.

Actions

Also available in: PDF Atom