Hi Viktor,
meanwhile I upgraded our Uyuni server (2020.11 -> 2021.06) and now salt 3002.2 works on all our SLES15-SP2 clients.
Actually I had to repeat the patch because the first attempt to patch via Uyuni failed and the log of the respective salt-minion showed the following entries:
2021-07-23 13:24:44,487 [salt.loaded.int.module.cmdmod:836 ][ERROR ][18655] Command 'systemd-run' failed with return code: 103
2021-07-23 13:24:44,488 [salt.loaded.int.module.cmdmod:838 ][ERROR ][18655] stdout: Loading repository data...
Reading installed packages...
Patch 'SUSE-SLE-Module-Server-Applications-15-SP2-2021-2106-1' is not needed.
Resolving package dependencies...
The following NEW patch is going to be installed:
SUSE-SLE-Module-Basesystem-15-SP2-2021-2106
The following 3 packages are going to be upgraded:
python3-salt salt salt-minion
3 packages to upgrade.
Overall download size: 8.7 MiB. Already cached: 0 B. After the operation, additional 699.1 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package salt-3002.2-37.1.x86_64 (1/3), 175.9 KiB ( 49.9 KiB unpacked)
Retrieving: salt-3002.2-37.1.x86_64.rpm [done]
Retrieving package python3-salt-3002.2-37.1.x86_64 (2/3), 8.4 MiB ( 45.3 MiB unpacked)
Retrieving: python3-salt-3002.2-37.1.x86_64.rpm [.done (1.6 MiB/s)]
Retrieving package salt-minion-3002.2-37.1.x86_64 (3/3), 170.8 KiB ( 41.7 KiB unpacked)
Retrieving: salt-minion-3002.2-37.1.x86_64.rpm [done]
Checking for file conflicts: [......done]
(1/3) Installing: salt-3002.2-37.1.x86_64 [...............done]
(2/3) Installing: python3-salt-3002.2-37.1.x86_64 [...................done]
(3/3) Installing: salt-minion-3002.2-37.1.x86_64 [..........done]
Executing %posttrans script 'python3-salt-3002.2-37.1.x86_64.rpm' [....done]
Warning: One of the installed patches affects the package manager itself. Run this command once more to install any other needed patches.
2021-07-23 13:24:44,488 [salt.loaded.int.module.cmdmod:840 ][ERROR ][18655] stderr: Running scope as unit: run-rb22f00149355472aaa170fd01ea9b47b.scope
2021-07-23 13:24:44,488 [salt.loaded.int.module.cmdmod:842 ][ERROR ][18655] retcode: 103
2021-07-23 13:24:51,647 [salt.state :323 ][ERROR ][18655] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/state.py", line 1999, in call
# duration in milliseconds.microseconds
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 2036, in wrapper
# improperly loaded
File "/usr/lib/python3.6/site-packages/salt/states/pkg.py", line 2368, in patch_installed
targets = _find_advisory_targets(name, advisory_ids, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/states/pkg.py", line 411, in _find_advisory_targets
cur_patches = __salt__["pkg.list_installed_patches"](**kwargs)
File "/usr/lib/python3.6/site-packages/salt/modules/zypperpkg.py", line 2939, in list_installed_patches
return _get_patches(installed_only=True, root=root)
File "/usr/lib/python3.6/site-packages/salt/modules/zypperpkg.py", line 2885, in _get_patches
.nolock.xml.call("se", "-t", "patch")
File "/usr/lib/python3.6/site-packages/salt/modules/zypperpkg.py", line 355, in __call
self.__call_result = __salt__["cmd.run_all"](cmd, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 1269, in __getitem__
File "/usr/lib/python3.6/site-packages/salt/utils/lazy.py", line 111, in __getitem__
KeyError: 'cmd.run_all'
Repeating the job at Uyuni was successful.
Thanks for your efforts!
Regards,
Tobias.
Von: Victor Zhestkov [mailto:Victor.Zhestkov@suse.com]
Gesendet: Montag, 19. Juli 2021 15:44
It's very confusing.
Just tried `salt-call state.apply util.systeminfo` on my testing SLE15SP2 system with salt-minion-3002.2-37.1 and it works fine.
But in your case it seems `salt-call state.apply util.systeminfo` will fail. Please check if it's failing. If so, please collect the output of `salt-call -l trace state.apply util.systeminfo` and send me as a file.
Thanks for advance.
Regards,
Victor