피드 구독

In this post:

  • How to use Satellite to upgrade multiple RHEL 7 client systems to RHEL 8.

  • How to enable the Leapp upgrade plugin to use pre-upgrade checks.


Stability and the ability to upgrade with minimal downtime are two important features of production environments, and using the Leapp upgrade utility on Red Hat Satellite 6, can provide both. In this post, I'll show you step by step how to upgrade smoothly from Red Hat Enterprise Linux (RHEL) 7 to RHEL 8 with pre-upgrade checks available with Leapp upgrade.

The Leapp upgrade is a mechanism that enables us to migrate from RHEL 7 to RHEL 8. The Leapp upgrade can be performed on individual  client systems, but you can upgrade multiple systems in parallel if Red Hat Satellite is a part of your infrastructure. 

Prerequisites for the upgrade

1. Client system(s) should be registered to the supported version of Red Hat Satellite 6.

2. The client system should be attached to the proper subscriptions if your organization does not have Simple Content Access enabled. Client systems attached to the required subscriptions are provided with access to repositories used by Leapp.

3. The four repositories shown in Figure 1 should be synced on the Red Hat Satellite 6 web user interface.

 

4. Remote Execution is required for the Leapp upgrade operations and is used by Satellite to enable the execution of arbitrary commands on Satellite managed systems. Remote Execution was first available on Satellite 6.2. 

5. If your Satellite server has Content Views configured, then the four repositories in Figure 1 should be present in the latest published version of the Content View. This step is completely optional as not every user manages a Content View in their Satellite. 

If the Satellite system does not have content, then these four repositories need to be enabled and synced on the Satellite server. Client systems will directly pull the repositories and packages.  

Procedure

Make sure the client system is upgraded with the latest packages for RHEL 7.9, not just any release version.

1. Ensure there is no release version set.

# subscription-manager release --unset

2. Install the leapp related packages.

# yum update -y 
# yum install leapp leapp-repository -y 

This will be a one-time setup for the Satellite server to enable the Leapp upgrade plugin.  

1. Enable the Leapp plugin on the Satellite server.

# satellite-installer --enable-foreman-plugin-leapp

2. Select all hosts that need to be upgraded. By clicking Satellite Web UI(GUI) -> Hosts -> All Hosts and then  Select Hosts from the checkbox.

Figure 2.

3. Run a pre-upgrade check for the system.

>> Satellite Web UI(GUI) >> Hosts >> All Hosts >> Select Hosts from the checkbox >> Select Preupgrade Check with Leapp

 

Figure 3.

4. Submit the pre-upgrade check. At this point, the satellite will take an ssh access to your client system and perform a dry run on the client system to check if the upgrade will be smooth.

Figure 4.

 

Figure 5.

5. Once the check is done, look for the detailed report in the Leapp Preupgrade Report tab. This report will contain all the suggestions that should be performed on the client system and information about the Inhibitors. Issues that have the Inhibitor flag are considered crucial and are likely to break the upgrade procedure.

 

Figure 6.

6. After clearing all the Inhibitors from the report, proceed with the upgrade. Click on the "Run Upgrade" button and submit to start the upgrade.

 

Figure 7.

Troubleshooting

Make sure you have resolved the problems identified in the pre-upgrade report, located at /var/log/leapp/leapp-report.txt. The file /var/log/leapp/leapp-upgrade.log lists issues found during the initramfs phase.

Summary and closing

Satellite upgrades multiple RHEL 7 client systems to RHEL 8 simultaneously, when combined with the Leapp utility.

Check out the open Request for Feature Enhancement (RFE) covering the upgrade from RHEL 7.9 to RHEL 8.2. Contact  Red Hat Technical Support if you’re a customer who could benefit from this enhancement as well.


저자 소개

Jaskaran Singh Narula is passionate about security and infrastructure management and has been working with Red Hat Satellite teams since 2017. He is also a volunteer at Null, India's largest open source security community.

 
Read full bio
UI_Icon-Red_Hat-Close-A-Black-RGB

채널별 검색

automation icon

오토메이션

기술, 팀, 인프라를 위한 IT 자동화 최신 동향

AI icon

인공지능

고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트

open hybrid cloud icon

오픈 하이브리드 클라우드

하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요

security icon

보안

환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보

edge icon

엣지 컴퓨팅

엣지에서의 운영을 단순화하는 플랫폼 업데이트

Infrastructure icon

인프라

세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보

application development icon

애플리케이션

복잡한 애플리케이션에 대한 솔루션 더 보기

Original series icon

오리지널 쇼

엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리