驗證安裝

您可以使用 Red Hat® OpenShift® CLI (oc) 指令來驗證 WebSphere Automation 安裝及實例。

開始之前

設定 WebSphere Automation 操作器及實例名稱空間的環境變數。 這些值可能相同,也可能不同。 例如,在 Red Hat OpenShift 主控台進行安裝的預設步驟使用下列名稱空間:
WSA_OPERATOR_NAMESPACE=openshift-operators
WSA_INSTANCE_NAMESPACE=websphere-automation
  1. 以叢集管理者身分登入 Red Hat OpenShift 叢集。
  2. 驗證 WebSphere Automation 安裝
  3. 驗證 WebSphere Automation 實例

如需 WebSphere Automation 實例部署驗證的狀態條件相關資訊,請參閱 自訂資源狀態條件

驗證 WebSphere Automation 安裝

若要驗證 WebSphere Automation 操作器安裝,請執行 oc 指令,其中列出 WebSphere Automation 操作器的相關資訊。 請確定已設定 WSA_OPERATOR_NAMESPACE 環境變數。

  • 驗證是否存在操作器訂閱。
    oc -n $WSA_OPERATOR_NAMESPACE get subscription | grep websphere-automation

    存在操作器訂閱時,指令輸出會列出操作器訂閱資訊。

    ibm-websphere-automation   ibm-websphere-automation   ibm-operator-catalog   v1.6.4
  • 驗證該操作器的安裝狀態。
    oc -n $WSA_OPERATOR_NAMESPACE get csv | grep websphere-automation

    指令輸出具有 Succeeded,以順利安裝。

    ibm-websphere-automation.v1.6.4   IBM WebSphere Automation   1.6.4   Succeeded

驗證 WebSphere Automation 實例

若要驗證 WebSphere Automation 實例部署,請執行列出自訂資源狀態的 oc 指令。 請務必設定 WSA_INSTANCE_NAMESPACE 環境變數。 如需狀態條件的相關資訊,請參閱 自訂資源狀態條件

  • 檢查 WebSphereAutomation 自訂資源的狀態。
    oc -n $WSA_INSTANCE_NAMESPACE describe websphereautomation

    驗證是否所有狀態條件都為 True

    Status:
      Conditions:
        Message:  All prerequisites and installed components are ready
        Status:   True
        Type:     Ready
        Status:   True
        Type:     OperandRequestReady
        Status:   True
        Type:     PlatformUIReady
        Message:  Network policies are ready
        Status:   True
        Type:     NetworkPoliciesReady
        Message:  Kafka cluster is ready
        Status:   True
        Type:     KafkaReady
        Message:  Kafka resources are ready
        Status:   True
        Type:     KafkaResourcesReady
        Message:  Data store is ready
        Status:   True
        Type:     DataStoreReady
        Status:   True
        Type:     ActivityRecordManagerReady
        Status:   True
        Type:     WebSphereAutomationAPIsReady
        Message:  All prerequisites and WebSphere Secure components are ready
        Status:   True
        Type:     WebSphereSecureReady
        Message:  All prerequisites and WebSphere Health components are ready
        Status:   True
        Type:     WebSphereHealthReady
        Status:   True
        Type:     RunbookManagerReady
        Message:  All updates to WebSphereAutomation instance have been processed
        Status:   True
        Type:     Reconciled
  • 檢查 WebSphereSecure 自訂資源的狀態。
    oc -n $WSA_INSTANCE_NAMESPACE describe webspheresecure

    驗證是否所有狀態條件都為 True

    Status:
      Conditions:
        Message:  All prerequisites and WebSphere Secure components are ready
        Status:   True
        Type:     Ready
        Message:  Kafka cluster is ready
        Status:   True
        Type:     KafkaReady
        Message:  Data store is ready
        Status:   True
        Type:     DataStoreReady
        Message:  Kafka resources are ready
        Status:   True
        Type:     KafkaResourcesReady
        Message:  Dependencies are ready
        Status:   True
        Type:     DependenciesReady
        Status:   True
        Type:     CVEMonitorReady
        Status:   True
        Type:     ServerRegistrationProcessorReady
        Status:   True
        Type:     VulnerabilityNotifierReady
        Status:   True
        Type:     VulnerabilityManagerReady
        Status:   True
        Type:     WebSphereSecureAPIsReady
        Status:   True
        Type:     MeteringAPIsReady
        Status:   True
        Type:     WebSphereSecureUIReady
        Message:  All updates to WebSphereSecure instance have been processed
        Status:   True
        Type:     Reconciled
  • 如果已部署性能元件,請檢查 WebSphereHealth 自訂資源的狀態。
    oc -n $WSA_INSTANCE_NAMESPACE describe webspherehealth

    驗證是否所有狀態條件都為 True

    Status:
      Conditions:
        Message:  All prerequisites and WebSphere Health components are ready
        Status:   True
        Type:     Ready
        Message:  File store is ready
        Status:   True
        Type:     FileStoreReady
        Message:  Kafka cluster is ready
        Status:   True
        Type:     KafkaReady
        Message:  Dependencies are ready
        Status:   True
        Type:     DependenciesReady
        Message:  Data store is ready
        Status:   True
        Type:     DataStoreReady
        Message:  Kafka resources are ready
        Status:   True
        Type:     KafkaResourcesReady
        Status:   True
        Type:     InvestigationManagerReady
        Status:   True
        Type:     AnalysisManagerReady
        Status:   True
        Type:     WebSphereHealthAPIsReady
        Status:   True
        Type:     WebhooksAPIsReady
        Message:  All updates to WebSphereHealth instance have been processed
        Status:   True
        Type:     Reconciled
  • 檢查 CartridgeCartridgeRequirementAutomationBase 自訂資源的狀態。

自訂資源狀態條件

下表提供 WebSphere Automation 實例部署驗證的狀態條件相關資訊。

表 1. 狀態條件
類型 說明
Ready

WebSphereAutomation、 WebSphereHealth 或 WebSphereSecure 實例的整體狀態,報告所有必備元件和相依關係是否都已備妥。

如果狀態是 False,請檢查其他元件是否有錯誤。

WebSphereSecureReady

WebSphereSecure 實例的整體狀態,報告是否所有必備元件都已備妥。

如果狀態為 False,請檢查 WebSphereSecure 實例是否有錯誤。

WebSphereHealthReady

WebSphereHealth 實例的整體狀態,報告所有必備元件是否都已備妥。

如果狀態為 False,請檢查 WebSphereHealth 實例是否有錯誤。

KafkaReady

事件串流的 Kafka 實例狀態。

如果狀態為 False,請檢查 Kafka 實例及 IBM Events Stream 操作器日誌的狀態。

KafkaResourcesReady

KafkaTopics 及 Kafka 配置是否已備妥的狀態。

如果狀態為 False,請檢查 IBM Events Stream 操作器日誌 KafkaTopic 實例。

DataStoreReady

用於資料儲存之「Mongo 資料庫」服務的狀態。

如果狀態為 False,請檢查 Mongo StatefulSet Pod 及日誌。

ActivityRecordManagerReady

用於處理及組織資訊記錄之「活動記錄管理程式」部署的狀態。

如果狀態為 False,請檢查 Activity Record Manager 部署 Pod 和日誌。

WebSphereAutomationAPIsReady

WebSphereAutomation Core API 部署及服務的狀態。

如果狀態為 False,請檢查 API 部署 Pod 及日誌。

RunbookManagerReady

Runbook Manager 部署的狀態,用於定義及管理 Runbook。

如果狀態為 False,請檢查 Runbook Manager 部署 Pod 及日誌。

FileStoreReady

WebSphereSecure 或 WebSphereHealth 的檔案儲存體狀態。

如果狀態為 False,請檢查 WebSphereSecure and WebSphereHealth 實例的持續性磁區要求。

DependenciesReady

相依關係的整體狀態 (Kafka、 DataStore、Activity Record Manager、Runbook Manager、API、密鑰及 configMaps)。

如果狀態為 False,請檢查相依關係的狀態。

CVEMonitorReady

一般漏洞及風險暴露 (CVE) 監視的 CronJob 狀態。

如果狀態為 False,請檢查 CronJob 及「工作」實例的狀態。

ServerRegistrationProcessorReady

「伺服器登錄處理器」部署的狀態。

如果狀態為 False,請檢查「伺服器登錄處理器」部署 Pod 及日誌。

VulnerabilityNotifierReady

Vulnerability Notifier 部署的狀態。

如果狀態為 False,請檢查 Vulnerability Notifier 部署 Pod 及日誌。

VulnerabilityManagerReady

Vulnerability Manager 部署的狀態。

如果狀態為 False,請檢查 Vulnerability Manager 部署 Pod 及日誌。

WebSphereSecureAPIsReady

WebSphereSecure API 部署及服務的狀態。

如果狀態為 False,請檢查 WebSphereSecure API 部署 Pod 及日誌。

MeteringAPIsReady

計量 API 記號的狀態,以及使用情形度量值的部署。

如果狀態為 False,請檢查 Metering API 部署 Pod 及日誌。

WebSphereSecureUIReady

WebSphereSecure UI 部署、翻譯套件、角色和許可權設定以及延伸的狀態。

如果狀態為 False,請檢查使用者介面部署 Pod 及日誌。

FixManagerReady

用於存取修正程式及更新項目的修正程式管理程式部署狀態。

如果狀態為 False,請檢查 Fix Manager 部署 Pod 及日誌。

InstallationManagerReady

用於安裝修正程式及更新項目的 Installation Manager 部署狀態。

如果狀態為 False,請檢查 Installation Manager 部署 Pod 及日誌。

AnalysisManagerReady

分析伺服器性能資訊的「分析管理程式」部署狀態。

如果狀態為 False,請檢查 Analysis Manager 部署 Pod 和日誌。

InvestigationManagerReady

用於調查伺服器性能問題的「調查管理程式」部署狀態。

如果狀態為 False,請檢查 Investigation Manager 部署 Pod 及日誌。

WebSphereHealthAPIsReady

WebSphereHealth API 部署及服務的狀態。

如果狀態為 False,請檢查部署 Pod 及日誌。

WebhooksAPIsReady

Webhook API 部署及服務的狀態。

如果狀態為 False,請檢查 Webhook API 部署 Pod 及日誌。

Reconciled

核對處理程序的整體狀態。 在此狀態下,會報告 WebSphere Automation 自訂資源的配置驗證所發生的錯誤,或 WebSphere Automation 操作員所遇到的作業錯誤。

如果狀態為 False,請檢查核對訊息及 WebSphere Automation 操作員日誌。