-
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.
Merge pull request #1522 from ejweber/3823-disk-anti-affinity
Add manual tests and automated skeletons for Replica Disk Soft Anti-Affinity
- Loading branch information
Showing
2 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
.../content/manual/release-specific/v1.6.0/test-replica-disk-soft-anti-affinity.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,63 @@ | ||
--- | ||
title: Test Replica Disk Soft Anti-Affinity | ||
--- | ||
|
||
## Related issue | ||
|
||
https://github.com/longhorn/longhorn/issues/3823 | ||
|
||
## Test initial behavior of global Replica Disk Soft Anti-Affinity setting | ||
|
||
**Given** A newly created Longhorn cluster | ||
|
||
**Then** `Replica Zone Disk Anti-Affinity` shows as `false` in the UI | ||
|
||
*And* the `replica-soft-anti-affinity` setting shows `false` with kubectl | ||
|
||
## Test initial behavior of global Replica Disk Soft Anti-Affinity setting after upgrade | ||
|
||
**Given** A newly upgraded Longhorn cluster | ||
|
||
**Then** `Replica Zone Disk Anti-Affinity` shows as `false` in the UI | ||
|
||
*And* the `replica-soft-anti-affinity` shows `false` with kubectl | ||
|
||
## Test behavior of volume Replica Disk Soft Anti-Affinity setting | ||
|
||
**Given** A newly created Longhorn cluster | ||
|
||
**When** Create a volume | ||
|
||
**Then** The UI shows `Replica Disk Soft Anti Affinity: ignored` on the volume details page | ||
|
||
*And* `volume.spec.replicaDiskSoftAntiAffinity` shows `ignored` with kubectl | ||
|
||
**When** The `Update Replica Disk Soft Anti Affinity` operation is used on the UI volume details page to change `Replica | ||
Disk Soft Anti-Affinity` to `enabled` | ||
|
||
**Then** The UI shows `Replica Disk Soft Anti Affinity: enabled` on the volume details page | ||
|
||
*And* `volume.spec.replicaDiskSoftAntiAffinity` shows `enabled` with kubectl | ||
|
||
**When** The `Update Replica Disk Soft Anti Affinity` batch operation is used on the UI volumes page to change `Replica | ||
Disk Soft Anti-Affinity` to `disabled` | ||
|
||
**Then** The UI shows `Replica Disk Soft Anti Affinity: disabled` on the volume details page | ||
|
||
*And* `volume.spec.replicaDiskSoftAntiAffinity` shows `disabled` with kubectl | ||
|
||
## Test initial behavior of volume Replica Disk Soft Anti-Affinity setting after upgrade | ||
|
||
**Given** An outdated Longhorn cluster with at least one volume | ||
|
||
**When** The cluster is upgraded | ||
|
||
**Then** The UI shows `Replica Disk Soft Anti Affinity: ignored` on the volume details page | ||
|
||
*And* `volume.spec.replicaDiskSoftAntiAffinity` shows `ignored` with kubectl | ||
|
||
## Test effect of Replica Disk Soft Anti-Affinity on replica scheduling | ||
|
||
If an implementation of test_global_disk_soft_anti_affinity hasn't merged, follow its skeleton manually | ||
|
||
If an implementation of test_volume_disk_soft_anti_affinity hasn't merged, follow its skeleton manually |
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