HI
I am trying to install Velero on kubernates using below url
(https://github.com/heptio/velero/blob/master/docs/ibm-config.md)
command: velero install --bucket team-cicd --provider aws --secret-file ./credentials-velero --backup-location-config s3ForcePathStyle="true",s3Url=http://laas.com --namespace=dev.
following are the deploy and pod logs
deploy logs:

pod logs :

Please look into this issue, do the needful.
Hey, i have exactly the same error.
An error occurred: some backup storage locations are invalid: error getting backup store for location "default": rpc error: code = Unknown desc = unable to get all required environment variables: the following keys do not have values: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID; error getting backup store for location "velero": rpc error: code = Unknown desc = config has invalid keys [region]; valid keys are [resourceGroup storageAccount bucket]
Anyone has an idea how to edit those values?
Marc
@gkdba87 can you provide the output of velero backup-location get -o yaml?
@typhoonrr it sounds like you're missing a bunch of the necessary credentials and config for Azure. If you're using the v1.0 beta, did you follow the instructions here? https://heptio.github.io/velero/v1.0.0-beta.1/azure-config
@skriss yeah i had an issue with my secret, it's working now.

@skriss
i could try to install Velero from scratch. please do needful
@skriss
Its pointed to wrong s3URL, can i change ?
@skriss
please find updated state

@gkdba87 I'm a little confused now. Are you trying to install v0.11.0 or v1.0.0-beta.1? Also, in your latest screenshot it looks like the cloud-credentials secret does not exist in the velero namespace or doesn't have the right content. Are you still using velero install, or something else?
@skriss Now i have successfully installed Velero v1.0.0-beta.1.

@skriss Now i am trying to to create backup of namespace , using following command
### velero backup create bkp1 --include-namespaces demo1
But aim geeting errors. Can you please look into this and give suggestion.


@gkdba87 we don't have a VolumeSnapshotter for IBM - if you want to do volume backups, you'll need to use restic. You should kubectl -n velero delete volumesnapshotlocations --all to remove any configs for the VolumeSnapshotters.
@skriss Thanks for the update. Can i install With restic( Re-install velero and Install velero with Restic)
please correct me if i am wrong
yeah, you can reinstall and use the --use-restic flag. Note that you'll still need to kubectl -n velero delete volumesnapshotlocations --all afterwards - we don't yet have a way to disable those from being created. It's being worked on in #1462
root@cd:/home/venu> kubectl delete volumesnapshotlocations --all -n cicd
No resources found
is that the namespace you have velero deployed into? you can also try kubectl delete volumesnapshotlocations --all --all-namespaces -- but as long as there are none, you're good.
@skriss i have deployed velero + restic in one of our namespace. Some of pods are going to error state. and also Damon-set also not available state. I have limited CPUs and Memory for Namespace. How i can restrict Resources @ "velero install" command level . Can plese look into following error(**velero Pod is up and running fine)

Can you kubectl describe the pods that are crashing?
Right now we don't have support for adding requests/limits via velero install. You can always dump the generated YAML via velero install ... --dry-run -o yaml and manually add what you need, then kubectl apply it.
cc @nrb -- do we want to add request/limit support?
@skriss un-healthy describe pod

healthy describe pod output

I don't see anything showing What the problem is -- what about kubectl logs?
unhealthy pod logs

Heathy pod logs

Now i get yaml file using dry-run, and i will set cpu limits and resource. see wat happend?
@skriss I鈥檓 not sure on adding those flags to the install command. Wouldn鈥檛 be hard to do, but the more we add the more we鈥檙e maintaining in parallel to the Helm chart
xref #94
I'm having a similar issue.
$ velero backup-location get
WARNING: error retrieving namespace from config file: stat /Users/vihanagarwal/.config/velero/config.json: permission denied
NAME PROVIDER BUCKET/PREFIX
default aws test-cluster-velero-backups
Here are the pod logs
An error occurred: some backup storage locations are invalid: backup store for location "default" is invalid: rpc error: code = Unknown desc = AccessDenied: Access Denied
@VihanAgarwal97 did you use velero install? I would double-check that the content of the file you provided for the --credentials-file flag is a valid AWS access key and that it's been granted IAM access to your object storage bucket
Do you mean the --secret-file flag?
Here's my policy from IAM
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeVolumes",
"ec2:DescribeSnapshots",
"ec2:CreateTags",
"ec2:CreateVolume",
"ec2:CreateSnapshot",
"ec2:DeleteSnapshot"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:DeleteObject",
"s3:PutObject",
"s3:AbortMultipartUpload",
"s3:ListMultipartUploadParts"
],
"Resource": [
"arn:aws:s3:::test-cluster-velero-backups.s3.amazonaws.com/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::test-cluster-velero-backups.s3.amazonaws.com"
]
}
]
}
Here is my credentials file (double checked for validity)
[default]
aws_access_key_id=<REDACTED>
aws_secret_access_key=<REDACTED>
Install command
velero install \
--provider aws \
--bucket test-cluster-velero-backups \
--secret-file ./velero-credentials \
--backup-location-config region=${AWS_REGION} \
--snapshot-location-config region=${AWS_REGION} \
Is test-cluster-velero-backups.s3.amazonaws.com valid syntax for specifying a bucket as a resource in IAM? I think you may want this to just be test-cluster-velero-backups.
Ahh!! Thank you, that fixed it. The issue was with my terraform!
Closing as inactive; the feature request to add flags to velero install has been noted in #94.
Most helpful comment
Is
test-cluster-velero-backups.s3.amazonaws.comvalid syntax for specifying a bucket as a resource in IAM? I think you may want this to just betest-cluster-velero-backups.