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

Refactor restoration tests with replica failure and add one #1552

Merged

Conversation

ejweber
Copy link
Contributor

@ejweber ejweber commented Oct 20, 2023

longhorn/longhorn#6905

The behavior requested in longhorn/longhorn#2103 was already added with the inclusion of the allow-volume-creation-with-degraded-availability setting. This PR adds a test with that setting on and confirms volume restoration completes. Because it is so similar to a couple of other tests, it refactors all three tests to use the same base functionality.

We should theoretically be able to backport all the way to v1.4.x, since the setting has been around that long. Haven't confirmed yet.

@ejweber ejweber requested a review from a team as a code owner October 20, 2023 21:59
@ejweber
Copy link
Contributor Author

ejweber commented Oct 20, 2023

@mergify backport v1.5.x

@mergify
Copy link

mergify bot commented Oct 20, 2023

backport v1.5.x

✅ Backports have been created

Copy link
Member

@yangchiu yangchiu left a comment

Choose a reason for hiding this comment

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

@ejweber The flake8 check failed. Could you help to fix it?

Longhorn 6905

Signed-off-by: Eric Weber <eric.weber@suse.com>
@ejweber ejweber force-pushed the 6905-test-unschedulable-replica-restoration branch from c0eca87 to f10abdb Compare October 23, 2023 15:02
Copy link
Member

@yangchiu yangchiu left a comment

Choose a reason for hiding this comment

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

LGTM

@yangchiu yangchiu merged commit cada7a2 into longhorn:master Nov 24, 2023
3 checks passed
@ejweber
Copy link
Contributor Author

ejweber commented Nov 27, 2023

We should theoretically be able to backport all the way to v1.4.x, since the setting has been around that long. Haven't confirmed yet.

This test case actually depends on longhorn/longhorn-manager#1928, which went into v1.5.0. We cannot backport it to v1.4.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants