8장. Leapp 업그레이드를 위한 오버클라우드 구성

수명이 긴 RHOSP(Red Hat OpenStack Platform) 업그레이드에는 Red Hat Enterprise Linux 7에서 Red Hat Enterprise Linux 8으로 기본 운영 체제를 업그레이드해야 합니다. Red Hat Enterprise Linux 7은 Leapp 유틸리티를 사용하여 Red Hat Enterprise Linux 8로의 업그레이드를 수행합니다. Leapp 및 해당 종속 항목에 대한 자세한 내용은 업그레이드용 RHEL 7 시스템 준비를 참조하십시오.

오버클라우드 업그레이드 프레임워크는 rep 업그레이드를 자동으로 실행합니다. RHOSP 업그레이드에 성공하려면 사전 업그레이드 보고서를 수동으로 실행하여 잠재적인 문제를 파악하고 해결하는 것이 좋습니다. 각 Compute, Controller, Ceph Storage 역할 중 하나 이상의 호스트에 대해 사전 업그레이드 보고서를 실행합니다. Leapp 사전 업그레이드 보고서에 대한 자세한 내용은 사전 업그레이드 보고서 검토를 참조하십시오.

8.1. 업그레이드 환경 파일 생성

업그레이드 프로세스에서는 환경 파일을 사용하여 업그레이드 프로세스를 활성화하고 특정 업그레이드 매개변수를 구성합니다.

절차

  1. stack 사용자로 언더클라우드에 로그인합니다.
  2. templates 디렉터리에 upgrade -environment.yaml 이라는 환경 파일을 생성합니다.

    $ touch templates/upgrades-environment.yaml
  3. 파일을 편집하고 다음 필수 콘텐츠를 추가합니다.

    parameter_defaults:
      UpgradeLeappDevelSkip: "LEAPP_UNSUPPORTED=1 LEAPP_DEVEL_TARGET_RELEASE=8.2"
      LeappInitCommand: |
        for module in pata_acpi floppy; do sudo sed -i "/^${module}$/d" /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/kernel/checkkerneldrivers/files/removed_drivers.txt; done
        sudo rm -f /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/persistentnetnamesdisable/actor.py
        sudo yum -y remove mariadb-server* || true
      UpgradeInitCommand: "sudo dnf config-manager --save --setopt exclude=''"
    • UpgradeLeappDevelSkip 은 Leapp 점검을 건너뛰고 Leapp을 실행할 때 환경 변수를 설정합니다.
    • LeappInitCommand 는 각 오버클라우드 노드에서 실행되는 명령 또는 스크립트 조각을 전달하고 Leapp 업그레이드를 위해 노드를 준비합니다.
    • UpgradeInitCommand 는 각 오버클라우드 노드에서 실행되는 명령 또는 스크립트 조각을 전달합니다. dnf config-manager --save --setopt exclude='' 명령은 DNF 제외에서 Leapp 패키지를 제거하여 python2 패키지의 자동 제거를 성공적으로 수행합니다.
  4. 선택 사항: 해당 환경에서 TLS-Everywhere를 사용하고 authconfig 에서 authselect 로 마이그레이션하려는 경우 BZ#1978228 - OSP13octets16.2 Leapp 업그레이드가 TLS everywhere :로 실패하지 않도록 authselect_check.confirm 매개변수를 True 설정합니다.

    parameter_defaults:
      LeappInitCommand: |
        sudo leapp answer --section authselect_check.confirm=True --add

    그렇지 않으면 값을 False 로 설정합니다.

    참고

    | 구문을 사용하여 LeappInitCommand 매개변수에 여러 명령을 전달합니다.

    parameter-defaults:
      LeappInitCommand: |
        <command_1>
        <command_2>
  5. upgrade -environment.yaml 파일을 저장합니다.