10.2. DNS 서비스 풀 구성 내보내기
DNS 풀 구성 사본을 사용하여 RHOSP(Red Hat OpenStack Platform) DNS 서비스(designate) 문제를 해결할 수 있습니다.
RHOSP 17.1에서는 여러 풀이 지원되지 않습니다.
프로세스
컨트롤러 노드 중 하나에 로그인하고 현재 실행 중인 DNS 서비스 풀 구성을 콘솔에 표시합니다.
예제
이 예에서 관리자는 SSH를 통해
tripleo-admin사용자로 SSH를 통해 컨트롤러 노드controller-0.ctlplane에 액세스하고designate_central컨테이너에서 실행되는designate-manage pool show_config명령을 실행합니다.$ ssh tripleo-admin@controller-0.ctlplane sudo podman exec \ designate_central designate-manage pool show_config샘플 출력
Pool Configuration: ------------------- also_notifies: [] attributes: {} description: Default Pool id: 794ccc2c-d751-44fe-b57f-8894c9f5c842 name: default nameservers: - host: 192.0.2.111 port: 53 - host: 192.0.2.109 port: 53 - host: 192.0.2.131 port: 53 ns_records: - hostname: ns2.example.com. priority: 2 - hostname: ns1.example.com. priority: 1 - hostname: ns3.example.com. priority: 3 targets: - description: BIND9 Server 3 masters: - host: 192.0.2.137 port: 16002 - host: 192.0.2.137 port: 16001 - host: 192.0.2.137 port: 16000 options: host: 192.0.2.111 port: '53' rndc_config_file: /etc/designate/private/bind3.conf rndc_host: 192.0.2.111 rndc_port: '953' type: bind9 - description: BIND9 Server 2 masters: - host: 192.0.2.137 port: 16001 - host: 192.0.2.137 port: 16002 - host: 192.0.2.137 port: 16000 options: host: 192.0.2.131 port: '53' rndc_config_file: /etc/designate/private/bind2.conf rndc_host: 192.0.2.131 rndc_port: '953' type: bind9 - description: BIND9 Server 1 masters: - host: 192.0.2.137 port: 16002 - host: 192.0.2.137 port: 16001 - host: 192.0.2.137 port: 16000 options: host: 192.0.2.109 port: '53' rndc_config_file: /etc/designate/private/bind1.conf rndc_host: 192.0.2.109 rndc_port: '953' type: bind9현재 풀 구성을 파일로 내보내려면
designate-manage pool generate_file명령을 사용합니다.예제
이 예에서 관리자는 SSH를 통해
tripleo-admin사용자로 SSH를 통해 컨트롤러 노드controller-0.ctlplane에 액세스하고designate_central컨테이너에서 실행 중인designate-manage pool generate_file --file <file_name> 명령을 실행합니다. DNS 서비스는 현재 풀 구성을--file옵션에 의해 지정된 파일(이 예에서~/my_dns_service_config.yaml)으로 내보냅니다.$ ssh tripleo-admin@controller-0.ctlplane sudo podman exec \ designate_central designate-manage pool generate_file \ --file ~/my_dns_service_config.yaml작은 정보podman cp명령을 사용하여 컨테이너에서 로컬 시스템으로 파일을 복사합니다.