Open heiwu opened 1 month ago
nope, issue still persists with latest uyuni tools version. What shall we do?
result: false
name: pkg_installed
changes: {
}
comment: |
An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/venv-salt-minion/lib64/python3.10/site-packages/salt/state.py", line 2401, in call
ret = self.states[cdata["full"]](
File "/usr/lib/venv-salt-minion/lib64/python3.10/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/venv-salt-minion/lib64/python3.10/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/venv-salt-minion/lib64/python3.10/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/venv-salt-minion/lib64/python3.10/site-packages/salt/loader/lazy.py", line 1282, in wrapper
return f(*args, **kwargs)
File "/usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/pkg.py", line 1703, in installed
result = _find_install_targets(
File "/usr/lib/venv-salt-minion/lib/python3.10/site-packages/salt/states/pkg.py", line 584, in _find_install_targets
desired = _repack_pkgs(pkgs, normalize=normalize)
File "/usr/lib/venv-salt-minion/lib64/python3.10/site-packages/salt/modules/pkg_resource.py", line 38, in _repack_pkgs
raise SaltInvocationError(
salt.exceptions.SaltInvocationError: You are passing a list of packages that contains duplicated packages names: [{'kernel-default-devel.x86_64': '5.14.21-150500.55.68.1'}, {'kernel-devel.noarch': '5.14.21-150500.55.68.1'}, {'kernel-default.x86_64': '5.14.21-150500.55.68.1'}, {'kernel-devel.noarch': '5.14.21-150500.55.68.1'}, {'kernel-devel.noarch': '5.14.21-150500.55.68.1'}, {'kernel-default-devel.x86_64': '5.14.21-150500.55.68.1'}, {'kernel-devel.noarch': '5.14.21-150500.55.68.1'}, {'kernel-default.x86_64': '5.14.21-150500.55.68.1'}]. This cannot be processed. In case you are targeting different versions of the same package, please target them individually
__sls__: packages.pkginstall
__run_num__: 11.0
start_time: '05:36:50.948466'
duration: 4580.686
__id__: pkg_installed
On this system, 3 latest kernel versions are installed:
# zypper search -is kernel-default
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+----------------------+---------+------------------------+--------+----------------------------------------------------------------------
i+ | kernel-default | package | 5.14.21-150500.55.68.1 | x86_64 | sles15sp5-default-prod-SLE-Module-Basesystem15-SP5-Updates for x86_64
i+ | kernel-default | package | 5.14.21-150500.55.65.1 | x86_64 | sles15sp5-default-prod-SLE-Module-Basesystem15-SP5-Updates for x86_64
i+ | kernel-default | package | 5.14.21-150500.55.62.2 | x86_64 | sles15sp5-default-prod-SLE-Module-Basesystem15-SP5-Updates for x86_64
i | kernel-default-devel | package | 5.14.21-150500.55.68.1 | x86_64 | sles15sp5-default-prod-SLE-Module-Basesystem15-SP5-Updates for x86_64
i | kernel-default-devel | package | 5.14.21-150500.55.65.1 | x86_64 | sles15sp5-default-prod-SLE-Module-Basesystem15-SP5-Updates for x86_64
i | kernel-default-devel | package | 5.14.21-150500.55.62.2 | x86_64 | sles15sp5-default-prod-SLE-Module-Basesystem15-SP5-Updates for x86_64
Any Feedback/Help is appreciated! This issue still persists on multiple systems running sles15sp5 and sles4sap15sp3.
Did you upgrade to uyuni version 2024.07 already? We made some changes in this area that should solve the issue
Thanks for the hint! We are using SUSE Manager release 4.3.13 If those changes really could help i hope they make it into SUMA soon :)
This is our Script file:
Head incl. Version:
called using crontab:
34 05 * * 2 /opt/uyuni-tools/group_system_update.py -g 'Autopatch'; /opt/uyuni-tools/group_system_update.py --noreboot -g 'livepatch'
We are getting this error (only when using group_system_update.py.
zypper up
works perfectly fine):Latest version (uyuni-project/contrib/blob/main/uyuni-tools/group_system_update.py) in this repo seems to differ. I'll check and report if issue still exists.