SUSE Multi-Linux Manager 서버 이름 변경 문제 해결

SUSE Multi-Linux Manager 서버의 호스트 이름을 로컬로 변경하면 SUSE Multi-Linux Manager 설치가 제대로 작동하지 않습니다. 왜냐하면 데이터베이스에서 변경사항이 적용되지 않아 변경 사항이 클라이언트와 프록시로 전파되지 않기 때문입니다.

1. 서버 이름 변경

If you need to change the hostname of the SUSE Multi-Linux Manager Server, you can do so using the mgradm server rename command. This command updates the settings in the PostgreSQL database and the internal structures of SUSE Multi-Linux Manager.

1.1. 서버 구성

이 명령에는 필수 파라미터가 없지만, 컨테이너 호스트의 호스트 이름이 아닌 경우 새 호스트 이름을 지정할 수 있습니다.

새 호스트 이름과 일치하도록 SSL 인증서를 생성해야 하는 경우 SSL CA 비밀번호를 제공해야 합니다. 이 작업은 구성 파일을 사용하여 안전하게 수행할 수 있습니다.

절차: SSL CA 비밀번호의 구성 파일 준비
  1. Write a config.yaml file with content like the following:

    ssl:
      password: "<CA PASSWORD>"

이 파일은 다음 절차에서 사용됩니다.

절차: SUSE Multi-Linux Manager 서버 이름 변경
  1. DNS 서버에서 로컬 및 원격으로 시스템 수준에서 서버의 네트워크 설정을 변경합니다. 역방향 이름 확인을 위한 구성 설정도 제공해야 합니다. 네트워크 설정 변경은 다른 시스템의 이름을 변경할 때와 동일한 방식으로 수행됩니다.

  2. 새 네트워크 구성을 사용하고 호스트 이름이 변경되었는지 확인하려면 SUSE Multi-Linux Manager 서버를 재부팅합니다.

  3. On the container host, from the command line, execute the following command. Add -c config.yaml if you created the file to store the SSL CA password:

    mgradm server rename

    새 호스트 이름이 확인되지 않으면 명령이 실패합니다.

서버 컨테이너의 재시작 중에도 이름 바꾸기 절차가 수행됩니다. 다음 명령을 실행하면 로그를 확인할 수 있습니다.

mgrctl exec -ti -- journalctl -u uyuni-update-config

서버 컨테이너를 재시작할 때 이 명령은 모든 Salt 클라이언트의 열 데이터의 새로 고침을 트리거합니다: 실행 시간은 등록된 클라이언트 수에 따라 달라집니다.

1.2. 직접 관리 클라이언트 재구성

클라이언트가 SUSE Multi-Linux Manager 프록시를 통해 관리되는 경우 이 절차를 건너뜁니다.

다음 절차에 따라 직접 관리 클라이언트가 새 호스트 이름과 IP 주소를 인식하도록 재구성합니다.

절차: 직접 관리 클라이언트 재구성
  1. On the every client, in the Salt client configuration file, specify the name of the new Salt master (SUSE Multi-Linux Manager Server). The filename is /etc/venv-salt-minion/minion.d/susemanager.conf or, if you do not use the Salt bundle, /etc/salt-minion/minion.d/susemanager.conf:

    master: <new_hostname>
  2. 모든 클라이언트에서 Salt 서비스를 다시 시작합니다. 다음 중 하나를 실행합니다.

    systemctl restart venv-salt-minion

    또는 Salt 번들을 사용하지 않는 경우에는 다음을 실행합니다.

    systemctl restart salt-minion

1.3. ClientcConnection with applying high state

마지막으로 호스트 이름을 Salt 클라이언트 구성에 완전히 전파하려면 highstate를 적용합니다. highstate를 적용하면 리포지토리 URL의 호스트 이름이 업데이트됩니다.

2. 프록시 재구성

모든 프록시를 다시 구성해야 합니다. 새 서버 인증서와 키를 프록시에 복사해야 합니다. 자세한 내용은 SUSE Multi-Linux Manager 프록시 설치에서 확인할 수 있습니다.

If you use PXE boot through a proxy, you must check the configuration settings of the proxy. If you use PXE boot through non-containerized SUSE Multi-Linux Manager Proxy 4.3, tftpsync needs to be reconfigured.

컨테이너 호스트에서 다음을 실행합니다.

mgrctl exec -ti -- configure-tftpsync.sh