-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
After upgrade to 1.15, volumes are not excluded but PVC's are, with the exclude label set #8510
Comments
Could you give more information about your scenario? |
Thanks @blackpiglet , sorry for the delay (vacation + release work). |
I've attached the BTW just realized where I had seen your avatar before. Nice! |
Lines 645 to 661 in 200435b
IMO, this is related to the v1.15.0 introduced the ItemBlock, which is used to support parallel backup. In your scenario, the Pods and PVCs have the excluded label, and the PVs don't. |
@blackpiglet This code is only related to running hooks (the ItemBlock change was that we run pre-hooks, then call BackupItem on each item in the block, then run post hooks). So the excluding of items should be handled within the BackupItem func as before. I don't think any of that changed as part of the ItemBlock work, but there may have been some other 1.5 work that modified the way the exclude filtering is done. |
@blackpiglet I think I see what's happening, though. It is related to the ItemBlock change but not due to the code quoted above. In the scenario here, the PVC has I think the fix here is to move that I'll reassign this to myself and get a fix out soon. |
@blackpiglet @jsilvela #8572 should fix the issue. I haven't tested the fix yet -- I need to rebuild my cluster tomorrow and then I'll test the change and report back. |
What steps did you take and what happened:
This has been detected as a regression in our automated test suite after upgrading from 1.14 to 1.15.
We have a set of pods with their PVCs, some of which we label with
velero.io/exclude-from-backup=true
.Since the upgrade to 1.15, all the volumes are being backed up, even those for the annotated PVCs.
What did you expect to happen:
The volumes corresponding to PVCs with the
velero.io/exclude-from-backup=true
should not have been backed up.The following information will help us better understand what's going on:
From the velero logs, we can see that the PVC
cluster-velero-e2e-3
is being excluded.However, the corresponding volumes are being backed up.
And in the
backup describe
we can see there are 6 volumes, where there should only be 2:Anything else you would like to add:
Environment:
velero version
): 1.15.0 (plus AWS Plugin v1.11.0)velero client config get features
):features: <NOT SET>
kubectl version
): 1.28 through 1.31/etc/os-release
):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.
The text was updated successfully, but these errors were encountered: