6.4. GitOps のトラブルシューティング
GitOps コントローラーに問題がある場合は、OpenShift CLI (oc) ツールを使用するか、sos レポートを実行できます。
6.4.1. oc adm inspect を使用した GitOps のデバッグ リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
OpenShift CLI (oc) を使用して GitOps をデバッグできます。
前提条件
-
ocコマンドラインツールがインストールされている。
手順
GitOps namespace にいるときに
oc adm inspectコマンドを実行します。oc adm inspect ns/openshift-gitops
$ oc adm inspect ns/openshift-gitopsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 出力例
Gathering data for ns/openshift-gitops... W0501 20:34:35.978508 57625 util.go:118] the server doesn't have a resource type egressfirewalls, skipping the inspection W0501 20:34:35.980881 57625 util.go:118] the server doesn't have a resource type egressqoses, skipping the inspection W0501 20:34:36.040664 57625 util.go:118] the server doesn't have a resource type servicemonitors, skipping the inspection Wrote inspect data to inspect.local.2673575938140296280.
Gathering data for ns/openshift-gitops... W0501 20:34:35.978508 57625 util.go:118] the server doesn't have a resource type egressfirewalls, skipping the inspection W0501 20:34:35.980881 57625 util.go:118] the server doesn't have a resource type egressqoses, skipping the inspection W0501 20:34:36.040664 57625 util.go:118] the server doesn't have a resource type servicemonitors, skipping the inspection Wrote inspect data to inspect.local.2673575938140296280.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
次のステップ
-
oc adm inspectで必要な情報が提供されなかった場合は、sos レポートを実行できます。
6.4.2. sos レポートからのデータの収集 リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
前提条件
-
sosパッケージがインストールされている。
手順
- 障害が発生したホストに root ユーザーとしてログインします。
次のコマンドを実行して、デバッグレポートの作成手順を実行します。
microshift-sos-report
$ microshift-sos-reportCopy to Clipboard Copied! Toggle word wrap Toggle overflow 出力例
Copy to Clipboard Copied! Toggle word wrap Toggle overflow