Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 4. Updating Satellite Server and Capsule Server
Use this chapter to update your existing Satellite Server and Capsule Server to a new patch version, for example, from 6.12.0 to 6.12.1.
Updates patch security vulnerabilities and minor issues discovered after code is released, and are often fast and non-disruptive to your operating environment.
Before updating, back up your Satellite Server and all Capsule Servers. For more information, see Backing Up Satellite Server and Capsule Server in Administering Red Hat Satellite.
4.1. Updating Satellite Server Link kopierenLink in die Zwischenablage kopiert!
Prerequisites
- Ensure that you have synchronized Satellite Server repositories for Satellite, Capsule, and Satellite Client 6.
- Ensure each external Capsule can be updated by promoting the updated repositories to all relevant Content Views.
If you customize configuration files, manually or using a tool such as Hiera, these changes are overwritten when the installation script runs during upgrading or updating. You can use the --noop option with the satellite-installer script to test for changes. For more information, see the Red Hat Knowledgebase solution How to use the noop option to check for changes in Satellite config files during an upgrade.
Updating Satellite Server to the Next Minor Version
To Update Satellite Server:
Ensure the Satellite Maintenance repository is enabled:
subscription-manager repos --enable \ satellite-maintenance-6.12-for-rhel-8-x86_64-rpms
# subscription-manager repos --enable \ satellite-maintenance-6.12-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check the available versions to confirm the next minor version is listed:
satellite-maintain upgrade list-versions
# satellite-maintain upgrade list-versionsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use the health check option to determine if the system is ready for upgrade. On first use of this command,
satellite-maintainprompts you to enter the hammer admin user credentials and saves them in the/etc/foreman-maintain/foreman-maintain-hammer.ymlfile.satellite-maintain upgrade check --target-version 6.12.z
# satellite-maintain upgrade check --target-version 6.12.zCopy to Clipboard Copied! Toggle word wrap Toggle overflow Review the results and address any highlighted error conditions before performing the upgrade.
Because of the lengthy update time, use a utility such as
tmuxto suspend and reattach a communication session. You can then check the upgrade progress without staying connected to the command shell continuously.If you lose connection to the command shell where the upgrade command is running, you can see the logged messages in the
/var/log/foreman-installer/satellite.logfile to check if the process completed successfully.Perform the upgrade:
satellite-maintain upgrade run --target-version 6.12.z
# satellite-maintain upgrade run --target-version 6.12.zCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check when the kernel packages were last updated:
rpm -qa --last | grep kernel
# rpm -qa --last | grep kernelCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: If a kernel update occurred since the last reboot, stop Satellite services and reboot the system:
satellite-maintain service stop reboot
# satellite-maintain service stop # rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Updating Disconnected Satellite Server Link kopierenLink in die Zwischenablage kopiert!
This section describes the steps needed to update in an Air-gapped Disconnected setup where the connected Satellite Server (which synchronizes content from CDN) is air gapped from a disconnected Satellite Server.
Complete the following steps on the connected Satellite Server.
Ensure that you have synchronized the following repositories in your connected Satellite Server.
rhel-8-for-x86_64-baseos-rpms rhel-8-for-x86_64-appstream-rpms satellite-6.12-for-rhel-8-x86_64-rpms satellite-maintenance-6.12-for-rhel-8-x86_64-rpms
rhel-8-for-x86_64-baseos-rpms rhel-8-for-x86_64-appstream-rpms satellite-6.12-for-rhel-8-x86_64-rpms satellite-maintenance-6.12-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Download the debug certificate of the organization and store it locally at, for example,
/etc/pki/katello/certs/org-debug-cert.pemor a location of your choosing. For more information, see Creating an Organization Debug Certificate in Administering Red Hat Satellite. Create a Yum configuration file under
/etc/yum.repos.d, such assatellite-disconnected.repo, with the following contents:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
In the configuration file, replace
/etc/pki/katello/certs/org-debug-cert.peminsslclientcertandsslclientkeywith the location of the downloaded organization debug certificate. -
Update
satellite.example.comwith correct FQDN for your deployment. Replace
My_Organizationwith the correct organization label in thebaseurl. To obtain the organization label, enter the command:hammer organization list
# hammer organization listCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
reposynccommand:Copy to Clipboard Copied! Toggle word wrap Toggle overflow This downloads the contents of the repositories from the connected Satellite Server and stores them in the directory
~/Satellite-repos.-
Verify that the RPMs have been downloaded and the repository data directory is generated in each of the sub-directories of
~/Satellite-repos. Archive the contents of the directory
cd ~ tar czf Satellite-repos.tgz Satellite-repos
# cd ~ # tar czf Satellite-repos.tgz Satellite-reposCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Use the generated
Satellite-repos.tgzfile to upgrade in the disconnected Satellite Server.
Perform the following steps on the disconnected Satellite Server:
-
Copy the generated
Satellite-repos.tgzfile to your disconnected Satellite Server Extract the archive to anywhere accessible by the
rootuser. In the following example/rootis the extraction location.cd /root tar zxf Satellite-repos.tgz
# cd /root # tar zxf Satellite-repos.tgzCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a Yum configuration file under
/etc/yum.repos.d, such assatellite-disconnected.repo, with the following contents:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
In the configuration file, replace the
/root/Satellite-reposwith the extracted location. Check the available versions to confirm the next minor version is listed:
satellite-maintain upgrade list-versions
# satellite-maintain upgrade list-versionsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use the health check option to determine if the system is ready for upgrade. On first use of this command,
satellite-maintainprompts you to enter the hammer admin user credentials and saves them in the/etc/foreman-maintain/foreman-maintain-hammer.ymlfile.satellite-maintain upgrade check --whitelist="check-upstream-repository,repositories-validate" --target-version 6.12.z
# satellite-maintain upgrade check --whitelist="check-upstream-repository,repositories-validate" --target-version 6.12.zCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Review the results and address any highlighted error conditions before performing the upgrade.
Because of the lengthy update time, use a utility such as
tmuxto suspend and reattach a communication session. You can then check the upgrade progress without staying connected to the command shell continuously.If you lose connection to the command shell where the upgrade command is running, you can see the logged messages in the
/var/log/foreman-installer/satellite.logfile to check if the process completed successfully.Perform the upgrade:
satellite-maintain upgrade run --whitelist="check-upstream-repository,repositories-setup,repositories-validate" --target-version 6.12.z
# satellite-maintain upgrade run --whitelist="check-upstream-repository,repositories-setup,repositories-validate" --target-version 6.12.zCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check when the kernel packages were last updated:
rpm -qa --last | grep kernel
# rpm -qa --last | grep kernelCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: If a kernel update occurred since the last reboot, stop Satellite services and reboot the system:
satellite-maintain service stop reboot
# satellite-maintain service stop # rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3. Updating Capsule Server Link kopierenLink in die Zwischenablage kopiert!
Use this procedure to update Capsule Servers to the next minor version.
Procedure
Ensure that the Satellite Maintenance repository is enabled:
subscription-manager repos --enable \ satellite-maintenance-6.12-for-rhel-8-x86_64-rpms
# subscription-manager repos --enable \ satellite-maintenance-6.12-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check the available versions to confirm the next minor version is listed:
satellite-maintain upgrade list-versions
# satellite-maintain upgrade list-versionsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use the health check option to determine if the system is ready for upgrade:
satellite-maintain upgrade check --target-version 6.12.z
# satellite-maintain upgrade check --target-version 6.12.zCopy to Clipboard Copied! Toggle word wrap Toggle overflow Review the results and address any highlighted error conditions before performing the upgrade.
Because of the lengthy update time, use a utility such as
tmuxto suspend and reattach a communication session. You can then check the upgrade progress without staying connected to the command shell continuously.If you lose connection to the command shell where the upgrade command is running, you can see the logged messages in the
/var/log/foreman-installer/capsule.logfile to check if the process completed successfully.Perform the upgrade:
satellite-maintain upgrade run --target-version 6.12.z
# satellite-maintain upgrade run --target-version 6.12.zCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check when the kernel packages were last updated:
rpm -qa --last | grep kernel
# rpm -qa --last | grep kernelCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: If a kernel update occurred since the last reboot, stop Satellite services and reboot the system:
satellite-maintain service stop reboot
# satellite-maintain service stop # rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow