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
[BUG] Volume UI displays only the last backup when using the recurring job #2997
Comments
@smallteeths Do you know if the snapshot chain graph and the table of the snapshots are getting data from the same source? We are wondering if this problem is because of UI parsing the timestamp differently or if we need to fix it from the backend. |
@PhanLe1010 as far I can tell, there is only one source, because I have only one minio backup server configured on Longhorn settings. |
@PhanLe1010 ok. I was suspicious that it was about the other issue, because of mention of the timestamp. |
For each recurring backup job, Longhorn will retain the last snapshot created by this job after each backup creation is complete: This may work as expected. @PhanLe1010 Can you double-check this feature? |
@shuo-wu |
Thanks @shuo-wu. I just tried the provided reproducing steps and look at the code. Yeah, this is working as expected. @mfbrj The snapshot chain in the volume detail page displays all existing snapshots of a volume (not all existing backups). If a snapshot has corresponding backup, the color of the snapshot changed to green. Users need to head to backup tap to see all existing backups. |
Ok @PhanLe1010 but why the chain displays only the last backup, even if there are other snapshots with corresponding backup? The chain should display all valid snapshots that have backups, to make easy the restore process in maintenance mode from UI. |
Okay, after discuss internally, we should improve this to make the Snapshots and Backups list chain inside the Volume page consistent with the Backup page. |
We'll fix it on the backend side. |
Validation - Passed Verified with master-head images. Behavior expectations:
Example of a volume with 4 backups: |
@kaxing Did you also test the backups done by Recurring Jobs? |
@mantissahz saw you have the PR, but where is it? |
just created it, longhorn/longhorn-manager#1965 |
Pre Ready-For-Testing Checklist
|
This has a new setting introduced and no immediate need to fix it in the maintained release branches, so decided to not backport this to 1.5.x and 1.4.x. |
Verified on master-head 20231213
The test steps
Result Passed
|
Describe the bug
Volume UI is displaying only the last backup
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Volume UI displays 2 or more backups, within retain range.
Log
Environment:
Additional context
Wrong behaviour:
Wrong behaviour:
Right behaviour:
The text was updated successfully, but these errors were encountered: