Got conn.Authenticate error when replicated with restic based mode #1241
sulaimanyu
started this conversation in
General
Replies: 1 comment 2 replies
-
I don't have any direct experience with swift storage - but it's interesting you're able to connect with the restic cli directly. Is the OS_AUTH_URL you're using accessible from within the cluster? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created restic repo with following statements:
apiVersion: v1
kind: Secret
metadata:
name: pvc-backup
type: Opaque
stringData:
RESTIC_REPOSITORY: swift:pvc-backup:/pvc-backup
RESTIC_PASSWORD: restic1234
OS_AUTH_URL: "https://auth_url:5000/v3"
OS_PROJECT_NAME: "projectname"
OS_USER_DOMAIN_NAME: "Default"
OS_PROJECT_DOMAIN_ID: "default"
OS_USERNAME: "username"
OS_PASSWORD: "pwd"
OS_REGION_NAME: "regionOne"
and create replicationsource to replicate:
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: backup-pvc
spec:
sourcePVC: my-pvc
trigger:
schedule: "0 */4 * * *"
restic:
pruneIntervalDays: 30
repository: pvc-backup
retain:
hourly: 6
daily: 4
copyMethod: Clone
But the replication can not proceed with error:
Fatal: unable to open repository at swift:pvc-backup:/pvc-backup: conn.Authenticate: Response didn't have storage url and auth token
ERROR: failure checking existence of repository
It seems that the restic repo can not be created.
But if I use restic cli to init this repo with all the same parameters. the restic repo can be created successfully.
Any suggestion for this issue?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions