-
Notifications
You must be signed in to change notification settings - Fork 306
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
DAOS-13047 chk: properly handle start options #12242
Conversation
Test-tag-hw-medium: Pass1Test The start options for new instance should properly overwrite old ones. It also enhances CR pass 1 functionality tests: 1. Verify DAOS checker under dryrun mode. 2. Verify DAOS checker under auto mode. 3. Verify that the DAOS checker can detect and repair the inconsistency under regular mode. 4. Fix some typo for the test tags. 5. More accurate comment for test flow. Signed-off-by: Fan Yong <[email protected]>
Remove blank line. Signed-off-by: Fan Yong <[email protected]>
Bug-tracker data: |
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. No errors found by checkpatch.
e0d5a68
to
bc4c64a
Compare
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. No errors found by checkpatch.
bc4c64a
to
da1e1e1
Compare
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. No errors found by checkpatch.
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12242/3/execution/node/1209/log |
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12242/3/execution/node/1162/log |
da1e1e1
to
ce96c87
Compare
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. No errors found by checkpatch.
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12242/4/execution/node/1212/log |
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 should change the method name test_run_checker()
to not start with test_
because it's the helper method.
src/tests/ftest/recovery/pass_1.py
Outdated
break | ||
time.sleep(5) | ||
|
||
# 6.3 Verify that the checker detected the dangling pool. |
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.
# 6.3 Verify that the checker detected the dangling pool. | |
# 6.3 Verify that the checker detected the inconsistency. |
src/tests/ftest/recovery/pass_1.py
Outdated
dmg_command.check_set_policy(reset_defaults=True) | ||
|
||
# 6.1 Start check with auto=off, | ||
# that will find the dangling pool and remove it. |
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.
# that will find the dangling pool and remove it. | |
# that will find the inconsistency and fix it. |
src/tests/ftest/recovery/pass_1.py
Outdated
1. Enable check mode. | ||
2. Run checker under dry-run mode. | ||
3. Set repair policy as interaction. | ||
4. Run checker under auto 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.
4. Run checker under auto mode. | |
4. Run checker under auto mode and verify that it detects inconsistency. |
src/tests/ftest/recovery/pass_1.py
Outdated
@@ -187,32 +220,20 @@ def test_orphan_pool_trus_ps(self): | |||
:avocado: tags=Pass1Test,test_orphan_pool_trust_ps | |||
""" | |||
errors = [] | |||
# Run step 1 to 6. | |||
# 4. Run DAOS checker under kinds of 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.
Not sure if it's a good idea to remove steps from the method description. I know it's duplicate of what you wrote in run_checker_on_orphan_pool()
, but it would make it harder to understand what this test does. If you really want to remove it, then you might want to improve the comment here. e.g.,
# 4. Run DAOS checker under kinds of mode. | |
# 1-4. Create a pool, remove the PS entry, list and verify that there's no pool, run and verify the checker behavior. |
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 steps are moved to run_checker, not removed.
src/tests/ftest/recovery/pass_1.py
Outdated
errors = self.run_checker_on_orphan_pool( | ||
policies="POOL_NONEXIST_ON_MS:CIA_TRUST_MS") | ||
|
||
# 7. Verify that the orphan pool was removed. | ||
# Verify that the orphan pool was destroyed. |
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.
Not sure if it's a good idea to remove the test steps from the method description.
ce96c87
to
79b2322
Compare
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. No errors found by checkpatch.
79b2322
to
c19d9d9
Compare
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. No errors found by checkpatch.
c19d9d9
to
24a71b8
Compare
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. No errors found by checkpatch.
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12242/7/execution/node/1237/log |
FYI - it's better to not force push after review so reviewers can see the diff |
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.
ftest LGTM
src/tests/ftest/util/dmg_utils.py
Outdated
""" | ||
|
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.
""" | |
""" |
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. No errors found by checkpatch.
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12242/8/execution/node/1267/log |
@mjmac @daltonbohning , would you please to help review the patch again? Thanks! |
Test-tag-hw-medium: Pass1Test
The start options for new instance should properly overwrite old ones. It also enhances CR pass 1 functionality tests:
Verify DAOS checker under dryrun mode.
Verify DAOS checker under auto mode.
Verify that the DAOS checker can detect and repair the inconsistency under regular mode.
Fix some typo for the test tags.
More accurate comment for test flow.
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: