Documentation survey

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

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

1. 서버 이름 변경

SUSE Manager 서버의 호스트 이름을 변경해야 하는 경우 spacewalk-hostname-rename 스크립트를 사용하여 변경할 수 있습니다. 이 스크립트는 PostgreSQL 데이터베이스의 설정 및 SUSE Manager의 내부 구조를 업데이트합니다.

1.1. 서버 구성

spacewalk-hostname-rename 스크립트는 spacewalk-utils 패키지의 일부입니다.

The only mandatory parameter for the script is the new fully qualified domain name of the SUSE Manager Server.

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

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

  3. On the container host, from the command line, execute the following command to update the settings of the server:

    mgrctl exec -ti -- spacewalk-hostname-rename <NEW-FQDN>

    Be aware that this script refreshes the pillar data for all Salt clients: the time it takes to run depends on the number of registered clients.

In case third party SSL certificates are used on the SUSE Manager server, the server certificate and key need to be recreated with the new FQDN.

Procedure: Renaming SUSE Manager Server with third party certificates
  1. Copy the root certification authority certificate, the new server certificate and key to the SUSE Manager Server host.

  2. Copy them to a temporary folder in the container using mgrctl cp.

  3. Run spacewalk-hostname-rename with parameters to deploy the new certificate.

    mgrctl exec mkdir /tmp/ssl
    mgrctl cp ca.crt server:/tmp/ssl/ca.crt
    mgrctl cp srv.crt server:/tmp/ssl/srv.crt
    mgrctl cp srv.key server:/tmp/ssl/srv.key
    mgrctl exec -ti -- spacewalk-hostname-rename <NEW-FQDN> --ssl-ca-cert=/tmp/ssl/ca.crt --ssl-server-cert=/tmp/ssl/srv.crt and --ssl-server-key=/tmp/ssl/srv.key
    mgrctl exec rm -r /tmp/ssl

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

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

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

절차: 직접 관리 클라이언트 재구성
  1. 모든 클라이언트의 Salt 클라이언트 구성 파일에서 새 Salt 마스터(SUSE Manager 서버)의 이름을 지정합니다. 파일 이름은 /etc/venv-salt-minion/minion.d/susemanager.conf 또는 Salt 번들을 사용하지 않는 경우 /etc/salt-minion/minion.d/susemanager.conf입니다.

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

    systemctl restart venv-salt-minion

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

    systemctl restart salt-minion

1.3. High State를 적용한 클라이언트 연결

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

2. 프록시 재구성

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

프록시를 통해 PXE 부팅을 사용하는 경우 프록시의 구성 설정을 확인해야 합니다. 컨테이너화되지 않은 SUSE Manager 프록시 4.3을 통해 PXE 부팅을 사용하는 경우, tftpsync를 재구성해야 합니다.

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

mgrctl exec -ti -- configure-tftpsync.sh