4.3. Assessing upgradability of RHEL 9 to RHEL 10 and applying automated remediations through the web console
You can identify potential problems in the pre-upgrade phase before the upgrade and apply automated remediations by using the web console. See Getting started using the RHEL web console for more information about the web console.
Prerequisites
- You completed the in Preparing for the upgrade procedure.
You are logged in as the root user with the unconfined SELinux role.
참고If you use the
sudocommand, you must use the-r unconfined_r -t unconfined_toptions when entering eachleappcommand, for example:$ sudo -r unconfined_r -t unconfined_t leapp preupgrade
Procedure
Install the
cockpit-leappplug-in:# dnf install cockpit-leapp-
Log in to the web console as
rootor as a user that has permissions to enter administrative commands withsudo. On your RHEL 9 system, perform the pre-upgrade phase either from the command line or from the web console terminal:
# leapp preupgrade --target <target_os_version>Replace target_os_version with the target OS version, for example
10.0. If no target OS version is defined,Leappuses the default target OS version specified in the table 1.1 in Supported upgrade paths.If you are using custom repositories from the
/etc/yum.repos.d/directory for the upgrade, enable the selected repositories as follows:# leapp preupgrade --enablerepo <repository_id1> --enablerepo <repository_id2> ...-
If you are upgrading without RHSM or by using RHUI, add the
--no-rhsmoption. -
If you have an Extended Upgrade Support (EUS) or Advanced Update Support (AUS) subscription, add the
--channel <channel>option. Replace <channel> with the channel name, for example,eusor`aus`. If you are using RHEL for Real Time or the Real Time for Network Functions Virtualization (NFV) in your Red Hat OpenStack Platform, enable the deployment by using the
--enablerepooption. For example:# leapp preupgrade --enablerepo rhel-10-for-x86_64-rt-rpmsFor more information, see Configuring Real-Time Compute.
In the web console, select Upgrade Report from the navigation menu to review all reported problems. Inhibitor problems prevent you from upgrading until you have resolved them. To view a problem in detail, select the row to open the Detail pane.
그림 4.1. In-place upgrade report in the web console
The report contains the following risk factor levels:
- High - Very likely to result in a deteriorated system state.
- Medium - Can impact both the system and applications.
- Low - Should not impact the system but can have an impact on applications.
- Info - Informational with no expected impact to the system or applications.
In certain configurations, the
Leapputility generates true or false questions that you must answer manually. If the Upgrade Report contains a Missing required answers in the answer file row, complete the following steps:- Select the Missing required answers in the answer file row to open the Detail pane. The default answer is stated at the end of the remediation command.
- To confirm the default answer, select Add to Remediation Plan to start the remediation later or Run Remediation to start the remediation immediately.
To select the non-default answer instead, run the
leapp answercommand in the terminal, specifying the question you are responding to and your confirmed answer.# leapp answer --section <question_section>.<field_name>=<answer>참고You can also manually edit the
/var/log/leapp/answerfilefile, uncomment the confirm line of the file by deleting the#symbol, and confirm your answer asTrueorFalse. For more information, see the Troubleshooting tips.
Some problems have remediation commands that you can run to automatically resolve the problems. You can run remediation commands individually or all together in the remediation command.
- To run a single remediation command, open the Detail pane for the problem and click Run Remediation.
To add a remediation command to the remediation plan, open the Detail pane for the problem and click Add to Remediation Plan.
그림 4.2. Detail pane
- To run the remediation plan containing all added remediation commands, click the Remediation plan link in the top right corner above the report. Click Execute Remediation Plan to run all listed commands.
- After reviewing the report and resolving all reported problems, repeat steps 3-7 to rerun the report to verify that you have resolved all critical issues.