4.21. OADP Operator 问题


OpenShift API for Data Protection (OADP) Operator 可能会遇到它无法解决的问题。

4.21.1. OADP Operator 静默失败

OADP Operator 的 S3 存储桶可能为空,但当运行命令 oc get po -n <oadp_operator_namespace& gt; 时,您会看到 Operator 的状态为 Running。在这种情况下,Operator 被认为有静默地失败,因为它错误地报告它正在运行。

原因

这个问题是因为云凭证提供的权限不足。

解决方案

检索备份存储位置列表(BSL),并检查每个 BSL 的清单是否有凭证问题。

流程

  1. 使用 OpenShift 或 Velero 命令行界面(CLI)检索 BSLs 列表:

    1. 使用 OpenShift CLI (oc)检索 BSLs 列表:

      $ oc get backupstoragelocations.velero.io -A
    2. 使用 velero CLI 检索 BSLs 列表:

      $ velero backup-location get -n <oadp_operator_namespace>
  2. 使用上一步中的 BSLs 列表,并运行以下命令来检查每个 BSL 的清单中的错误:

    $ oc get backupstoragelocations.velero.io -n <namespace> -o yaml

    结果示例

    apiVersion: v1
    items:
    - apiVersion: velero.io/v1
      kind: BackupStorageLocation
      metadata:
        creationTimestamp: "2023-11-03T19:49:04Z"
        generation: 9703
        name: example-dpa-1
        namespace: openshift-adp-operator
        ownerReferences:
        - apiVersion: oadp.openshift.io/v1alpha1
          blockOwnerDeletion: true
          controller: true
          kind: DataProtectionApplication
          name: example-dpa
          uid: 0beeeaff-0287-4f32-bcb1-2e3c921b6e82
        resourceVersion: "24273698"
        uid: ba37cd15-cf17-4f7d-bf03-8af8655cea83
      spec:
        config:
          enableSharedConfig: "true"
          region: us-west-2
        credential:
          key: credentials
          name: cloud-credentials
        default: true
        objectStorage:
          bucket: example-oadp-operator
          prefix: example
        provider: aws
      status:
        lastValidationTime: "2023-11-10T22:06:46Z"
        message: "BackupStorageLocation \"example-dpa-1\" is unavailable: rpc
          error: code = Unknown desc = WebIdentityErr: failed to retrieve credentials\ncaused
          by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity\n\tstatus
          code: 403, request id: d3f2e099-70a0-467b-997e-ff62345e3b54"
        phase: Unavailable
    kind: List
    metadata:
      resourceVersion: ""

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat, Inc.