Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kopia backup failed in Azure if "AZURE_CLOUD_NAME" exists in credential file #5505

Closed
ywk253100 opened this issue Oct 27, 2022 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@ywk253100
Copy link
Contributor

Velero is installed on Azure with the credential file as follows:

AZURE_SUBSCRIPTION_ID=xxx
AZURE_TENANT_ID=xxx
AZURE_CLIENT_ID=xxx
AZURE_CLIENT_SECRET=xxx
AZURE_RESOURCE_GROUP=xxx
#AZURE_CLOUD_NAME=AzurePublicCloud

Do the first backup for the workload in namespace 1 with Kopia, the backup is successful, but the second backup for the workload in another namespace 2 will fail, the backup repository report the following error:

yinw@yinw-a02 tests % kubectl -n velero get backuprepository default-default-kopia-zjwrg -o yaml
apiVersion: velero.io/v1
kind: BackupRepository
metadata:
  creationTimestamp: "2022-10-27T08:54:09Z"
  generateName: default-default-kopia-
  generation: 4
  labels:
    velero.io/repository-type: kopia
    velero.io/storage-location: default
    velero.io/volume-namespace: default
  name: default-default-kopia-zjwrg
  namespace: velero
  resourceVersion: "111851"
  uid: 3a15cb09-2d9e-40bf-a786-d835b164432d
spec:
  backupStorageLocation: default
  maintenanceFrequency: 1h0m0s
  repositoryType: kopia
  resticIdentifier: azure:velero:/restic/default
  volumeNamespace: default
status:
  message: 'error to init backup repo: error to connect to storage: unable to list
    from the bucket: Get "https://yinwstorageaccount01.azurepubliccloud/velero?comp=list&include=metadata&prefix=kopia%2Fdefault%2Fkopia-azure-storage-initializing-1666860979301866646&restype=container":
    dial tcp: lookup yinwstorageaccount01.AzurePublicCloud on 10.0.0.10:53: no such
    host'
  phase: NotReady

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

  • 👍 for "I would like to see this bug fixed as soon as possible"
  • 👎 for "There are more important bugs to focus on right now"
@ywk253100 ywk253100 added the Bug label Oct 27, 2022
@ywk253100 ywk253100 added this to the 1.10 milestone Oct 27, 2022
@Lyndon-Li
Copy link
Contributor

fixed by #5512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants