'ContainerCreating' でスタックしているポッドのトレース ID を収集する

"nexus-volume" または "nexus-shared" ストレージ クラスを参照する PersistentVolumeClaims を使用するポッドがスタック状態になることはまれです。 ボリュームの作成またはノードへのボリュームのアタッチで障害が発生したため、ポッドが "ContainerCreating" 状態でスタックする可能性があります。

"nexus-volume" ストレージ クラスと "nexus-shared" ストレージ クラスは、これらの問題の診断を可能にするために、ボリューム ライフサイクル操作にトレース ID を割り当てます。 この記事では、トレース ID を検索し、サポート要求に含める方法について説明します。

  1. 「Azure Operator Nexus Kubernetes クラスターへの接続」に従って、Nexus Kubernetes クラスターに接続します。

  2. スタック状態のポッドを特定します。

    kubectl get pod
    NAME               READY    STATUS              RESTARTS      AGE
    contoso-0           0/1     ContainerCreating   0             10m
    
  3. スタックしているポッドで kubectl describe <pod-name> を実行し、出力をコピーします。 この省略された例の 'contoso-0' ポッドには、3 つのパーシステントボリュームクレームがあります。 対応するすべての永続ボリュームを 'contoso-0' ポッドにアタッチできませんでした。 出力の Kubernetes イベント セクションには、ボリューム オーケストレーションエラーのエラー トレース ID が含まれています。

    kubectl describe pod contoso-0
    
    Name:             contoso-0
    Volumes:
      persistent-storage-filesystem-1:
        Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
        ClaimName:  persistent-storage-filesystem-1-contoso-0-0
        ReadOnly:   false
      persistent-storage-filesystem-1-2:
        Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
        ClaimName:  persistent-storage-filesystem-1-2-contoso-0-0
        ReadOnly:   false
      persistent-storage-filesystem-1-3:
        Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
        ClaimName:  persistent-storage-filesystem-1-3-contoso-0-0
        ReadOnly:   false
    Events:
      Type     Reason              Age               From                     Message
      ----     ------              ----              ----                     -------
      Normal   Scheduled           66s               default-scheduler        Successfully assigned scale-test/contoso-0-0 to contoso-37bb13b4-agentpool2-md-xltt4-cxjgz
      Warning  FailedAttachVolume  8s (x6 over 26s)  attachdetach-controller  AttachVolume.Attach failed for volume "pvc-605d27e1-a360-4f04-a305-dc48bf2f9e8d" : rpc error: code = Internal desc = attachment (temporarily) failed; "traceid": "tr-0000aaaa-11bb-cccc-dd22-eeeeee333333"
      Warning  FailedAttachVolume  5s (x6 over 24s)  attachdetach-controller  AttachVolume.Attach failed for volume "pvc-225ebcc2-8a0f-4f17-afa1-b7a4f2c20b7e" : rpc error: code = Internal desc = attachment (temporarily) failed; "traceid": "tr-1111bbbb-22cc-dddd-ee33-ffffff444444"
      Warning  FailedAttachVolume  5s (x6 over 24s)  attachdetach-controller  AttachVolume.Attach failed for volume "pvc-c71f748c-d97e-4aac-a1fb-cd8d7b878c22" : rpc error: code = Internal desc = attachment (temporarily) failed; "traceid": "tr-2222cccc-33dd-eeee-ff44-aaaaaa555555"
    
    
  4. Azure portal を使用してサポート 要求を発行し、kubectl describe コマンドの出力を含めます。 サポート プランの詳細については、Azure サポート プランに関するページを参照してください。