-
Notifications
You must be signed in to change notification settings - Fork 166
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
[bz:2274165] Test to verify mgr does not crash after enabling rook module #10525
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Parikshith <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: parikshithb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Parikshith <[email protected]>
Signed-off-by: Parikshith <[email protected]>
Signed-off-by: Parikshith <[email protected]>
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.
Code looks fine for me. Can you please run a validation job?
sleep=30, | ||
func=run_cmd_verify_cli_output, | ||
cmd="ceph crash ls", | ||
expected_output_lst={"mgr"}, |
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.
I think archived crashes will still be listed in the "ceph crash ls" output. The test can fail falsely if there are any existing archived mgr crashes. Instead of checking for a specific mgr, should we check for
"expected_output_lst={"HEALTH_WARN", "daemons have recently crashed"}," and fail the test if we see this message?
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.
ack, make sense. I changed to use crash ls-new
instead of crash ls
which suits here. If there was a mgr crash before it would be archived and will not be displayed in crash ls-new o/p
As per ceph docs: Archive a crash report so that it is no longer considered for the RECENT_CRASH health check and does not appear in the crash ls-new output (it will still appear in the crash ls output).
https://docs.ceph.com/en/quincy/mgr/crash/#commands
|
||
""" | ||
toolbox = pod.get_ceph_tools_pod() | ||
|
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.
you can delete the empty line
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.
removed
@tier2 | ||
@brown_squad | ||
@skipif_external_mode | ||
@skipif_ocs_version("<4.16") |
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.
the fix was backported to previous release as well
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.
done
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.
PR validation on existing cluster
Cluster Name: pbyregow-cn2
Cluster Configuration: conf/ocsci/live_deployment.yaml
PR Test Suite: tier2
PR Test Path: tests/functional/pod_and_daemons/test_mgr_enable_rook_backend_module.py
Additional Test Params:
OCP VERSION: 4.16-ga
OCS VERSION: 4.16
tested against branch: master
Signed-off-by: Parikshith <[email protected]>
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.
PR validation on existing cluster
Cluster Name: pbyregow-cn2
Cluster Configuration: conf/ocsci/live_deployment.yaml
PR Test Suite: tier2
PR Test Path: tests/functional/pod_and_daemons/test_mgr_enable_rook_backend_module.py
Additional Test Params:
OCP VERSION: 4.16-ga
OCS VERSION: 4.16
tested against branch: master
Covers bz: 2274165