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-16464 test: improve online_rebuild_mdtest.py #15108

Merged
merged 16 commits into from
Jan 23, 2025

Conversation

daltonbohning
Copy link
Contributor

Run with a stonewall and stop ranks after half of the stonewall time so the timing is more reliable than arbitrarily sleeping for 30 seconds.

Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

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 owners.
  • 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.

@daltonbohning daltonbohning self-assigned this Sep 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

Ticket title is 'erasurecode/online_rebuild_mdtest.py:EcodOnlineRebuildMdtest.test_ec_online_rebuild_mdtest - time out waiting for mdtest after server stop'
Status is 'In Review'
Labels: 'pr_test,testp2'
https://daosio.atlassian.net/browse/DAOS-16464

@daosbuild1
Copy link
Collaborator

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

@daosbuild1
Copy link
Collaborator

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

@daltonbohning daltonbohning force-pushed the dbohning/daos-16464 branch 3 times, most recently from 872cbcc to 07ef8e7 Compare September 12, 2024 18:15
@daltonbohning daltonbohning force-pushed the dbohning/daos-16464 branch 5 times, most recently from a176256 to 4c1252a Compare December 2, 2024 17:37
Run with a stonewall and stop ranks after half of the stonewall time so
the timing is more reliable than arbitrarily sleeping for 30 seconds.

Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Dalton Bohning <[email protected]>
Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Padmanabhan <[email protected]>
@daltonbohning
Copy link
Contributor Author

daltonbohning commented Dec 20, 2024

@rpadma2 It looks to run out of space during archiving: https://build.hpdd.intel.com/blue/rest/organizations/jenkins/pipelines/daos-stack/pipelines/daos/branches/PR-15108/runs/12/nodes/809/log/?start=0
I wonder if the problem is because the engine log_mask is DEBUG by default?

It looks like many other tests use either log_mask: DEBUG,MEM=ERR or log_mask: INFO or log_mask: ERR

@rpadma2
Copy link
Contributor

rpadma2 commented Dec 20, 2024

@rpadma2 It looks to run out of space during archiving: https://build.hpdd.intel.com/blue/rest/organizations/jenkins/pipelines/daos-stack/pipelines/daos/branches/PR-15108/runs/12/nodes/809/log/?start=0 I wonder if the problem is because the engine log_mask is DEBUG by default?

It looks like many other tests use either log_mask: DEBUG,MEM=ERR or log_mask: INFO or log_mask: ERR

Yes. We can't have DEBUG log mask... It maybe an issue. Let me change it to ERR.

Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Signed-off-by: Padmanabhan <[email protected]>
Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Signed-off-by: Padmanabhan <[email protected]>
@rpadma2 rpadma2 marked this pull request as ready for review January 14, 2025 20:23
@rpadma2 rpadma2 requested review from a team as code owners January 14, 2025 20:23
shimizukko
shimizukko previously approved these changes Jan 14, 2025
Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Signed-off-by: Padmanabhan <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15108/21/execution/node/925/log

Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Signed-off-by: Padmanabhan <[email protected]>
"""
try:
result = self.execute_mdtest(mdtest_result_queue)
except (CommandFailure, DaosApiError, DaosTestError):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to catch all exceptions because we don't know what might go wrong

Suggested change
except (CommandFailure, DaosApiError, DaosTestError):
except Exception: # pylint: disable=broad-except

Copy link
Contributor

Choose a reason for hiding this comment

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

Will update it.

Copy link
Contributor

Choose a reason for hiding this comment

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

done.

Comment on lines 446 to 448
self.container = self.get_mdtest_container(self.pool)
if self.container is None:
self.fail("Container Create Failed")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default behavior of get_mdtest_container/get_container will raise an exception so we don't need to check this

Suggested change
self.container = self.get_mdtest_container(self.pool)
if self.container is None:
self.fail("Container Create Failed")
self.container = self.get_mdtest_container(self.pool)

Copy link
Contributor

Choose a reason for hiding this comment

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

Will update it.

Copy link
Contributor

Choose a reason for hiding this comment

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

done.

@rpadma2 rpadma2 requested review from phender and shimizukko January 21, 2025 22:36
@rpadma2
Copy link
Contributor

rpadma2 commented Jan 21, 2025

@daltonbohning : Can you take a look at the latest changes? If things are fine, we can move this PR to "Ready for review" state.

shimizukko
shimizukko previously approved these changes Jan 22, 2025
num_of_files_dirs: 10000000
stonewall_timer: 10
stonewall_statusfile: stoneWallingStatusFile
num_of_files_dirs: 100000009
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the last digit 9? It seems random.

Copy link
Contributor

Choose a reason for hiding this comment

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

Must be a mistake... Will fix it.

Copy link
Contributor

Choose a reason for hiding this comment

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

done.

Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

Signed-off-by: Padmanabhan <[email protected]>
Copy link
Contributor Author

@daltonbohning daltonbohning left a comment

Choose a reason for hiding this comment

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

code LGTM. Thanks!

@rpadma2 rpadma2 marked this pull request as ready for review January 22, 2025 21:29
@rpadma2 rpadma2 requested a review from a team January 22, 2025 21:31
@rpadma2
Copy link
Contributor

rpadma2 commented Jan 22, 2025

@daos-stack/daos-gatekeeper : This PR is ready for merge.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15108/23/execution/node/925/log

@daltonbohning
Copy link
Contributor Author

@rpadma2 Did you retrigger the testing? It was retriggered and failed 1 time: https://build.hpdd.intel.com/blue/organizations/jenkins/daos-stack%2Fdaos/detail/PR-15108/23/tests

@daltonbohning daltonbohning removed the request for review from a team January 23, 2025 17:12
@rpadma2
Copy link
Contributor

rpadma2 commented Jan 23, 2025

@rpadma2 Did you retrigger the testing? It was retriggered and failed 1 time: https://build.hpdd.intel.com/blue/organizations/jenkins/daos-stack%2Fdaos/detail/PR-15108/23/tests
Yes. I retriggered it. It looks like we are hitting pool destroy failure.... I am not sure whether we need to wait for the rebuild to complete before we do pool destroy, Still not a correct behavior to me...

@rpadma2
Copy link
Contributor

rpadma2 commented Jan 23, 2025

There is a ticket already related to this issue: https://daosio.atlassian.net/issues/DAOS-16737?jql=textfields%20~%20%22pool%20destroy%2A%22 . Looks like a known issue,

@rpadma2 rpadma2 requested a review from a team January 23, 2025 20:26
@daltonbohning daltonbohning merged commit fb444f2 into master Jan 23, 2025
43 of 48 checks passed
@daltonbohning daltonbohning deleted the dbohning/daos-16464 branch January 23, 2025 23:20
rpadma2 pushed a commit that referenced this pull request Jan 28, 2025
- Run with a stonewall and stop ranks after half of the stonewall time so
the timing is more reliable than arbitrarily sleeping for 30 seconds.
- Catch exceptions raised in the mdtest thread.
- Reduce logging.
- Misc refactoring improvements

Signed-off-by: Dalton Bohning <[email protected]>
Signed-off-by: Padmanabhan <[email protected]>
rpadma2 pushed a commit that referenced this pull request Jan 28, 2025
Test-tag: EcodOnlineRebuildMdtest
Test-repeat: 3
Skip-unit-tests: true
Skip-fault-injection-test: true

- Run with a stonewall and stop ranks after half of the stonewall time so
the timing is more reliable than arbitrarily sleeping for 30 seconds.
- Catch exceptions raised in the mdtest thread.
- Reduce logging.
- Misc refactoring improvements

Signed-off-by: Dalton Bohning <[email protected]>
Signed-off-by: Padmanabhan <[email protected]>
phender pushed a commit that referenced this pull request Feb 20, 2025
- Run with a stonewall and stop ranks after half of the stonewall time so
the timing is more reliable than arbitrarily sleeping for 30 seconds.
- Catch exceptions raised in the mdtest thread.
- Reduce logging.
- Misc refactoring improvements

Signed-off-by: Dalton Bohning <[email protected]>
Signed-off-by: Padmanabhan <[email protected]>
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.

5 participants