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

Add skeleton for test_engine_crash_during_live_upgrade #1712

Merged

Conversation

chriscchien
Copy link
Contributor

Add skeleton for test_engine_crash_during_live_upgrade

ref: 7859

Which issue(s) this PR fixes:

Issue longhorn/longhorn#7859

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context

@chriscchien chriscchien requested a review from a team as a code owner February 6, 2024 08:13
innobead
innobead previously approved these changes Feb 6, 2024
Copy link
Member

@innobead innobead left a comment

Choose a reason for hiding this comment

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

LGTM, one suggestion.

manager/integration/tests/test_engine_upgrade.py Outdated Show resolved Hide resolved
yangchiu
yangchiu previously approved these changes Feb 19, 2024
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

@pytest.mark.skip(reason="TODO") # NOQA
def test_engine_crash_during_live_upgrade():
"""
1. Create and attach a volume to a worklod, then write data into the
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
1. Create and attach a volume to a worklod, then write data into the
1. Create and attach a volume to a workload, then write data into the

3. Send live upgrade request then immediately delete the related engine
manager pod/engine process (The new replicas are not in active in this
case).
4. Verify the volume will detach then reattach automatically.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
4. Verify the volume will detach then reattach automatically.
4. Verify the workload will be restarted and the volume will be reattached automatically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, thank you.

ref: 7859

Signed-off-by: Chris <chris.chien@suse.com>
@innobead innobead merged commit c80a8c0 into longhorn:master Feb 26, 2024
5 checks passed
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.

3 participants