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

DAOS-11736 test: CR Pass 2 - Dangling pool map test #12517

Merged
merged 13 commits into from
Aug 2, 2023

Conversation

shimizukko
Copy link
Contributor

  1. Create a pool.
  2. Stop servers.
  3. Manually remove /mnt/daos0/<pool_uuid>/vos-0 from rank 0 node.
  4. Enable and start the checker.
  5. Query the checker and verify that the issue was fixed. i.e., Current status is COMPLETED.
  6. Disable the checker.
  7. Verify that the pool has one less target.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_dangling_pool_map
Required-githooks: true

Before requesting gatekeeper:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate watchers.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

1. Create a pool.
2. Stop servers.
3. Manually remove /mnt/daos0/<pool_uuid>/vos-0 from rank 0 node.
4. Enable and start the checker.
5. Query the checker and verify that the issue was fixed. i.e., Current status is COMPLETED.
6. Disable the checker.
7. Verify that the pool has one less target.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_dangling_pool_map
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
@github-actions
Copy link

github-actions bot commented Jun 24, 2023

Bug-tracker data:
Ticket title is 'Pass 2 Automate: No storage is allocated to engine - Dangling pool map'
Status is 'In Review'
https://daosio.atlassian.net/browse/DAOS-11736

Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_dangling_pool_map
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_dangling_pool_map
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-12517/4/testReport/

@shimizukko
Copy link
Contributor Author

Checker isn’t detecting/fixing the issue.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-12517/5/testReport/

… shard

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@shimizukko shimizukko marked this pull request as ready for review July 6, 2023 06:27
@shimizukko shimizukko requested a review from a team as a code owner July 6, 2023 06:27

# 3. Manually remove /mnt/daos0/<pool_uuid>/vos-0 from rank 0 node.
rank_0_host = NodeSet(self.server_managers[0].get_host(0))
rm_cmd = f"sudo rm /mnt/daos0/{pool.uuid.lower()}/vos-0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of hardcoding /mnt/daos0, we should do something like:

self.server_managers[0].get_config_value("scm_mount")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks.

Comment on lines 273 to 280
total_targets = query_out["response"]["total_targets"]
active_targets = query_out["response"]["active_targets"]
diff = total_targets - active_targets
if diff != 1:
expected_targets = total_targets - 1
msg = (f"Unexpected number of active targets! Expected = {expected_targets}; "
f"Actual = {active_targets}")
errors.append(msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

minor - recommend making this check more clear

Suggested change
total_targets = query_out["response"]["total_targets"]
active_targets = query_out["response"]["active_targets"]
diff = total_targets - active_targets
if diff != 1:
expected_targets = total_targets - 1
msg = (f"Unexpected number of active targets! Expected = {expected_targets}; "
f"Actual = {active_targets}")
errors.append(msg)
total_targets = query_out["response"]["total_targets"]
active_targets = query_out["response"]["active_targets"]
expected_targets = total_targets - 1
if active_targets != expected_targets:
msg = (f"Unexpected number of active targets! Expected = {expected_targets}; "
f"Actual = {active_targets}")
errors.append(msg)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Add checker restart logic in case checker doesn't detect fault.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Test-repeat: 5
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12517/7/execution/node/772/log

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Test-repeat: 5
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Test-repeat: 5
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@shimizukko shimizukko requested a review from daltonbohning July 16, 2023 01:13
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Test-repeat: 6
Required-githooks: true
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-12517/12/testReport/

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Test-repeat: 7
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pool_membership
Test-repeat: 7
Required-githooks: true
Signed-off-by: Makito Kano <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@shimizukko shimizukko requested a review from daltonbohning July 28, 2023 23:36
@shimizukko shimizukko requested a review from a team August 2, 2023 01:08
@daltonbohning daltonbohning merged commit 448373a into feature/cat_recovery Aug 2, 2023
@daltonbohning daltonbohning deleted the makito/DAOS-11736 branch August 2, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants