-
Notifications
You must be signed in to change notification settings - Fork 7
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
Ensure non-admins have access to see relevant dataupload/datadownload/podvolumebackups/podvolumerestores stats in status progress and when complete #237
Comments
datauploads and downloads visibility for non-admins will be critical if the user has large PV's. We'll need to create objects for non-admins where the du/dd status is reflected for the non-admin. |
The proposal here is the add relevant DataUpload/DataDownload status to NAB/NAR status for enhanced visibility in case of Datamover backups. |
For instance, we can fetch the relevant PVBs via labels:
They also have ownerRefs:
|
This would be similar to how we relay information from VeleroBackup to NAB |
in a very slow scenario, how would be the workflow? something like this create backup -> backup phase in progress -> DataUpload (or PodVolumeBackup) progress to 1% -> DataUpload (or PodVolumeBackup) progress to 2% -> ... -> DataUpload (or PodVolumeBackup) progress to 100% -> backup phase complete ? In other words, Backup is not updated when DataUpload (or PodVolumeBackup) is updated, unless is a update to finished state? |
I was thinking not sure if I'm right.. but essentially a status ONLY object.. NADU ( non-admin-data-upload ) where the status is simply synced. Same for datadownload. If the nab creates a velero backup that creates du/dd objects in the protected namespace.. create the status object in the user namespace? We obviously can see in the spec that snapshotMoveData is set to true.. expect to duplicate status. |
Yeah my idea is to just add more status in NAB/NAR if a NAB datamover is created, for example, in its status it would have a list of DataUpload statuses. Is this approach valid? |
Adding to NAB status is valid for sure.. However what happens if a non-admin user has 10, 20 even 100 PV's? |
Just to summarize there are 2 approaches in play here:
|
Post scrum discussion, we will take a modified version of proposal 1 i.e. patching the NonAdminBackup object status with the progress details of
And similarly we need to do this for NonAdminRestore CR using the relevant DataDownloads and PodVolumeRestores. |
As @sseago noted, it seems we already have partial info of DataUpload/DataDownload in Backup/Restore status should we just add logic for PodVolumeBackup/PodVolumeRestore? |
Also, PodVolumeBackup/PodVolumeRestore/DataUpload/DataDownload can complete successful or not should we show something like this? filesystemBackupOperations:
podVolumeBackups:
completed: 11
failed: 1
total: 21 or just gather number of completed and failed in completed field? |
Hmm I think we wanted to show the |
@mateusoliveira43 also, I wouldn't use the name But yeah, the point about the BackupItemOperations data is that if we only need completed vs. not completed data, we already have that. If we want something more specifically geared towards the DataUpload lifecycle, we'll need different fields and we'll need to watch DataUploads and not Backup objects, since the Backup status doesn't include enough information. |
Also, if you're including DataUpload-specific information (i.e. in progress counts, etc.) you won't want to use any of the backup item operations fields, since those aren't guaranteed to include only dataupload information. For example, if we're not using datamover, just CSI -- those will refer to CSI snapshots. If a customer has custom plugins installed which have async actions, those will be included in the BackupItemOperations summary as well. |
correct as @sseago explained we need to watch and fetch the progress data from the actual dataupload objects and not from the Velero Backup object. |
alright, will also add predicate to DataUpload/DataDownload update events |
to close discussing, on NAB status we will have these 2 new fields fileSystemVolumeBackups:
inProgress: 9 # number of PodVolumeBackups related to NAB's Backup in phase InProgress
completed: 11 # number of PodVolumeBackups related to NAB's Backup in phase Completed
failed: 1 # number of PodVolumeBackups related to NAB's Backup in phase Failed
total: 21 # number of PodVolumeBackups related to NAB's Backup
# PodVolumeBackup also have phase New
dataMoverVolumeBackups:
inProgress: 7 # number of DataUploads related to NAB's Backup in phase InProgress
completed: 9 # number of DataUploads related to NAB's Backup in phase Completed
failed: 0 # number of DataUploads related to NAB's Backup in phase Failed
canceled: 1 # number of DataUploads related to NAB's Backup in phase Canceled
total: 17 # number of DataUploads related to NAB's Backup
# PodVolumeBackup also have phase New, Accepted, Prepared and Canceling similar in NAR for PodVolumeRestores and DataDownloads |
Please add Accepted, Prepared to dataMover |
Is the total number requierd? Seems easy to add all together making it reduntant info. |
last update, we will show number of total DataUploads/DataDownloads/PodVolumeBackups/PodVolumeRestores and the number of each possible phase of this objects in NAB/NAR statuses |
Ensure non-admins have access to see dataupload and datadownload stats in progress and when complete
Related to: vmware-tanzu/velero#8095
The text was updated successfully, but these errors were encountered: