Legacy Proxy Migration to Container

The containerized proxy now is managed by a set of systemd services. For managing the containerized proxy, use the mgrpxy tool.

This section will help you migrate from the legacy systemd proxy using the mgrpxy tool.

An in-place migration from previous releases of SUSE Multi-Linux Manager to 5.1 will remain unsupported due to the HostOS change from openSUSE Leap to openSUSE Leap Micro.

The traditional contact protocol is no longer supported in SUSE Multi-Linux Manager 5.1 and later. Before migrating from previous SUSE Multi-Linux Manager releases to 5.1, any existing traditional clients including the traditional proxies must be migrated to Salt.

1. Migrate From Legacy to Containerized Proxy With Systemd

1.1. Generate Proxy Configuration

Procedure: Generate the Proxy Configuration
  1. SUSE Multi-Linux Manager 서버 Web UI에 로그인합니다.

  2. 왼쪽 탐색에서 시스템  프록시 구성을 선택합니다.

  3. 프록시 FQDN을 입력합니다. 원래 프록시 호스트와 동일한 FQDN을 사용합니다.

  4. 서버 FQDN을 입력합니다.

  5. Enter the Proxy port number. We recommend using the default port of 8022.

  6. 인증서와 개인 키는 서버 컨테이너 호스트의 `/var/lib/containers/storage/volumes/root/_data/ssl-build/`에 있습니다.

    • RHN-ORG-TRUSTED-SSL-CERT

    • RHN-ORG-PRIVATE-SSL-KEY

  7. 다음을 사용하여 인증서와 키를 컴퓨터로 복사합니다.

    scp root@uyuni-server-example.com:/root/ssl-build/RHN-ORG-PRIVATE-SSL-KEY .
    scp root@uyuni-server-example.com:/root/ssl-build/RHN-ORG-TRUSTED-SSL-CERT .
  8. 파일 선택을 선택하고 로컬 컴퓨터에서 인증서를 찾습니다.

  9. 파일 선택을 선택하고 로컬 컴퓨터에서 개인 키를 찾습니다.

  10. CA 비밀번호를 입력합니다.

  11. 생성을 클릭합니다.

1.2. 프록시 구성을 새 호스트로 전송

Procedure: Transfering the Proxy Configuration
  1. 서버에서 프록시 구성이 포함된 생성된 tar.gz 파일을 새 프록시 호스트로 전송합니다.

    scp config.tar.gz <uyuni-proxy-FQDN>:/root/
  2. 다음 단계를 실행하기 전에 레거시 프록시를 비활성화합니다.

    spacewalk-proxy stop
  3. 다음을 사용하여 새 프록시를 배포합니다.

    systemctl start uyuni-proxy-pod
  4. 다음을 사용하여 새 프록시를 활성화합니다.

    systemctl enable --now uyuni-proxy-pod
  5. `podman ps`를 실행하여 모든 컨테이너가 있고 실행 중인지 확인합니다.

    proxy-salt-broker
    proxy-httpd
    proxy-tftpd
    proxy-squid
    proxy-ssh

2. Migrate SUSE Multi-Linux Manager Proxy to SUSE Multi-Linux Manager 5.1 Containerized Proxy

Procedure: Migrate SUSE Multi-Linux Manager Containerized Proxy to SUSE Multi-Linux Manager 5.1 New Containerized Proxy
  1. 새 시스템을 부팅하고 openSUSE Leap Micro 6.1 설치를 시작합니다.

  2. 설치를 완료합니다.

  3. 시스템 업데이트:

    transactional-update --continue
  4. mgrpxy와 선택적으로 mgrpxy-bash-completion을 설치합니다.

    transactional-update pkg install mgrpxy mgrpxy-bash-completion
  5. 재부팅합니다.

  6. Copy your tar.gz proxy configuration to the host.

3. Install Packages Using the Web UI

mgrpxymgrpxy-bash-completion 패키지는 미니언이 부트스트랩되어 서버에 등록된 후 웹 UI를 통해 설치할 수도 있습니다.

Procedure: Installing Packages Using the Web UI
  1. After installation, ensure that the SLE Micro 6.1 parent channel and Proxy child channels are added and synchronized from the Admin  Setup Wizard → Products page.

  2. In the Web UI, go to Systems  Activation Keys and create an activation key linked for the synchronized SLE Micro 6.1 channel.

  3. 시스템  부트스트랩 페이지를 사용하여 시스템을 미니언으로 부트스트랩합니다.

  4. 새 머신이 온보딩되어 시스템 목록에 표시되면 시스템을 선택하고 시스템 세부 정보  패키지 설치 페이지로 이동합니다.

  5. mgrpxymgrpxy-bash-completion 패키지를 설치합니다.

  6. 시스템을 재부팅합니다.

4. Generate Proxy Config With spacecmd and Self-Signed Certificate

spacecmd를 사용하여 프록시 구성을 생성할 수 있습니다.

Procedure: Generate Proxy Config With spacecmd and Self-Signed Certificate
  1. 컨테이너 호스트에 SSH로 연결합니다.

  2. 서버 및 프록시 FQDN을 바꾸는 다음 명령을 실행합니다.

    mgrctl exec -ti 'spacecmd proxy_container_config_generate_cert -- dev-pxy.example.com dev-srv.example.com 2048 email@example.com -o /tmp/config.tar.gz'
  3. 생성된 구성을 프록시에 복사합니다.

    mgrctl cp server:/tmp/config.tar.gz .
  4. 다음을 사용하여 프록시를 배포합니다.

    mgrpxy install podman config.tar.gz

5. Generate Proxy Config With spacecmd and Custom Certificate

You can generate Proxy configuration using spacecmd for a custom certificates rather than default self-signed certificates.

2GB는 기본 프록시 squid 캐시 크기입니다. 사용자의 환경에 적합하도록 조정해야 합니다.

Procedure: Generate Proxy Config With spacecmd and Custom Certificate
  1. 서버 컨테이너 호스트에 SSH로 연결합니다.

  2. 서버 및 프록시 FQDN을 바꾸는 다음 명령을 실행합니다.

    for f in ca.crt proxy.crt proxy.key; do
      mgrctl cp $f server:/tmp/$f
    done
    mgrctl exec -ti 'spacecmd proxy_container_config -- -p 8022 pxy.example.com srv.example.com 2048 email@example.com /tmp/ca.crt /tmp/proxy.crt /tmp/proxy.key -o /tmp/config.tar.gz'
  3. 생성된 구성을 프록시에 복사합니다.

    mgrctl cp server:/tmp/config.tar.gz .
  4. 다음을 사용하여 프록시를 배포합니다.

    mgrpxy install podman config.tar.gz