-
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
Since Velero v1.12.0 and newer, backing up a non-existing namespace is now reporting as "Completed" instead of "Failure" this affects our failed alerts #7431
Comments
The change was introduced by #6320 |
Can you please explain how #6320 is related to this the issue. Our issue is that previously a Backup would 'fail' if we created a backup job on a non-existing namespace but since 1.12.0 if we run a backup on a non-existing namespace it reports as 'Completed' instead of a 'fail' or 'partial fail'. So if someone had removed a namespace but had a existing scheduled job to backup this namespace up, it would still continue to state 'completed' even though the namespace no longer exists. (since 1.12.0 we no longer get a failed alert via our prometheus) |
#6320 removed the logic to check the existence of namespaces |
…spaces" option Check the existence of the namespaces provided in the "--include-namespaces" opt ion and reports validation error if not found Fixes vmware-tanzu#7431 Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
…spaces" option Check the existence of the namespaces provided in the "--include-namespaces" opt ion and reports validation error if not found Fixes vmware-tanzu#7431 Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
…spaces" option Check the existence of the namespaces provided in the "--include-namespaces" opt ion and reports validation error if not found Fixes vmware-tanzu#7431 Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
…spaces" option Check the existence of the namespaces provided in the "--include-namespaces" opt ion and reports validation error if not found Fixes vmware-tanzu#7431 Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
Create a PR to fix this issue: #7569 |
Velero Version 1.11.1 and older output STATUS worked ok, either a Failed or PartiallyFailed running below: (see results below)
velero backup create mybackup1-11.1-and-older --include-namespaces 'nonexisting1ns' --include-resources '*' --include-cluster-resources=true
Results
###########################################################################################
Running the same command on Velero Version(s) greater than 1.12.0 (status now shows "Completed" but should show as failure because the namespace does not exist)
2 Velero Version above > 1.11.1 - Backup of a non-existing NameSpace (shows Completed should state failure BUG)
velero backup create mybackup1-12-0-and-above --include-namespaces 'nonexisting1ns'' --include-resources '*' --include-cluster-resources=true
Results
(Note the 2nd job should states a failure but shows up Completed, the Namespace does not exist but still completes)
What did you expect to happen:
The second job should also have failed or reported as PartiallyFailed like previous versions of Velero did, any version above 1.11.1 is now outputs the Status as Completed instead of failed (note: The Namespace I am backing up does not exist so should continue to fail on newer version)
The text was updated successfully, but these errors were encountered: