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 administration:maintenance-windows.adoc.
Preparation
As a preparation step, add the openSUSE Leap 15.2 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 Troubleshooting Duplicate Repository URLs.
Troubleshooting Duplicate Repository URLs
If you add two or more repositories with the same URL (client tools for openSUSE Leap 15.0, 15.1, and 15.2) in Uyuni with spacewalk-common-channels
, an error like this is shown:
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.
-
Navigate to 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)
.
Expand the openSUSE Leap 15.2 (x86_64)
channel to see the child channels populated 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 15.2 channel that is listed in theCustoms Channels
list. -
In the
Child Channels
pane, select the 15.2 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 is 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.