Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Done
-
1.6.0
-
None
-
Vanila kubernetes on Flatcar worker
NetApp StorageGrid S3 API
Description
We use NetApp StorageGrid with S3 API (very compatible to AWS). Minio client (mc) In the docket Image "percona/percona-xtradb-cluster-operator:1.6.0-pxc8.0-backup" does not add this storage correctly.
Using mc from image
- run image percona-xtradb-cluster-operator:1.6.0-pxc8.0-backup on kubernetes
- Attach to pod with shell
- get mc information
- mc --version
- mc version DEVELOPMENT.GOGET
- Run mc to add destination like done in "/usr/bin/run_backup.sh"
- mc C /tmp/mc config host add dest "${ENDPOINT:-https://s3.amazonaws.com}" "$ACCESS_KEY_ID" "$SECRET_ACCESS_KEY"
- Getting error
mc: <ERROR> Unable to initialize new config from the provided credentials. Access Denied.
- run mc with parameter works
- mc
C /tmp/mc config host add dest "${ENDPOINT:https://s3.amazonaws.com}" "$ACCESS_KEY_ID" "$SECRET_ACCESS_KEY" --api="s3v4"
- mc
- result:
- Added `dest` successfully.
Using new mc (brew) on MacOS workstation
- get mc information
- mc -v
-
- mc version RELEASE.2020-11-25T23-04-07Z
- Run same command without parameters
- mc
C /tmp/mc config host add dest "${ENDPOINT:https://s3.amazonaws.com}" "$ACCESS_KEY_ID" "$SECRET_ACCESS_KEY"
- mc
- Result (success)
- Added `dest` successfully.
It seems you use older version from minio-client.