|
| 1 | +[[proxy-uyuni-ay]] |
| 2 | += Proxy - Upgrade with AutoYaST |
| 3 | + |
| 4 | + |
| 5 | +{productname} Proxy can be upgraded from one major version to the next. |
| 6 | +The upgrade process is automated, but you will need to do some preparation steps before you can upgrade. |
| 7 | + |
| 8 | +You will need to complete the {productname} Server Upgrade before you start. |
| 9 | + |
| 10 | +The old system must be running {productname} Proxy with all the latest updates applied. |
| 11 | +Before you start, ensure that the system is up to date and all updates have been installed successfully. |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +== Prepare to Upgrade |
| 16 | + |
| 17 | +Before you can update your proxy, you will need an autoinstallation distribution, and an autoinstallation profile. |
| 18 | +The distribution must be based on openSUSE Leap{nbsp}{opensuse-version}. |
| 19 | + |
| 20 | +.Procedure: Preparing Installation Media |
| 21 | +. On the {productname} Server, create a local directory for the openSUSE Leap{nbsp}{opensuse-version} installation media: |
| 22 | ++ |
| 23 | +---- |
| 24 | +mkdir -p /srv/images/opensuse152 |
| 25 | +---- |
| 26 | +. Download an ISO image with the installation sources, and mount the ISO image on your server: |
| 27 | ++ |
| 28 | +---- |
| 29 | +mount -o loop DVD1.iso /mnt/ |
| 30 | +---- |
| 31 | +. Copy everything from the mounted ISO to your local file system: |
| 32 | ++ |
| 33 | +---- |
| 34 | +cp -r /mnt/* /srv/images/opensuse152 |
| 35 | +---- |
| 36 | +. When the copy is complete, unmount the ISO image: |
| 37 | ++ |
| 38 | +---- |
| 39 | +umount /mnt |
| 40 | +---- |
| 41 | + |
| 42 | + |
| 43 | +.Procedure: Adding Software Channels at the Command Prompt |
| 44 | +. At the command prompt on the {productname} Server, as root, use the [command]``spacewalk-common-channels`` command to add the appropriate channels: |
| 45 | ++ |
| 46 | +---- |
| 47 | +spacewalk-common-channels opensuse_leap15_2 \ |
| 48 | +opensuse_leap15_2-non-oss \ |
| 49 | +opensuse_leap15_2-non-oss-updates \ |
| 50 | +opensuse_leap15_2-updates \ |
| 51 | +opensuse_leap15_2-uyuni-client \ |
| 52 | +uyuni-proxy-stable-leap-152 |
| 53 | +---- |
| 54 | +. Fully synchronize all channels with [command]``spacewalk-repo-sync``. |
| 55 | + |
| 56 | +//// |
| 57 | +Add 15.2 channels to the server with spacewalk-common-channels, sync Leap 15.2 channels, change the proxy to use 15.2 channels instead of 15.1 channels, apply the change then update everything" should work |
| 58 | +//// |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +.Procedure: Creating an Autoinstallation Distribution |
| 63 | +. In the {productname} {webui}, navigate to menu:Systems[Autoinstallation > Distributions] and click btn:[Create Distribution]. |
| 64 | +. In the [guimenu]``Create Autoinstallable Distribution`` section, use these parameters: |
| 65 | +* In the [guimenu]``Distribution Label`` section, type a unique name for the distribution. |
| 66 | +Use only letters, numbers, hyphens, periods, and underscores, and ensure the name is longer than four characters. |
| 67 | +For example, ``proxy_152-x86_64``. |
| 68 | +* In the [guimenu]``Tree Path`` field, type an absolute path to the installation source. |
| 69 | +For example, [path]``/srv/images/opensuse152``. |
| 70 | +* In the [guimenu]``Base Channel`` field, select [systemitem]``openSUSE Leap 15.2 (x86_64)``. |
| 71 | +* In the [guimenu]``Installer Generation`` field, select [systemitem]``SUSE Linux``. |
| 72 | +* In the [guimenu]``Kernel Options`` field, type any options to be passed to the kernel when booting for the installation. |
| 73 | +The [option]``install=`` parameter and the [option]``self_update=0 pt.options=self_update`` parameter are added by default. |
| 74 | +* In the [guimenu]``Post Kernel Options`` section, type any options to be passed to the kernel when booting the installed system for the first time. |
| 75 | +. Click btn:[Create Autoinstallable Distribution] to save. |
| 76 | + |
| 77 | + |
| 78 | +When you have created an autoinstallable distribution, you can edit it by navigating to menu:Systems[Autoinstallation > Distributions] and selecting the distribution you want to edit. |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +== Create an Autoinstallation Profile |
| 83 | + |
| 84 | +Autoinstallation profiles contain all the installation and configuration data needed to install a system. |
| 85 | +They can also contain scripts to be executed after the installation is complete. |
| 86 | +For example scripts that you can use as a starting point, see https://github.com/SUSE/manager-build-profiles/tree/master/AutoYaST. |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +.Procedure: Creating an Autoinstallation Profile |
| 91 | +. In the {productname} {webui}, navigate to menu:Systems[Autoinstallation > Profiles] and upload your autoinstallation profile script. |
| 92 | +For example scripts that you can use as a starting point, see https://github.com/SUSE/manager-build-profiles/tree/master/AutoYaST. |
| 93 | +. In the ``Kernel Options`` field, type ``autoupgrade=1``. |
| 94 | +Optionally, you can also include the ``Y2DEBUG=1`` option. |
| 95 | +The debug setting is not required but can help with investigating any future problems you might encounter. |
| 96 | +. Paste the autoinstallation profile or use the file upload field. |
| 97 | +. Click btn:[Create] to save. |
| 98 | +. When the uploaded profile requires variables to be set, navigate to menu:Systems[Autoinstallation > Profiles], select the profile to edit, and navigate to the [guimenu]``Variables`` tab. |
| 99 | +Specify the required variables, using this format: |
| 100 | ++ |
| 101 | +---- |
| 102 | +<key>=<value> |
| 103 | +---- |
| 104 | + |
| 105 | +[NOTE] |
| 106 | +==== |
| 107 | +For proxies that were registered using Salt, use the ``spacewalk/minion_script`` snippet to register the proxy again after upgrade has completed. |
| 108 | +==== |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | +== Upgrade |
| 113 | + |
| 114 | +Before you begin, check that all the channels referenced in the autoinstallation profile are available and fully synchronized. |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | +.Procedure: Upgrading |
| 119 | +. On the {productname} Server {webui}, navigate to menu:Systems[System List], select the proxy, navigate to the [guimenu]``Provisioning`` tab, and select the autoinstallation profile you uploaded. |
| 120 | +. Click btn:[Schedule Autoinstallation and Finish]. |
| 121 | +The system will download the required files, change the bootloader entries, reboot, and start the upgrade. |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | +== Clean Up |
| 126 | + |
| 127 | +When the {productname} Proxy has finished upgrading, it shows the originally assigned channels. |
| 128 | +Cleaning up after the migration ensures the correct channels are shown. |
| 129 | + |
| 130 | + |
| 131 | +[WARNING] |
| 132 | +==== |
| 133 | +If the server reports that there are updates available for the proxy, do not apply them before completing the cleanup. |
| 134 | +==== |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | +.Procedure: Cleaning Up |
| 139 | +. On the {productname} Server {webui}, navigate to the [guimenu]``System List``, select the proxy, and navigate to the menu:Software[Software Channels] subtab. |
| 140 | +. Clear the old channels. |
| 141 | +. In the [guimenu]``Base Channel`` field, select `openSUSE Leap 15.1 (x86_64)``. |
| 142 | +. In the [guimenu]``Child Channels`` field, select all the recommended channels. |
0 commit comments