Skip to content

Problems with region endpoint URL #80

@hmuchaku

Description

@hmuchaku

We use oadp-oeprator with ROKS (managed Openshift on IBMCloud).
We failed to set-up oadp-operator with ICOS(S3 compatible IBM Cloud Object Storage)endpoint due to the following error,

  • panic: invalid region provided: jp-tok

This is because jp-tok is an IBM region name that AWS does not have.
I know that we can bypass region check with env "REGISTRY_STORAGE_S3_REGIONENDPOINT",
but the value of s3url has been ignored.
veloro setup YAML:

apiVersion: konveyor.openshift.io/v1alpha1
kind: Velero
metadata:
  name: velero
  namespace: oadp-operator
spec:
  olm_managed: true
  backup_storage_locations:
  - config: 
      region: us-east-1
      s3ForcePathStyle: true
      s3Url: 'https://s3.private.jp-tok.cloud-object-storage.appdomain.cloud'
...

oadp-default-aws-registry env:

...
          env:
            - name: REGISTRY_STORAGE
              value: s3
            - name: REGISTRY_STORAGE_S3_ACCESSKEY
              value: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - name: REGISTRY_STORAGE_S3_BUCKET
              value: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            - name: REGISTRY_STORAGE_S3_REGION
              value: jp-tok
            - name: REGISTRY_STORAGE_S3_SECRETKEY
              value: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...

We can work around this by manually adding env REGISTRY_STORAGE_S3_REGIONENDPOINT to oadp-default-aws-registry deployment, but I don't think this is recommended since this deployment controlled by an operator.
How should I handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions