1장. 문제 진단
Ansible Automation Platform 문제 해결을 시작하려면 OpenShift Container Platform에서 must-gather 명령을 사용하거나 VM 기반 설치에서 sos 유틸리티를 사용하여 구성 및 진단 정보를 수집합니다. 이러한 유틸리티의 출력을 지원 케이스에 연결할 수 있습니다.
1.1. must-gather 명령을 사용하여 OpenShift Container Platform에서 Ansible Automation Platform 문제 해결 링크 복사링크가 클립보드에 복사되었습니다!
oc adm must-gather CLI(명령줄 인터페이스) 명령은 OpenShift Container Platform에 배포된 Ansible Automation Platform 설치에서 정보를 수집합니다. 리소스 정의 및 서비스 로그를 포함하여 문제를 디버깅하는 데 필요한 정보를 수집합니다.
oc adm must-gather CLI 명령을 실행하면 지원 케이스의 문제를 해결하거나 연결하는 데 사용할 수 있는 수집된 데이터가 포함된 새 디렉터리가 생성됩니다.
OpenShift 환경에서 registry.redhat.io 에 액세스할 수 없고 must-gather 명령을 실행할 수 없는 경우 대신 oc adm inspect 명령을 실행합니다.
사전 요구 사항
-
OpenShift CLI(
oc)가 설치되어 있어야 합니다.
프로세스
클러스터에 로그인합니다.
oc login <openshift_url>
oc login <openshift_url>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 클러스터의 액세스 수준에 따라 다음 명령 중 하나를 실행합니다.
전체 클러스터에서
must-gather를 실행합니다.oc adm must-gather --image=registry.redhat.io/ansible-automation-platform-25/aap-must-gather-rhel8 --dest-dir <dest_dir>
oc adm must-gather --image=registry.redhat.io/ansible-automation-platform-25/aap-must-gather-rhel8 --dest-dir <dest_dir>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
--image는 데이터를 수집하는 이미지를 지정합니다. -
--dest-dir은 출력의 디렉터리를 지정합니다.
-
클러스터의 특정 네임스페이스에 대해
must-gather를 실행합니다.oc adm must-gather --image=registry.redhat.io/ansible-automation-platform-25/aap-must-gather-rhel8 --dest-dir <dest_dir> – /usr/bin/ns-gather <namespace>
oc adm must-gather --image=registry.redhat.io/ansible-automation-platform-25/aap-must-gather-rhel8 --dest-dir <dest_dir> – /usr/bin/ns-gather <namespace>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
- /usr/bin/ns-gather는must-gather데이터 수집을 지정된 네임스페이스로 제한합니다.
-
must-gather아카이브를 지원 케이스에 연결하려면 먼저 생성된must-gather디렉터리에서 압축 파일을 생성하고 지원 케이스에 연결합니다.예를 들어 Linux 운영 체제를 사용하는 컴퓨터에서 다음 명령을 실행하여 <
must-gather-local.5421342344627712289/>를must-gather디렉터리 이름으로 교체합니다.tar cvaf must-gather.tar.gz <must-gather.local.5421342344627712289/>
$ tar cvaf must-gather.tar.gz <must-gather.local.5421342344627712289/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow