Proxy - Upgrade Procedure
Before you perform any proxy update, schedule a maintenance window. The clients registered to Uyuni through the proxy will not be able to connect to Uyuni while the update is in progress. For more information about maintenance windows, see Maintenance Window.
Preparation
As a preparation step, add the openSUSE Leap {opensuse-version} channels to the server.
-
At the command prompt on the Uyuni Server, as root, use the
spacewalk-common-channels
command to add the appropriate channels:spacewalk-common-channels opensuse_leap15_2 \ opensuse_leap15_2-non-oss \ opensuse_leap15_2-non-oss-updates \ opensuse_leap15_2-updates \ opensuse_leap15_2-uyuni-client \ uyuni-proxy-stable-leap-152
-
Fully synchronize all channels with
spacewalk-repo-sync
. In case of already defined repository URLs, continue with Uyuni 2020.07: Troubleshooting with Duplicated Repository URLs.
Uyuni 2020.07: Troubleshooting with Duplicated Repository URLs
If you want to add two or more repositories with the same URL (client tools for openSUSE Leap 15.0, 15.1, and 15.2) in Uyuni 2020.07 with spacewalk-common-channels
, you will see an error such as:
ERROR: opensuse_leap15_2-uyuni-client-x86_64: redstone.xmlrpc.XmlRpcFault: There's already a defined repository with given url, please reuse it
Work around with assigning the 15.1 repository to the 15.2 channel:
-
In the Uyuni Server Web UI, navigate to
and click theUyuni Client Tools for openSUSE Leap 15.2 (x86_64)
channel name. -
In the upper right corner, click Manage Channel.
-
Click the
Repositories
tab, and selectExternal - Uyuni Client Tools for openSUSE Leap 15.1 (x86_64)
-
Click Update Repositories.
-
Navigate to
subtab, and click Sync Now. -
Do the same with
Uyuni Proxy Stable for openSUSE Leap 15.2 (x86_64)
andExternal - Uyuni Proxy Stable for openSUSE Leap 15.1 (x86_64)
.
If you unfold the openSUSE Leap 15.2 (x86_64)
, you will see all child channels propulated with packages.
Upgrade the Proxy
To upgrade a proxy you first stop the proxy service, then you replace the software repositories and update the software, and finally you restart the proxy service.
-
In the Uyuni Server Web UI, navigate to proxy system’s details page, click the
Reactivation
subtab. -
Click Generate New Key to generate a reactivation key.
-
On the Uyuni Proxy, stop the proxy service:
spacewalk-proxy stop
-
In the Uyuni Server Web UI, navigate to
and click the name of the proxy. -
Click
, and as the base channel select the openSUSE Leap {opensuse-version} channel that is listed in theCustoms Channels
list. -
In the
Child Channels
pane, select the {opensuse-version} child channels. -
Click Next, and
Confirm Software Channel Change
with Confirm. -
Click
, and select all the packages to be updated on the proxy, and then apply the selection. -
Re-register with the reactivation key using the
rhnreg_ks
command-line utility. The system will be re-registered with the same id, history, and groups. -
On the Uyuni Proxy, start the proxy service:
spacewalk-proxy start
If you need to update many proxies, you can create an action chain of this command sequence on the Uyuni Server. You can use the action chain to perform updates on multiple proxies at the same time.