-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add manual test plan for delete backup asynchronously
ref: longhorn/longhorn 8746 Signed-off-by: Jack Lin <[email protected]>
- Loading branch information
1 parent
3d992c6
commit 57b5bc6
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
docs/content/manual/release-specific/v1.8.0/test-delete-backup-asynchronously.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
--- | ||
title: Delete Backup Asynchronously | ||
--- | ||
|
||
## Related issues | ||
|
||
- https://github.com/longhorn/longhorn/issues/8746 | ||
|
||
## LEP | ||
|
||
- https://github.com/longhorn/longhorn/pull/9152 | ||
|
||
## Test Normal Case (use nfs) | ||
|
||
**Given** Longhorn cluster with 3 worker nodes. | ||
|
||
**And** Create a volume and attach it. | ||
|
||
**And** Write large data to the volume. | ||
|
||
**And** Create the first backup from the volume. | ||
|
||
**And** Write small data to the volume. | ||
|
||
**And** Create a snapshot. | ||
|
||
**Then** Delete the first backup and create second backup from the snapshot at the same time. | ||
|
||
**Verify** The second backup will be in `Pending` state with message including `waiting for backup to be deleted`. | ||
|
||
**Verify** After the first backup is deleted, second backup should be in progress and complete in the end. | ||
|
||
|
||
## Test Backup Delete Error Case (use nfs) | ||
|
||
**Given** Longhorn cluster with 3 worker nodes. | ||
|
||
**And** Create a volume and attach it. | ||
|
||
**And** Write large data to the volume. | ||
|
||
**And** Create the first backup from the volume. | ||
|
||
**And** Write small data to the volume. | ||
|
||
**And** Create a snapshot. | ||
|
||
**And** Connect to the backupstore pod and make the backup.cfg file immutable by running the command `$ chattr +i backups/backup_backup-*.cfg`. | ||
|
||
**Then** Delete the first backup and create second backup from the snapshot at the same time. | ||
|
||
**Verify** The first backup will repeatedly enter the `Deleting` and `Error` states as it attempts to retry the deletion. When in the Error state, an error message related to permissions will be displayed. | ||
|
||
**Verify** The second backup will be `InProgress` when the first backup is in `Error` state. The second backup should be complete after awhile. | ||
|
||
**Verify** After make the config mutable by running the command `$ chattr -i backups/backup_backup-*.cfg`, after a while, the second backup should be in `Deleting` again and should be deleted successfully. | ||
|
||
|
||
## Test Controller Crashes Case (use nfs) | ||
|
||
**Given** Longhorn cluster with 3 worker nodes. | ||
|
||
**And** Create a volume and attach it. | ||
|
||
**And** Write large data to the volume. | ||
|
||
**And** Create the first backup from the volume. | ||
|
||
**And** Connect to the backupstore pod and make the backup.cfg file immutable by running the command `$ chattr +i backups/backup_backup-*.cfg`. | ||
|
||
**Then** Delete the first backup. | ||
|
||
**Verify** The first backup will repeatedly enter the `Deleting` and `Error` states as it attempts to retry the deletion. When in the Error state, an error message related to permissions will be displayed. | ||
|
||
**Then** When the backup is in `Deleting` state, delete the longhorn-manager pod which is the owner of the backup. (by checking `Backup.Status.OwnerID`) | ||
|
||
**Verify** After the longhorn manager pod is recreated, the backup should turn into `Error` state with message `No deletion in progress record, retry the deletion command`. | ||
|
||
**Then** Make the config mutable by running the command `$ chattr -i backups/backup_backup-*.cfg`. | ||
|
||
**Verify** The backup should be in `Deleting` again and should be deleted successfully. |