验证安装

您可以使用 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 操作程序安装,请运行列出有关 WebSphere Automation 操作程序的信息的 oc 命令。 请确保已设置 WSA_OPERATOR_NAMESPACE 环境变量。

  • 验证是否存在操作程序预订。
    oc -n $WSA_OPERATOR_NAMESPACE get subscription | grep websphere-automation

    存在操作程序预订时,命令输出会列出操作程序预订信息。

    ibm-websphere-automation   ibm-websphere-automation   ibm-operator-catalog   v1.10.0
  • 验证操作程序的安装状态。
    oc -n $WSA_OPERATOR_NAMESPACE get csv | grep websphere-automation

    对于成功安装,命令输出具有 Succeeded

    ibm-websphere-automation.v1.10.0   IBM WebSphere Automation   1.10.0   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
        - status: "True"
          type: ZenExtensionsReady
        - 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: File store is ready
        status: "True"
        type: FileStoreReady
      - 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: MeteringAPIsReadyd
  • 如果已部署运行状况组件,请检查 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
      - status: "True"
        type: ZenExtensionsReady
      - 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 核心 API 部署和服务的状态。

如果状态为 False,请检查 API 部署 pod 和日志。

RunbookManagerReady

用于定义和管理 Runbook 的 Runbook Manager 部署的状态。

如果状态为 False,请检查 Runbook Manager 部署 pod 和日志。

FileStoreReady

WebSphereSecure 或 WebSphereHealth 的文件存储状态。

如果状态为 False,请检查 WebSphereSecure 和 WebSphereHealth 实例的持久卷声称。

DependenciesReady

依赖关系(Kafka、DataStore,、活动记录管理器、运行簿管理器、API、机密和 configMaps)的总体状态。

如果状态为 False,请检查依赖关系的状态。

CVEMonitorReady

用于常见漏洞和风险 (CVE) 监视的 CronJob 状态。

如果状态为 False,请检查 CronJob 和作业实例的状态。

ServerRegistrationProcessorReady

服务器注册处理器部署的状态。

如果状态为 False,请检查服务器注册处理器部署 pod 和日志。

VulnerabilityNotifierReady

漏洞通知程序部署的状态。

如果状态为 False,请检查漏洞通知程序部署 pod 和日志。

VulnerabilityManagerReady

漏洞管理器部署的状态。

如果状态为 False,请检查漏洞管理器部署 pod 和日志。

WebSphereSecureAPIsReady

WebSphereSecure API 部署和服务的状态。

如果状态为 False,请检查 WebSphereSecure API 部署 pod 和日志。

MeteringAPIsReady

使用情况度量的测量 API 令牌和部署的状态。

如果状态为 False,请检查 "测量 API" 部署 pod 和日志。

WebSphereSecureUIReady

WebSphereSecure UI 部署、翻译包、角色和权限设置以及扩展的状态。

如果状态为 False,请检查 UI 部署 pod 和日志。

FixManagerReady

用于访问修订和更新的修订管理器部署的状态。

如果状态为 False,请检查 Fix Manager 部署 pod 和日志。

InstallationManagerReady

用于安装修订和更新的 Installation Manager 部署的状态。

如果状态为 False,请检查 Installation Manager 部署 pod 和日志。

AnalysisManagerReady

用于分析服务器运行状况信息的 Analysis Manager 部署的状态。

如果状态为 False,请检查 Analysis Manager 部署 pod 和日志。

InvestigationManagerReady

用于调查服务器运行状况问题的调查管理器部署的状态。

如果状态为 False,请检查调查管理器部署 pod 和日志。

WebSphereHealthAPIsReady

WebSphereHealth API 部署和服务的状态。

如果状态为 False,请检查部署 pod 和日志。

WebhooksAPIsReady

Webhook API 部署和服务的状态。

如果状态为 False,请检查 Webhook API 部署 pod 和日志。

Reconciled

协调进程的总体状态。 在此状态下报告来自 WebSphere Automation 定制资源的配置验证的错误或来自 WebSphere Automation 操作程序迂到的操作错误的错误。

如果状态为 False,请检查协调消息和 WebSphere Automation 操作员日志。