Dell NativeEdge: 문제 해결을 위해 NativeEdge Orchestrator 및 Dell Automation Platform 로그 번들을 검색하는 방법

Summary: 이 문서에서는 NativeEdge Orchestrator 및 Dell Automation Platform의 문제를 해결하기 위해 로그 번들을 검색하는 방법에 대해 설명합니다.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

이 툴은 모든 NativeEdge Orchestrator 및 Dell Automation Platform Kubernetes 로그를 수집하기 위해 만들어졌습니다. 또한 기본 Kubernetes 로그를 수집하고 현재 상태의 Pod 설명을 수집합니다. 시스템 로그 및 저널 로그도 수집합니다. 수집 후에는 엔지니어링 팀에 제공할 tarball을 생성합니다.

이 툴은 NativeEdge 또는 Dell Automation Platform과 Knative 포드를 통과하고 내부의 컨테이너를 나열합니다. hzp-product-svc는 아래 예를 참조하십시오.

root@labmachine01:/nas/tools# kubectl get po -n hzp hzp-product-svc-00001-deployment-5695678c66-79zwm -o jsonpath="{.spec.containers[*].name}"
hzp-ese-svc hzp-product-svc queue-proxy hzp-iam-proxy

예를 들어, 사용자는 tarball 내에서 다음 파일 구조를 가져옵니다.

root@labmachine01:/nas/tools# tar -tf /tmp/native_edge_eo-logs_default_2023-08-30T07-13-39.750/native_edge_eo-logs_default_2023-08-30T07-13-39.750.tar.gz | grep product
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-iam-proxy.current.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-product-svc.current.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-product-svc-00001-deployment-5695678c66-79zwm.hzp-iam-proxy-init.init.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-product-svc-00001-deployment-5695678c66-79zwm.describe
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-ese-svc.previous.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/queue-proxy.current.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/queue-proxy.previous.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-ese-svc.current.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-product-svc.previous.log
./native_edge_eo-logs_default_2023-08-30T07-13-39.750/hzp/hzp-product-svc-00001-deployment-5695678c66-79zwm/hzp-iam-proxy.previous.log

따라서 이러한 파일은 다음 구조에 저장됩니다.

namespace/pod-name/namespace-container.log

사용법:
먼저 사용자는 NativeEdge Orchestrator(Dell 자동화 플랫폼) 머신에 연결하고 로그인해야 합니다.

그런 다음 루트 권한(활성화된 경우 sudo -i 또는 su)을 활성화해야 합니다.

모든 관련 로그를 수집하려면 이 문서에서 logs_pkb.zip라는 첨부 파일을 NativeEdge Orchestrator 시스템으로 다운로드해야 합니다.

아카이브의 콘텐츠를 추출합니다.

unzip logs_pkb.zip -d logs-tool

해당 디렉토리로 이동하여 스크립트를 실행합니다.

./logs.sh

실행 후 사용자에게 사용 가능한 공간에 대한 정보 메시지와 계속하라는 메시지가 표시됩니다(계속하려면 'y' 입력).

This script will access your local k3s secrets (secret values are not going to be printed).
This script will collect all logs from all pods in NativeEdge-controlled namespaces and archive it in tarball.
Please press "y" if you agree with this.
You have 69G available on your storage. Consider that logs may require to have more that 1Gb of free space.

버전 1.0-rc부터 로그 수집 툴은 NativeEdge 또는 Dell Automation Platform이 기본이 아닌 네임스페이스에 설치되어 있는지 탐지합니다. 도구에서 표준 네임스페이스를 찾을 수 없는 경우 사용자에게 유효한 Orchestrator 네임스페이스를 입력하라는 메시지가 표시됩니다. 아래 예를 참조하십시오.

Available namespaces:
- default
- nativeedge
- kube-node-lease
- kube-public
- kube-system
- longhorn-system
- metallb-system
Warning: Namespace 'hzp' not found.
Please enter the namespace containing the 'nativeedge' containers:

기본 네임스페이스 설치가 있는 경우 툴은 컬렉션 목록에 있는 네임스페이스를 표시합니다.

Namespace 'hzp' found. Logs will be collected from following namespaces:
- hzp
- kube-system
- istio-system
- knative-eventing
- knative-serving
- longhorn-system

이벤트 캡처:

툴 버전 0.9-beta부터 EdgeOrchestrator/Dell Automation Platform 이벤트 캡처에 대한 메시지가 표시됩니다.

Do you want to collect the EO events (WARNING: this may require significant space on disk)?

이렇게 하면 EdgeOrchestrator/Dell Automation Platform에서 로그 tarball로 직접 이벤트를 캡처하고 문제 해결을 개선합니다. 시스템에 충분한 공간이 있는 상태에서 EdgeOrchestrator/Dell Automation Platform 이벤트를 가져오는 것이 좋습니다.

사용자에게 추가 지침이 있는 경우 사용자는 실행하기 전에 스크립트의 사용 가능한 옵션을 확인할 수 있습니다.

./logs.sh -h

사용자는 다음을 사용하여 현재 버전을 확인할 수 있습니다.

logs.sh -v

 

Article Properties
Article Number: 000216838
Article Type: How To
Last Modified: 26 Sep 2025
Version:  12
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.