Bug #25156
open
rudder-package fails to parse old plugin version numbers, breaking the upgrade
Added by Sylvain BALLARD 5 months ago.
Updated 14 days ago.
Category:
Server components
Severity:
Major - prevents use of part of Rudder | no simple workaround
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
What does rpm-qa | grep rudder
give?
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
Thanks. And rudder package list
?
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
- 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.
- Description updated (diff)
- Description updated (diff)
- Status changed from New to In progress
- Assignee set to Alexis Mousset
- 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
- Target version changed from 8.1.6 to 8.1.7
- Target version changed from 8.1.7 to 8.1.8
- Target version changed from 8.1.8 to 8.1.9
- Target version changed from 8.1.9 to 8.1.10
- Target version changed from 8.1.10 to 8.1.11
- Status changed from Pending technical review to In progress
- Assignee changed from Félix DALLIDET to Alexis Mousset
I'm taking over this issue!
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Félix DALLIDET
- Status changed from Pending technical review to Pending release
Also available in: Atom
PDF