Chapter 7. Updating Satellite Server, Capsule Server, and Content Hosts
Updating Between Minor Versions of Satellite
Updating is the process of migrating Satellite Server, Capsule Server, and Content Hosts to a new minor version. Updates typically patch security vulnerabilities and correct minor issues discovered after code is released. Generally speaking, updates require little time and are non-disruptive to your operating environment. Before updating, check the Red Hat Satellite Release Notes for potential conflicts.
Follow these procedures to update between minor versions, for example, from 6.2.0 to 6.2.1.
7.1. Updating Satellite Server
Prerequisites
- Ensure you have synchronized Satellite Server repositories for Satellite, Capsule, and Satellite Tools.
- Ensure each external Capsule and Content Host can be updated by promoting the updated repositories to all relevant Content Views.
Updating Satellite Server to the Next Minor Version
To Update Satellite Server:
Check that only the correct repositories are enabled:
List the enabled repositories:
# subscription-manager repos --list-enabled
Ensure you only have the following repositories enabled:
rhel-X-server-rpms rhel-X-server-satellite-6.2-rpms rhel-server-rhscl-X-rpms
Where X is the major version of Red Hat Enterprise Linux you are using. If required, see Section 3.1.3, “Configuring Repositories” for more information on disabling and enabling repositories. If you have a self-registered Satellite, the
rhel-X-server-satellite-tools-6.2-rpms
repository, which provides Katello Agent, can also be present. If required, see Section 4.7.1, “Installing the katello Agent” for more information.
If you are on a self-registered Satellite, download all packages before stopping Satellite Server:
# yum update --downloadonly
This step is optional for Satellites which are not self-registered.
Stop Katello services:
# katello-service stop
Update all packages:
# yum update
For a self-registered Satellite, enter the following command:
# yum update --cache --disableplugin=enabled_repos_upload \ --disableplugin=package_upload \ --disableplugin=subscription-manager
If a kernel update occurs, make a note to reboot after the upgrade is complete. Do not reboot at this point.
If you have custom Apache server configurations, they will be reverted to the installation defaults in the next step. If you want to see what will be changed when you perform the upgrade, you can enter the upgrade command with the
--noop
(no operation) option and review the changes that will be applied when you enter the upgrade command in the following step. If you choose not to do this test, skip to the next step now. Alternatively, proceed as follows:Add the following line to the
/etc/httpd/conf/httpd.conf
configuration file.Include /etc/httpd/conf.modules.d/*.conf
Restart the
httpd
service.On Red Hat Enterprise Linux 6, enter the following command:
# service httpd restart
On Red Hat Enterprise Linux 7, enter the following command:
# systemctl restart httpd
Start the
postgresql
andmongod
database services.On Red Hat Enterprise Linux 6, enter the following command:
# service postgresql start # service mongod start
On Red Hat Enterprise Linux 7, enter the following command:
# systemctl start postgresql # systemctl start mongod
Enter the command with the
--noop
option as follows.# satellite-installer --scenario satellite --upgrade --verbose --noop
Review the
/var/log/foreman-installer/satellite.log
to see what changes would be applied if the--noop
option was omitted. Look for the+++
and---
symbols indicating changes to configurations files. Because the above "no operation" command does not actually create the files, and some Puppet resources in the module expect them to be there, some failure messages are to be expected.Stop Katello services.
# katello-service stop
Perform the update by running the installer script with the
--upgrade
option.# satellite-installer --scenario satellite --upgrade
If a kernel update occurred during the
yum update
step, reboot the system:# reboot
If you are on a self-registered Satellite, and did not reboot the system in the previous step, restart goferd:
On Red Hat Enterprise Linux 6, run the following command:
# service goferd restart
On Red Hat Enterprise Linux 7, run the following command:
# systemctl restart goferd
If you have updated from Satellite 6.2.12 or lower, add the
--assumeyes
parameter tokatello-backup
commands in your backup script if it is not there yet.From Satellite 6.2.13, you must add the
--assumeyes
parameter because thekatello-backup
command prompts for confirmation that the backup is to proceed. For more information about backing up Satellite Server, see Backup and Disaster Recovery in the Server Administration Guide.
7.2. Updating Capsule Server
Updating Capsule Servers to the Next Minor Version
To Update a Capsule Server:
Check that only the correct repositories are enabled:
List the enabled repositories:
# subscription-manager repos --list-enabled
Ensure you only have the following repositories enabled:
rhel-X-server-rpms rhel-X-server-satellite-capsule-6.2-rpms rhel-server-rhscl-X-rpms rhel-X-server-satellite-tools-6.2-rpms
Where X is the major version of Red Hat Enterprise Linux you are using. If required, see Section 4.3, “Configuring Repositories” for more information on disabling and enabling repositories. The
rhel-X-server-satellite-tools-6.2-rpms
repository provides Katello Agent. If required, see Section 4.7.1, “Installing the katello Agent” for more information. The Red Hat Software Collections repository is optional, it is required for the Remote Execution feature.
Stop Katello services:
# katello-service stop
Update all packages:
# yum update
If a kernel update occurs, make a note to reboot after the upgrade is complete. Do not reboot at this point.
If you have custom Apache server configurations, they will be reverted to the installation defaults in the next step. If you want to see what will be changed when you perform the upgrade, you can enter the upgrade command with the
--noop
(no operation) option and review the changes that will be applied when you enter the upgrade command in the following step. If you choose not to do this test, skip to the next step now. Alternatively, proceed as follows:Add the following line to the
/etc/httpd/conf/httpd.conf
configuration file.Include /etc/httpd/conf.modules.d/*.conf
Restart the
httpd
service.On Red Hat Enterprise Linux 6, enter the following command:
# service httpd restart
On Red Hat Enterprise Linux 7, enter the following command:
# systemctl restart httpd
Start the
mongod
database service.On Red Hat Enterprise Linux 6, enter the following command:
# service mongod start
On Red Hat Enterprise Linux 7, enter the following command:
# systemctl start mongod
Enter the command with the
--noop
option as follows.# satellite-installer --scenario capsule --upgrade --verbose --noop
Review the
/var/log/foreman-installer/capsule.log
to see what changes would be applied if the--noop
option was omitted. Look for the+++
and---
symbols indicating changes to configurations files. Because the above "no operation" command does not actually create the files, and some Puppet resources in the module expect them to be there, some failure messages are to be expected.Stop Katello services.
# katello-service stop
Perform the update by running the installer script with the
--upgrade
option.# satellite-installer --scenario capsule --upgrade
If a kernel update occurred during the
yum update
step, reboot the system:# reboot
If you did not reboot the system in the previous step, restart goferd:
On Red Hat Enterprise Linux 6, run the following command:
# service goferd restart
On Red Hat Enterprise Linux 7, run the following command:
# systemctl restart goferd
If you have updated from Satellite 6.2.12 or lower, add the
--assumeyes
parameter tokatello-backup
commands in your backup script if it is not there yet.From Satellite 6.2.13, you must add the
--assumeyes
parameter because thekatello-backup
command prompts for confirmation that the backup is to proceed. For more information about backing up Satellite Server, see Backup and Disaster Recovery in the Server Administration Guide.
7.3. Updating Content Hosts
Updating Content Hosts to the Next Minor Version
To Update a Content Host, enter the following commands:
Update all packages:
# yum update
If a kernel update occurs, reboot the system:
# reboot
If you did not reboot the system in the previous step, restart goferd:
On Red Hat Enterprise Linux 6, run the following command:
# service goferd restart
On Red Hat Enterprise Linux 7, run the following command:
# systemctl restart goferd