What steps did you take and what happened:
An annotated persistent volume claim mount volume fails to backup to a secondary storage location after successfully backing up to a primary storage location. The same backup job to the primary storage location can be performed again successfully.
$ kubectl -n
$ velero backup create backup-job-1 --include-namespace
$ velero backup create backup-job-2 --include-namespace
$ velero backup describe backup create backup-job-2 --details | grep persistentvolumeclaims
time="2020-02-04T13:50:47Z" level=info msg="Skipping item because it's already been backup." backup=velero/backup-job-2 group=v1 logSource="pkg/backup/item_backupper.go:163" name=
What did you expect to happen:
Backup persistentvolumeclaim to a second storage location after backing up to primary storage location.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
@a4nowgh, which case did you configure? Two backup-location and two snapshot-locations or two backup-locations and one snapshot-location?
In my usage, I could take 2 volume snapshots with two backup-locations (to different S3 bucket) and one snapshot-location on AWS. (Velero would create 2 snapshots in AWS EBS snapshots.)
Hey @a4nowgh would you please give us the output of:
kubectl describe backupstoragelocations?
and
kubectl describe volumesnapshotlocations?
Hello,
Below is my output:
$ kubectl describe backupstoragelocations default
Spec: Config:   Region:   us-east-1   s3ForcePathStyle: true   s3Url:   https://backupserver2.cloud.com
 Object Storage:   Bucket: bucketname Provider: aws
$ kubectl describe backupstoragelocations default
Spec: Config:   Region:   minio   s3ForcePathStyle: true   s3Url:   https://backupserver2.cloud.com
 Object Storage:   Bucket: bucketname Provider: aws
$ kubectl describe volumesnapshotlocation default
Spec:Â Config:Â Â Â Profile: default
  Region: us-east-1 Provider: velero.io/aws
$ kubectl describe volumesnapshotlocation minio
Spec:Â Config:Â Â Â Profile: minio
  Region: minio Provider: velero.io/aws
On Wednesday, February 5, 2020, 4:45:04 PM EST, Carlisia Campos <[email protected]> wrote:
Hey @a4nowgh would you please give us the output of:
kubectl describe backupstoragelocations?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
@a4nowgh couple of questions:
Wondering if this is a duplicate of #2192?
Yes, this seems to be a duplicate of #2192. I'm wondering if PR #2244(https://github.com/vmware-tanzu/velero/pull/2244) will address this issue?
On Tuesday, February 11, 2020, 3:41:30 PM EST, Steve Kriss notifications@github.com wrote:
@a4nowgh couple of questions:
Wondering if this is a duplicate of #2192?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
I'm using restic for the volume backup.
On Wednesday, February 12, 2020, 5:17:30 AM EST, [email protected] <[email protected]> wrote:
Yes, this seems to be a duplicate of #2192. I'm wondering if PR #2244(https://github.com/vmware-tanzu/velero/pull/2244) will address this issue?
On Tuesday, February 11, 2020, 3:41:30 PM EST, Steve Kriss notifications@github.com wrote:
@a4nowgh couple of questions:
Wondering if this is a duplicate of #2192?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
I would expect #2244 to fix it, yes. I'll link this issue up to that PR. Hoping to get that fix in for our upcoming release.
xref https://github.com/vmware-tanzu/velero/pull/2244#issuecomment-591446887
@jenting - any ideas on why @a4nowgh is still getting this error with v1.3.0-beta.2? I'm not sure off the top of my head. I'm going to try to reproduce as well.
@a4nowgh did you also update your restic daemonset to use the beta.2 image? kubectl -n velero set image daemonset/restic restic=velero/velero:v1.3.0-beta.2 would do that, if not.
FWIW, I was not able to reproduce this using beta.2.
From the log, my first idea is the container image is not v1.3.0-beta.2.
@a4nowgh, did you follow the v1.3.0-beta.2 release note on upgrading the velero and restic container image?
Upgrading the restic container image, in additional to the velero container image, resolved my issue. Thanks very much for the quick response!
Most helpful comment
Upgrading the restic container image, in additional to the velero container image, resolved my issue. Thanks very much for the quick response!