Commit 59b7894
CLOS-3960: Fix EnableYumSpacewalkPlugin actor for CL7 -> CL8 upgrade
The FirstBoot-phase actor that re-enables the spacewalk plugin after a CL7 -> CL8 upgrade had several defects that combined to leave the plugin disabled on CL8 and break CLN dynamic channel resolution.
The main one is the hardcoded YUM path /etc/yum/pluginconf.d/spacewalk.conf, which does not exist on the target system.
After the PES replacement yum-rhn-plugin -> dnf-plugin-spacewalk (pes-events id=1586) the CL8 plugin config lives at /etc/dnf/plugins/spacewalk.conf.
Fix: point self.config at the DNF path and split the logic into a pure helper _enable_plugin() in libraries/enableyumspacewalkplugin.py.
Under the no-auth / SWNG transition (CLOS-4056) rhn-client-tools >= 3.0.1 Obsoletes dnf-plugin-spacewalk, so the config file is gone by design on no-auth systems;
emitting a "config not found" report there would just be noise.
Plugin-config presence is the discriminator: we enable it whether it's found.
On a system that transitions to no-auth it won't matter, because the plugin is gone.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent ca123a0 commit 59b7894
3 files changed
Lines changed: 110 additions & 37 deletions
File tree
- repos/system_upgrade/cloudlinux/actors/enableyumspacewalkplugin
- libraries
- tests
Lines changed: 7 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 6 | + | |
16 | 7 | | |
17 | 8 | | |
18 | 9 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 10 | + | |
25 | 11 | | |
26 | 12 | | |
27 | 13 | | |
28 | | - | |
29 | | - | |
| 14 | + | |
30 | 15 | | |
31 | 16 | | |
32 | 17 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
51 | 21 | | |
52 | 22 | | |
53 | 23 | | |
54 | | - | |
| 24 | + | |
55 | 25 | | |
56 | 26 | | |
57 | 27 | | |
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments