-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(e2e-tests): Add e2e-test for lvm-localpv driver provisioning #29
Conversation
Codecov Report
@@ Coverage Diff @@
## master #29 +/- ##
======================================
Coverage 3.87% 3.87%
======================================
Files 16 16
Lines 1290 1290
======================================
Hits 50 50
Misses 1231 1231
Partials 9 9 Continue to review full report at Codecov.
|
cc: @gprasath @nsathyaseelan for review |
e2e-tests/experiments/functional/lvm-controller-high-availability/test.yml
Show resolved
Hide resolved
e2e-tests/experiments/functional/lvm-controller-high-availability/run_litmus_test.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
e2e-tests/experiments/functional/lvm-controller-high-availability/README.md
Outdated
Show resolved
Hide resolved
e2e-tests/experiments/functional/lvm-controller-high-availability/README.md
Outdated
Show resolved
Hide resolved
e2e-tests/experiments/functional/lvm-controller-high-availability/README.md
Outdated
Show resolved
Hide resolved
|
||
## Exit-Criteria | ||
|
||
- lvm-controller statefulset should be scaled up by one replica. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what will happen, if the replicas are already in HA mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it gets the initial replica count and increase it by one if schedule-able node is present. So if it is already in HA (say repplica:2) then it will scale it up to 3
- lvm-controller statefulset should be scaled up by one replica. | ||
- All the replias should be in running state. | ||
- lvm-localpv volumes should be healthy and data after scaling up controller should not be impacted. | ||
- This experiment makes one of the lvm-controller statefulset replica to go down, as a result active/master replica of lvm-controller prior to the experiment will be changed to some other remaining replica after the experiment completes. This happens because of the lease mechanism, which is being used to decide which replica will be serving as master. At a time only one replica will be master and other replica will follow the anti-affinity rules so that these replica pods will be present on different nodes only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we bringing down the master replica?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
e2e-tests/experiments/functional/lvm-controller-high-availability/README.md
Outdated
Show resolved
Hide resolved
e2e-tests/experiments/functional/lvm-controller-high-availability/test.yml
Outdated
Show resolved
Hide resolved
e2e-tests/experiments/functional/lvm-controller-high-availability/test.yml
Outdated
Show resolved
Hide resolved
e2e-tests/experiments/functional/lvm-controller-high-availability/test.yml
Outdated
Show resolved
Hide resolved
Signed-off-by: w3aman <[email protected]>
Signed-off-by: w3aman [email protected]