1.7. Operator アップグレードに関する問題のトラブルシューティング


このセクションの手順に従って、RHACS Operator のアップグレード関連の問題を調査して解決します。

1.7.1. Central DB をスケジュールできない

アップグレード中に失敗した Central DB Pod のトラブルシューティングを行うには、次の手順に従ってください。

  1. central-db Pod のステータスを確認します。

    $ oc -n <namespace> get pod -l app=central-db 
    1
    1
    Kubernetes を使用する場合は、oc の代わりに kubectl を入力します。
  2. Pod のステータスが Pending の場合は、describe コマンドを使用して詳細を取得します。

    $ oc -n <namespace> describe po/<central-db-pod-name> 
    1
    1
    Kubernetes を使用する場合は、oc の代わりに kubectl を入力します。
  3. FailedScheduling 警告メッセージが表示される場合があります。

    Type     Reason            Age   From               Message
    ----     ------            ----  ----               -------
    Warning  FailedScheduling  54s   default-scheduler  0/7 nodes are available: 1 Insufficient memory, 3 node(s) had untolerated taint {node-role.kubernetes.io/master: }, 4 Insufficient cpu. preemption: 0/7 nodes are available: 3 Preemption is not helpful for scheduling, 4 No preemption victims found for incoming pod.
  4. この警告メッセージは、スケジュールされたノードに Pod のリソース要件に対応するのに十分なメモリーがないことを示唆しています。小規模な環境の場合は、ノード上のリソースを増やすか、データベースをサポートできるより大きなノードを追加することを検討してください。

    それ以外の場合は、central db resources の下のカスタムリソースで、central-db Pod のリソース要件を減らすことを検討してください。ただし、推奨される最小リソースよりも少ないリソースで中央を実行すると、RHACS のパフォーマンスが低下する可能性があります。

1.7.2. Central クラスターまたはセキュアなクラスターのデプロイに失敗する

RHACS Operator が次の場合:

  • Central クラスターまたはセキュアなクラスターのデプロイに失敗します。
  • CR の変更を実際のリソースに適用できません。

問題を見つけるには、カスタムリソースの条件を確認する必要があります。

  • Central の場合は、次のコマンドを実行して条件を確認します。

    $ oc -n rhacs-operator describe centrals.platform.stackrox.io 
    1
    1
    Kubernetes を使用する場合は、oc の代わりに kubectl を入力します。
  • セキュアなクラスターの場合は、次のコマンドを実行して状態を確認します。

    $ oc -n rhacs-operator describe securedclusters.platform.stackrox.io 
    1
    1
    Kubernetes を使用する場合は、oc の代わりに kubectl を入力します。

条件出力から設定エラーを特定できます。

出力例

 Conditions:
    Last Transition Time:  2023-04-19T10:49:57Z
    Status:                False
    Type:                  Deployed
    Last Transition Time:  2023-04-19T10:49:57Z
    Status:                True
    Type:                  Initialized
    Last Transition Time:  2023-04-19T10:59:10Z
    Message:               Deployment.apps "central" is invalid: spec.template.spec.containers[0].resources.requests: Invalid value: "50": must be less than or equal to cpu limit
    Reason:                ReconcileError
    Status:                True
    Type:                  Irreconcilable
    Last Transition Time:  2023-04-19T10:49:57Z
    Message:               No proxy configuration is desired
    Reason:                NoProxyConfig
    Status:                False
    Type:                  ProxyConfigFailed
    Last Transition Time:  2023-04-19T10:49:57Z
    Message:               Deployment.apps "central" is invalid: spec.template.spec.containers[0].resources.requests: Invalid value: "50": must be less than or equal to cpu limit
    Reason:                InstallError
    Status:                True
    Type:                  ReleaseFailed

さらに、RHACS Pod のログを表示して、問題に関する詳細情報を見つけることができます。次のコマンドを実行してログを表示します。

oc -n rhacs-operator logs deploy/rhacs-operator-controller-manager manager 
1
1
Kubernetes を使用する場合は、oc の代わりに kubectl を入力します。
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る