Proxy - Major Version Upgrade (X Upgrade)
Uyuni Proxy can be upgraded from one major version to the next. The upgrade process is automated, but you will need to do some preparation steps before you can upgrade.
You will need to complete the Uyuni Server migration before you start.
The system must be running Uyuni Proxy 3.2 with all the latest updates applied. Before you start, ensure that the system is up to date and all updates have been installed successfully.
Prepare to Migrate
Before you can update your proxy, you will need an autoinstallation distribution, and an autoinstallation profile. The distribution must be based on SUSE Linux Enterprise 15 SP2, because Uyuni 4.1 is part of the SUSE Linux Enterprise 15 SP2 product family.
-
On the Uyuni Server, create a local directory for the SLE 15 SP2 installation media:
mkdir -p /srv/images/sle15sp2
-
Download an ISO image with the installation sources, and mount the ISO image on your server:
mount -o loop DVD1.iso /mnt/
-
Copy everything from the mounted ISO to your local file system:
cp -r /mnt/* /srv/images/sle15sp2
-
When the copy is complete, unmount the ISO image:
umount /mnt
|
This image is the unified installer and can be used for multiple autoinstallation distributions. |
-
In the Uyuni Web UI, navigate to and click Create Distribution.
-
In the
Create Autoinstallable Distributionsection, use these parameters:-
In the
Distribution Labelsection, type a unique name for the distribution. Use only letters, numbers, hyphens, periods, and underscores, and ensure the name is longer than four characters. For example,proxy_41-x86_64. -
In the
Tree Pathfield, type an absolute path to the installation source. For example,/srv/images/sle15sp2. -
In the
Base Channelfield, selectSLE-Product-SUSE-Manager-Proxy-4.1-Pool for x86_64. -
In the
Installer Generationfield, selectSUSE Linux Enterprise 15. -
In the
Kernel Optionsfield, type any options to be passed to the kernel when booting for the installation. Theinstall=parameter and theself_update=0 pt.options=self_updateparameter are added by default. -
In the
Post Kernel Optionssection, type any options to be passed to the kernel when booting the installed system for the first time.
-
-
Click Create Autoinstallable Distribution to save.
When you have created an autoinstallable distribution, you can edit it by navigating to and selecting the distribution you want to edit.
Create an Autoinstallation Profile
Autoinstallation profiles contain all the installation and configuration data needed to install a system. They can also contain scripts to be executed after the installation is complete. For example scripts that you can use as a starting point, see https://github.com/SUSE/manager-build-profiles/tree/master/AutoYaST. For valid AutoYaST upgrade settings, see https://doc.opensuse.org/projects/autoyast/#CreateProfile-upgrade.
-
In the Uyuni Web UI, navigate to and upload your autoinstallation profile script. For example scripts that you can use as a starting point, see https://github.com/SUSE/manager-build-profiles/tree/master/AutoYaST.
-
In the
Kernel Optionsfield, typeautoupgrade=1. Optionally, you can also include theY2DEBUG=1option. The debug setting is not required but can help with investigating any future problems you might encounter. -
Paste the autoinstallation profile or use the file upload field.
-
Click Create to save.
-
When the uploaded profile requires variables to be set, navigate to , select the profile to edit, and navigate to the
Variablestab. Specify the required variables, using this format:<key>=<value>
|
For proxies that were registered using Salt, use the |
Migration
Before you begin, check that all the channels referenced in the autoinstallation profile are available and fully synchronized.
-
On the Uyuni Server Web UI, navigate to , select the proxy, navigate to the
Provisioningtab, and select the autoinstallation profile you uploaded. -
Click Schedule Autoinstallation and Finish. The system will download the required files, change the bootloader entries, reboot, and start the upgrade.
Clean Up
When the Uyuni Proxy has finished upgrading, it shows the originally assigned channels. Cleaning up after the migration ensures the correct channels are shown.
|
If the server reports that there are updates available for the proxy, do not apply them before completing the cleanup. |
-
On the Uyuni Server Web UI, navigate to the
System List, select the proxy, and navigate to the subtab. -
Clear the old channels.
-
In the
Base Channelfield, selectSLE-Product-SUSE-Manager-Proxy-4.1-Pool for x86_64. -
In the
Child Channelsfield, select all the recommended channels.