Chapter 3. Upgrading Red Hat Satellite
Upgrading Satellite includes upgrading your Satellite Server, synchronizing the required repositories, and upgrading Capsule Servers.
3.1. Upgrading your Satellite Server Copy linkLink copied to clipboard!
Upgrading a connected Satellite Server includes backing up the server, updating the system and Satellite configuration, and performing the upgrade.
Note that the satellite-installer is executed during an upgrade or update. Any files managed by satellite-installer are overwritten. Check if you have any manual changes that would be overwritten by satellite-installer. You can use the --noop option with the satellite-installer 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.
If you use the Red Hat Lightspeed advisor service in Satellite, the following process upgrades to Red Hat Lightspeed in Satellite. The satellite-maintain tool pulls the container images of Red Hat Lightspeed in Satellite automatically.
Prerequisites
If you made manual edits to your DNS or DHCP configuration in the
/etc/zones.confor/etc/dhcp/dhcpd.conffiles, ensure DNS and DHCP configuration management is disabled:# satellite-installer \ --foreman-proxy-dhcp-managed false \ --foreman-proxy-dns-managed falseThis prevents the upgrade process from overwriting your DNS and DHCP configuration.
If you use Red Hat Lightspeed advisor service in Satellite in your environment, ensure you are logged in to
registry.redhat.ioso that the latest container images can be downloaded:# podman login --authfile /etc/foreman/registry-auth.json registry.redhat.io
Procedure
- Create a backup of your Satellite Server. The backup can be a virtual machine (VM) snapshot or a regular full backup. For more information, see Backing up Satellite Server and Capsule Server in Administering Red Hat Satellite.
Ensure that the Satellite Maintenance repository is enabled:
# subscription-manager repos --enable \ satellite-maintenance-6.18-for-rhel-9-x86_64-rpmsUpgrade the satellite-maintain utility to its latest version:
# satellite-maintain self-upgradeDetermine whether your system is ready for Satellite upgrade:
# satellite-maintain upgrade checkReview the results and address any highlighted error conditions before performing the upgrade.
NoteThe
satellite-maintain upgrade checkmight prompt you for the Hammer admin user credentials. These changes are applied to the/etc/foreman-maintain/foreman-maintain-hammer.ymlfile.Run the Satellite Server upgrade command. Because of the lengthy upgrade time, consider using a utility such as
tmux. For more information, see Section 2.3, “Following the progress of the upgrade”.# satellite-maintain upgrade runIf the
satellite-maintaincommand told you to reboot, then reboot the system:# rebootPerform the following post-upgrade tasks to ensure your environment is adjusted to any changes applied during the upgrade.
Verify whether the default templates changed during the upgrade. Update any custom templates that you created by cloning a default template to reflect these changes.
NoteUse custom provisioning snippets to execute custom code before or after the provisioning process instead of cloning default templates. You can avoid recreating cloned templates if you use custom provisioning snippets. For more information about configuring custom provisioning snippets, see Running custom code during host provisioning by using Satellite web UI in Provisioning hosts.
If your Satellite shows any discovered hosts, reboot them:
- In the Satellite web UI, navigate to Hosts > Discovered hosts.
- Select Any Organization to display all discovered hosts.
- Reboot all discovered hosts.
3.2. Synchronizing the new repositories Copy linkLink copied to clipboard!
You must enable and synchronize the new 6.18 repositories before you can upgrade Capsule Servers and Satellite clients.
Procedure
- In the Satellite web UI, navigate to Content > Red Hat Repositories.
Enable the following repositories:
Repositories required to upgrade Capsule Servers:
- Red Hat Satellite Capsule 6.18 (for RHEL 9 x86_64) (RPMs)
- Red Hat Satellite Maintenance 6.18 (for RHEL 9 x86_64) (RPMs)
- Red Hat Enterprise Linux 9 (for x86_64 – BaseOS) (RPMs)
- Red Hat Enterprise Linux 9 (for x86_64 – AppStream) (RPMs)
Repositories required to upgrade Satellite clients:
- Red Hat Satellite Client 6 for each Red Hat Enterprise Linux version your clients are using
- In the Satellite web UI, navigate to Content > Sync Status.
Synchronize the following repositories:
- All repositories for version 6.18
- Red Hat Satellite Client 6 repositories for each Red Hat Enterprise Linux version your clients are using
Troubleshooting
Refresh the Red Hat subscription manifest to resolve issues with synchronizing repositories. In the Satellite web UI, navigate to Content > Subscriptions > Manage Manifest > Refresh.
WarningDo not delete the manifest from the Customer Portal or in the Satellite web UI. Deleting your manifest removes all the entitlements of your hosts.
Additional resources
3.3. Upgrading Capsule Servers Copy linkLink copied to clipboard!
After upgrading your Satellite Server and synchronizing the required repositories, you can upgrade your Capsule Servers.
You can use the Capsule Upgrade Playbook job template to upgrade Capsule Servers remotely. For more information about running remote jobs based on templates, see Configuring and setting up remote jobs in Managing hosts.
Prerequisites
- The base system of the Capsule is registered to the newly upgraded Satellite Server.
- Ensure that you synchronize the required repositories on Satellite Server. For more information, see Section 3.2, “Synchronizing the new repositories”.
- If the Capsule Server is registered to a content view, add the Capsule 6.18 repositories to the content view. Publish and promote a new version of the content view. For more information, see Managing content views and content view environments in Managing content.
Procedure
- Create a backup of your Capsule Server. The backup can be a virtual machine (VM) snapshot or a regular full backup. For more information, see Backing up Satellite Server and Capsule Server in Administering Red Hat Satellite.
Ensure that the Satellite Maintenance repository is enabled:
# subscription-manager repos \ --enable satellite-maintenance-6.18-for-rhel-9-x86_64-rpmsUpgrade the
satellite-maintainutility on the Capsule Server to its latest version:# satellite-maintain self-upgradeDetermine whether Capsule Server is ready for the upgrade:
# satellite-maintain upgrade checkReview the results and address any highlighted error conditions before performing the upgrade.
Run the Satellite upgrade command. Because of the lengthy upgrade time, consider using a utility such as
tmux. For more information, see Section 2.3, “Following the progress of the upgrade”.# satellite-maintain upgrade runIf the
satellite-maintaincommand told you to reboot, then reboot the system:# reboot
3.4. Upgrading the external database operating system Copy linkLink copied to clipboard!
If your Satellite uses an external database, you can upgrade the database from RHEL 8 to RHEL 9. You can upgrade the operating system while upgrading Satellite from 6.17 to 6.18.
Prerequisites
- A host running Red Hat Enterprise Linux 9 for PostgreSQL server. For more information, see Preparing Satellite for using external databases.
Procedure
- Create a backup of your existing external database.
- Restore the backup on the new Red Hat Enterprise Linux 9 server.
Verify that Satellite can reach the new database:
# PGPASSWORD='My_Foreman_Database_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping"If your Satellite Server can reach the new database server by using the old name, you do not need to make any further changes. Otherwise, reconfigure Satellite to use the new name:
# satellite-installer \ --foreman-db-host newpostgres.example.com \ --katello-candlepin-db-host newpostgres.example.com \ --foreman-proxy-content-pulpcore-postgresql-host newpostgres.example.com
3.5. Refreshing clients of Red Hat Lightspeed in Satellite Copy linkLink copied to clipboard!
If you use Red Hat Lightspeed in Satellite, you must refresh Red Hat Lightspeed in Satellite registration of your hosts to keep using services of Red Hat Lightspeed in Satellite after upgrading Satellite Server.
Prerequisites
- You have root access on your hosts.
Procedure
On your hosts, refresh
insights-clientregistration:# insights-client --register --forceYou can use remote execution to run this command on your hosts.