uyuni-project / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
411 stars 171 forks source link

Upgrade Uyuni 2023.04 to 2024.05 #8971

Open cheesetrain opened 5 days ago

cheesetrain commented 5 days ago

Question

What do you want to know about Uyuni? I'm trying to upgrade a 2023.04 Uyuni server. I used to support the servers and kept things updated but I changed jobs within my company last fall and no patches and upgrades have been to the server since. I'm trying to upgrade the server to the latest versions as a favor to my old team as the server is needed for patching. I'm not sure it's even possible to do what I'm trying to do. I was hoping I could upgrade in steps from 2023.04 to 2023.09 -> 2023.10-> etc etc but it doesn't appear that is possible either.

I patched the OS on my current server to the latest level of Leap 15.4. I then upgraded the susemanager package which installed version 5.0 which surprised me. Was expecting 4.4.8. I then ran the server-migrator.sh script but havbe had no luck getting things upgraded. I routinely get these errors: Repository 'Main Repository' is invalid. [repo-oss|http://download.opensuse.org/distribution/leap/15.5/repo/oss] Valid metadata not found at specified URL History:

Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'Main Repository' because of the above error. Retrieving repository 'Update repository with updates from SUSE Linux Enterprise' metadata ............................................................................................................[error] Repository 'Update repository with updates from SUSE Linux Enterprise' is invalid. [repo-sle-update|http://download.opensuse.org/update/leap/15.5/sle] Valid metadata not found at specified URL History:

Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'Update repository with updates from SUSE Linux Enterprise' because of the above error. Retrieving repository 'Main Update Repository' metadata ...............................................................................................................................................[error] Repository 'Main Update Repository' is invalid. [repo-update|http://download.opensuse.org/update/leap/15.5/oss] Valid metadata not found at specified URL History:

I've been working with my firewall team but progress is slow and i'm not even sure thats the issue.

Version of Uyuni Server and Proxy (if used)

zypper info Uyuni-Server-release and zypper info Uyuni-Proxy-release (if used) Information for package Uyuni-Server-release:

Repository : @System Name : Uyuni-Server-release Version : 2023.03-220400.199.1.uyuni2 Arch : x86_64 Vendor : obs://build.opensuse.org/systemsmanagement:Uyuni Installed Size : 1.4 KiB Installed : Yes Status : up-to-date Source package : Uyuni-Server-release-2023.03-220400.199.1.uyuni2.src Summary : Uyuni Server Description : Uyuni lets you efficiently manage physical, virtual, and cloud-based Linux systems. It provides automated and cost-effective configuration and software management, asset management, and system provisioning.

momo1123 commented 3 days ago

I am running into a similar issue, I did find a solution that did work on my dev but I guess I'll find out if it'll work on Prod within a day or two once I deploy it.

spacewalk-service stop

zypper refresh
zypper update

which will update the OS, any new packages that are prompted, I've selected to accept them. Then run the following:

zypper --releasever=15.5 refresh

zypper --releasever=15.5 dup --download-in-heaps

Hopefully this helps

cheesetrain commented 3 days ago

I was able to complete the upgrade to OpenSUSELeap 15.5 and Uyuni 2024.05 late Tuesday evening. What I did was this: 1). Patch the current server to latest levels of 15.4. I just ran zypper patch and applied everything. 2). zypper ref 3). zypper up susemanager <-- this upgraded susemanager to version susemanager-5.0.6-230900.1.1.uyuni3.x86_64 4). spacewalk-service stop 5). I manually added each repo from the server-migrator.sh script. I DID NOT just run the script. 6). Validated that I could connect to each repo using zypper ref <-- two repos I had to have added to my companies proxy. 7). zypper -n dup --allow-vendor-change 8). Once OS upgrade done, ran the /usr/lib/susemanager/bin/pg-migrate-x-to-y.sh to upgrade/migrate postgres db. 9). Reboot server

Things are working good right now. I have another server to upgrade next week but that one is running Uyuni 2023.09 and OpenSUSE Leap 15.5 already so that might go smoother.