Julio, at least with us there is no need to rush. If Jordi wants to take on the matter, of course, but at least I will try the workarounds you suggested and report the result here. Maybe other Uyuni users can also benefit from it and I can finally make a contribution to this great project! Regards Thomas
Am 13.12.2021 um 13:10 schrieb Julio Gonzalez <jgonzalez@suse.com>:
On lunes, 13 de diciembre de 2021 12:44:14 (CET) Thomas Weis wrote:
Julio,
yes, there are channels for CentOS 8 and for Rocky, as well as for the corresponding client tools.
I think I see where the problem, but unless someone tan take care of it before I am back to the office, the proper fix will need to wait (I am adding Jordi on CC in case he can have a look, but no promises)
The problem is: https://github.com/uyuni-project/uyuni/blob/master/schema/spacewalk/upgrade/ susemanager-schema-4.3.3-to-susemanager-schema-4.3.4/001-centos8-eol.sql
If the EL8 client tools are already added, then this fails.
The fix is, however, not easy as it requires some logic so it works for everyone:
1. Check if any repo already uses https://download.opensuse.org/repositories/ systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8/ 2. Otherwise create a repository that uses https://download.opensuse.org/ repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8/ 3. Adjust all channels that use the repository with https:// download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/CentOS8- Uyuni-Client-Tools/CentOS_8/, to use the repository with https:// download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/EL8- Uyuni-Client-Tools/EL_8/ instead.
Basically something similar to https://github.com/uyuni-project/uyuni/blob/ master/schema/spacewalk/upgrade/susemanager-schema-4.3.3-to-susemanager- schema-4.3.4/002-use_almalinux_mirror.sql, but creating the required repository, if it's not there (for example for people managing CentOS8 only, but that never added Rocky or Alma).
For now, the workaround your particular case should be:
1. At your Uyuni Server, via UI, find the repository using the URL https:// download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/EL8- Uyuni-Client-Tools/EL_8/ 2. Then find the repository using the URL https://download.opensuse.org/ repositories/systemsmanagement:/Uyuni:/Stable:/CentOS8-Uyuni-Client-Tools/ CentOS_8/ 3. Find all channels using the repository from step 2, and adjust them to use the repository from step 1. 4. Remove repository from step 2 5. Apply the upgrade.
Thomas
Am 13.12.2021 um 10:22 schrieb Julio Gonzalez <jgonzalez@suse.com>:
What channels do you have? Do you have CentOS8 client tools, and maybe another client tools for any of the clones such as Alma or Rocky?
On viernes, 10 de diciembre de 2021 23:11:39 (CET) Thomas Weis wrote:
this is also the way in which the updates are carried out here. Unfortunately, the update from .09 to .12 did not work this time. The SCHEMA update could not be carried out. At the end of the log /var/log/spacewalk/schema-upgrade/schema-from-20211210-224941-to-susemana ge r-schema-4.3.4.log there are the following entries: ---- UPDATE 0 psql: <stdin>: 7: ERROR: duplicate key value violates unique constraint "rhn_cs_repo_uq" DETAIL: Key (COALESCE (org_id, 0 :: numeric), type_id, source_url, ( CASE
WHEN label :: text ~~ 'manifest _%' :: text THEN 1 ELSE 0
END)) = (1, 500, https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stab le
:/EL8-Uyuni-Client-Tools/EL_8/, 0) already exists. ----
Reverting to the previous snapshot is the only way to start the .09 again.
Is anything known about this?
Regards Thomas
Am 10.12.2021 um 09:18 schrieb Simon Avery <Simon.Avery@atass-
sports.co.uk>:
We are happy to announce the immediate availability of Uyuni 2021.12
Nice!
Some good upgrades in there, it's plain everyone's been busy.
Particularly interested in the salt bundle as explained during community hour, will test that soon. Sounds like a good solution to a difficult problem.
Just upgraded. Went smoothly here, didn't hit the Suse bug mentioned in the release notes.
Thanks to all involved.
S
If useful for others, my upgrade process which has worked well for the past few upgrades is pretty simple. The upgrade notes say to install patches, but that doesn't upgrade Uyuni.
(Snapshot Uyuni's vm) spacewalk-server stop zypper ref zypper up
(Repeat or resolve any issues until zipper happy)
zypper install Uyuni-Server-release
(Otherwise it wouldn't upgrade this meta package)
Reboot Test
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com