此内容没有您所选择的语言版本。
Chapter 5. Post-Upgrade Tasks
Some of the procedures in this section are optional. You can choose to perform only those procedures that are relevant to your installation.
If you use the PXE-based discovery process, then you must complete the discovery upgrade procedure on Satellite and on any Capsule Server with hosts that you want to be listed in Satellite on the Hosts > Discovered hosts page.
5.1. Updating Backup and Restore Scripts 复制链接链接已复制到粘贴板!
If you have scripts for backing up and restoring Satellite or Capsule, ensure that you update the scripts to replace katello-backup
and katello-restore
with foreman-maintain backup
and foreman-maintain restore
.
5.2. Upgrading Discovery 复制链接链接已复制到粘贴板!
This section describes updating the PXELinux template and the boot image passed to hosts that use PXE booting to register themselves with Satellite Server.
From Satellite 6.4, provisioning templates now have a separate association with a subnet, and do not default to using the TFTP Capsule for that subnet. If you create subnets after the upgrade, you must specifically enable the Satellite or a Capsule to provide a proxy service for discovery templates and then configure all subnets with discovered hosts to use a specific template Capsule.
During the upgrade, for every subnet with a TFTP proxy enabled, the template Capsule is set to be the same as the TFTP Capsule. After the upgrade, check all subnets to verify this was set correctly.
These procedures are not required if you do not use PXE booting of hosts to enable Satellite to discover new hosts.
5.2.1. Upgrading Discovery on Satellite Server 复制链接链接已复制到粘贴板!
Update the Discovery template in the Satellite web UI:
- Navigate to Hosts > Provisioning templates.
-
On the
PXELinux global default
line, click Clone. -
Enter a new name for the template in the Name field, for example
ACME PXE global default
. -
In the template editor field, change the line
ONTIMEOUT local
toONTIMEOUT discovery
and click Submit. - Navigate to Administer > Settings.
-
Locate
Global default PXELinux template
and click on its Value. - Select the name of the newly created template from the menu and click the tick button.
- Navigate to Hosts > Provisioning templates.
- Click Build PXE Default, then click OK.
- In the Satellite web UI, go to Configure > Discovery Rules and associate selected organizations and locations with discovery rules.
5.2.2. Upgrading Discovery on Capsule Servers 复制链接链接已复制到粘贴板!
Verify that the Foreman Discovery package is current on Satellite Server.
yum upgrade tfm-rubygem-foreman_discovery
# yum upgrade tfm-rubygem-foreman_discovery
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If an update occurred in the previous step, restart Satellite services.
katello-service restart
# katello-service restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Upgrade the Discovery image on the Satellite Capsule that is either connected to the provisioning network with discovered hosts or provides TFTP services for discovered hosts.
yum upgrade foreman-discovery-image
# yum upgrade foreman-discovery-image
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On the same instance, install the package which provides the Proxy service, and then restart
foreman-proxy
service.yum install rubygem-smart_proxy_discovery service foreman-proxy restart
# yum install rubygem-smart_proxy_discovery # service foreman-proxy restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Satellite web UI, go to Infrastructure > Capsules and verify that the relevant Capsule lists Discovery in the features column. Select Refresh from the Actions drop-down menu if necessary.
Go to Infrastructure > Subnets and for each subnet on which you want to use discovery:
- Click the subnet name.
- On the Capsules tab, ensure the Discovery Capsule is set to a Capsule you configured above.
5.2.3. Verifying Subnets have a Template Capsule 复制链接链接已复制到粘贴板!
Ensure all subnets with discovered hosts have a template Capsule:
- In the Satellite web UI, navigate to Infrastructure > Subnets.
- Select the subnet you want to check.
- On the Capsules tab, ensure a Template Capsule has been set for this subnet.
For more information about configuring subnets with template Capsules, see Configuring Discovery Subnets in the Red Hat Satellite Managing Hosts guide.
5.3. Upgrading virt-who 复制链接链接已复制到粘贴板!
If virt-who is installed on Satellite Server or a Capsule Server, it will be upgraded when they are upgraded. No further action is required. If virt-who is installed elsewhere, it must be upgraded manually.
Before You Begin
If virt-who is installed on a host registered to Satellite Server or a Capsule Server, first upgrade the host to the latest packages available in the Satellite Tools repository. For information about upgrading hosts, see Section 3.4, “Upgrading Satellite Clients”.
Upgrade virt-who Manually
Upgrade virt-who.
yum upgrade virt-who
# yum upgrade virt-who
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the virt-who service so the new version is activated.
systemctl restart virt-who.service
# systemctl restart virt-who.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
After completing the upgrade to Satellite 6.4, the Red Hat Satellite Tools 6.3 repository can be removed from Content Views and then disabled.
Disable Version 6.3 of the Satellite Tools Repository:
- In the Satellite web UI, navigate to Content > Red Hat Repositories.
- In the Enabled Repositories area, locate Red Hat Satellite Tools 6.3 for RHEL 7 Server RPMs x86_64.
- Click the Disable icon to the right.
If the repository is still contained in a Content View then you cannot disable it. Packages from a disabled repository are removed automatically by a scheduled task.
During the upgrade process, Satellite attempts to locate macros that are deprecated for Satellite 6.4 and converts old syntax to new syntax for the default Satellite templates, parameters, and lookup keys and values. However, Satellite does not convert old syntax in the custom templates that you have created and in the cloned templates.
The process uses simple text replacement, for example:
@host.params['parameter1'] -> host_param('parameter1') @host.param_true?('parameter1') -> host_param_true?('parameter1') @host.param_false?('parameter1') -> host_param_false?('parameter1') @host.info['parameters'] -> host_enc['parameters']
@host.params['parameter1'] -> host_param('parameter1')
@host.param_true?('parameter1') -> host_param_true?('parameter1')
@host.param_false?('parameter1') -> host_param_false?('parameter1')
@host.info['parameters'] -> host_enc['parameters']
If you use cloned templates in Satellite, verify whether the cloned templates have diverged from the latest version of the original templates in Satellite. The syntax for the same template can differ between versions of Satellite. If your cloned templates contain outdated syntax, update the syntax to match the latest version of the template.
To ensure that this text replacement does not break or omit any variables in your files during the upgrade, check all templates, parameters, and lookup keys and values for the old syntax and replace manually.
The following error occurs because of old syntax remaining in files after the upgrade:
undefined method '#params' for Host::Managed::Jail
undefined method '#params' for Host::Managed::Jail
Fixing the outdated subscription_manager_registration snippet
Satellite 6.4 onwards uses the redhat_register
snippet instead of the subscription_manager_registration
snippet.
If you upgrade from Satellite 6.3 and earlier, ensure to replace the subscription_manager_registration
snippet in your custom templates as follows:
<%= snippet "subscription_manager_registration" %> ↓ <%= snippet 'redhat_register' %>
<%= snippet "subscription_manager_registration" %>
↓
<%= snippet 'redhat_register' %>
After the upgrade, ensure that you set the Mirror-on-Sync
setting to Yes
for the Red Hat repositories, excluding the repositories for which you intentionally set Mirror-on-Sync
to No
. For more information, see the Searching Red Hat repositories with the Mirror on Sync setting set to No article in the Red Hat Knowledge Base.