Skip to content
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

Merged
merged 1 commit into from
Mar 8, 2021
Merged

feat(e2e-tests): Add e2e-test for lvm-localpv driver provisioning #29

merged 1 commit into from
Mar 8, 2021

Conversation

w3aman
Copy link
Contributor

@w3aman w3aman commented Mar 4, 2021

Signed-off-by: w3aman [email protected]

  • This PR adds e2e-test for
    1. lvm-localpv driver provisioning
    2. lvm-controller high availability

@codecov-io
Copy link

Codecov Report

Merging #29 (df2249e) into master (a7c1102) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7c1102...df2249e. Read the comment docs.

@w3aman
Copy link
Contributor Author

w3aman commented Mar 4, 2021

cc: @gprasath @nsathyaseelan for review

Copy link
Contributor

@nsathyaseelan nsathyaseelan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@w3aman w3aman requested a review from gprasath March 6, 2021 05:44

## Exit-Criteria

- lvm-controller statefulset should be scaled up by one replica.
Copy link
Member

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

Copy link
Contributor Author

@w3aman w3aman Mar 8, 2021

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.
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

e2e-tests/experiments/lvm-localpv-provisioner/README.md Outdated Show resolved Hide resolved
@gprasath gprasath merged commit e96aa86 into openebs:master Mar 8, 2021
@w3aman w3aman added e2e/lvm-localpv e2e for lvm-localpv feature labels Mar 8, 2021
@pawanpraka1 pawanpraka1 added this to the v0.3 milestone Mar 15, 2021
@w3aman w3aman deleted the lvm_provisioner branch April 16, 2021 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e/lvm-localpv e2e for lvm-localpv feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants