Skip to content

qa/cephfs: improvements for "mds fail" and "fs fail"#57492

Merged
rishabh-d-dave merged 4 commits intoceph:mainfrom
rishabh-d-dave:qa-fs-mds-fail-improve
Jul 11, 2024
Merged

qa/cephfs: improvements for "mds fail" and "fs fail"#57492
rishabh-d-dave merged 4 commits intoceph:mainfrom
rishabh-d-dave:qa-fs-mds-fail-improve

Conversation

@rishabh-d-dave
Copy link
Contributor

@rishabh-d-dave rishabh-d-dave commented May 16, 2024

NOTE: Originally part of PR #57333 but these commits are moved here to keep only inter-dependent bug fixes in it.

First couple of commits on this PR branch are kept here for since latter commits depend on them. They'll vanish when this PR is rebased on latest main after merging of PR #57333.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@rishabh-d-dave rishabh-d-dave requested review from a team and vshankar May 16, 2024 06:06
@rishabh-d-dave rishabh-d-dave added wip-rishabh-testing Rishabh's testing label and removed wip-rishabh-testing Rishabh's testing label labels May 20, 2024
@rishabh-d-dave rishabh-d-dave force-pushed the qa-fs-mds-fail-improve branch from fda43e6 to 5213120 Compare May 20, 2024 05:37
@rishabh-d-dave
Copy link
Contributor Author

Rebased so that the commit from PR #57333 (that was merged recently), will go away from this PR branch. This resolves one of two dependency.

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@rishabh-d-dave
Copy link
Contributor Author

rishabh-d-dave commented May 23, 2024

The dependent PRs/commits have been merged in main, I've rebased this PR so that those comimts are removed. @vshankar @batrick @cephfs PTAL

Code to generate MDS_TRIM and MDS_CACHE_OVERSIZED health warnings is
repeated in test methods of TestMDSFail and TestFSFail. Move this code
to separate helper methods so that it can be reused instead of
duplicating it. And move these helper methods to TestAdminCommands so
to make them conveniently available for reuse.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
Signed-off-by: Rishabh Dave <ridave@redhat.com>
1. Instead of accepting health report as argument, get one directly.
2. Since it is not being used elsewhere move it to the class where it is
   being used.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
New name will make it easier to find these tests by making it similar to
health warnings (MDS_CACHE_OVERSIZED) they do testing for.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
@rishabh-d-dave rishabh-d-dave force-pushed the qa-fs-mds-fail-improve branch from 773e1de to 0f41207 Compare May 29, 2024 12:01
@batrick
Copy link
Member

batrick commented Jun 11, 2024

jenkins test make check arm64

@rishabh-d-dave rishabh-d-dave added the wip-rishabh-testing Rishabh's testing label label Jun 28, 2024
@rishabh-d-dave
Copy link
Contributor Author

This PR is under test in https://tracker.ceph.com/issues/66753.

Copy link
Contributor Author

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

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

https://tracker.ceph.com/projects/cephfs/wiki/Main#11-JUL-2024

Testing took some time because first there were issues with building testing branch, then there were too many infra failures, then there were failures due to one of the PRs in the testing branch and finally last run's rerun had new failures that need to be checked.

There were no failures related to this PR, QA was successful.

@rishabh-d-dave rishabh-d-dave merged commit 384acde into ceph:main Jul 11, 2024
rishabh-d-dave added a commit to rishabh-d-dave/ceph that referenced this pull request Jul 11, 2024
* refs/pull/57492/head:
	qa/cephfs: rename couple of test methods
	qa/cephfs: improve and move _get_unhealthy_mds_name to TestMDSFail
	qa/cephfs: use wait_for_health() instead of the new method
	qa/cephfs: make code for generating health warnings reusable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
@rishabh-d-dave rishabh-d-dave deleted the qa-fs-mds-fail-improve branch July 12, 2024 10:55
NitzanMordhai pushed a commit to NitzanMordhai/ceph that referenced this pull request Aug 1, 2024
qa/cephfs: improvements for "mds fail" and "fs fail"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests wip-rishabh-testing Rishabh's testing label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants