驗證安裝
您可以使用 Red Hat®
OpenShift® CLI (oc) 指令來驗證 WebSphere Automation 安裝及實例。
開始之前
WSA_OPERATOR_NAMESPACE=openshift-operators
WSA_INSTANCE_NAMESPACE=websphere-automation- 以叢集管理者身分登入 Red Hat OpenShift 叢集。
- 驗證 WebSphere Automation 安裝。
- 驗證 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 - 檢查
Cartridge、CartridgeRequirement及AutomationBase自訂資源的狀態。
自訂資源狀態條件
下表提供 WebSphere Automation 實例部署驗證的狀態條件相關資訊。
| 類型 | 說明 |
|---|---|
Ready |
WebSphereAutomation、 WebSphereHealth 或 WebSphereSecure 實例的整體狀態,報告所有必備元件和相依關係是否都已備妥。 如果狀態是 |
WebSphereSecureReady |
WebSphereSecure 實例的整體狀態,報告是否所有必備元件都已備妥。 如果狀態為 |
WebSphereHealthReady |
WebSphereHealth 實例的整體狀態,報告所有必備元件是否都已備妥。 如果狀態為 |
KafkaReady |
事件串流的 Kafka 實例狀態。 如果狀態為 |
KafkaResourcesReady |
KafkaTopics 及 Kafka 配置是否已備妥的狀態。 如果狀態為 |
DataStoreReady |
用於資料儲存之「Mongo 資料庫」服務的狀態。 如果狀態為 |
ActivityRecordManagerReady |
用於處理及組織資訊記錄之「活動記錄管理程式」部署的狀態。 如果狀態為 |
WebSphereAutomationAPIsReady |
WebSphereAutomation Core API 部署及服務的狀態。 如果狀態為 |
RunbookManagerReady |
Runbook Manager 部署的狀態,用於定義及管理 Runbook。 如果狀態為 |
FileStoreReady |
WebSphereSecure 或 WebSphereHealth 的檔案儲存體狀態。 如果狀態為 |
DependenciesReady |
相依關係的整體狀態 (Kafka、 DataStore、Activity Record Manager、Runbook Manager、API、密鑰及 configMaps)。 如果狀態為 |
CVEMonitorReady |
一般漏洞及風險暴露 (CVE) 監視的 CronJob 狀態。 如果狀態為 |
ServerRegistrationProcessorReady |
「伺服器登錄處理器」部署的狀態。 如果狀態為 |
VulnerabilityNotifierReady |
Vulnerability Notifier 部署的狀態。 如果狀態為 |
VulnerabilityManagerReady |
Vulnerability Manager 部署的狀態。 如果狀態為 |
WebSphereSecureAPIsReady |
WebSphereSecure API 部署及服務的狀態。 如果狀態為 |
MeteringAPIsReady |
計量 API 記號的狀態,以及使用情形度量值的部署。 如果狀態為 |
WebSphereSecureUIReady |
WebSphereSecure UI 部署、翻譯套件、角色和許可權設定以及延伸的狀態。 如果狀態為 |
FixManagerReady |
用於存取修正程式及更新項目的修正程式管理程式部署狀態。 如果狀態為 |
InstallationManagerReady |
用於安裝修正程式及更新項目的 Installation Manager 部署狀態。 如果狀態為 |
AnalysisManagerReady |
分析伺服器性能資訊的「分析管理程式」部署狀態。 如果狀態為 |
InvestigationManagerReady |
用於調查伺服器性能問題的「調查管理程式」部署狀態。 如果狀態為 |
WebSphereHealthAPIsReady |
WebSphereHealth API 部署及服務的狀態。 如果狀態為 |
WebhooksAPIsReady |
Webhook API 部署及服務的狀態。 如果狀態為 |
Reconciled |
核對處理程序的整體狀態。 在此狀態下,會報告 WebSphere Automation 自訂資源的配置驗證所發生的錯誤,或 WebSphere Automation 操作員所遇到的作業錯誤。 如果狀態為 |