Skip to content

qa: some test set refuse_client_session, so the cluster log is expected#58218

Merged
vshankar merged 1 commit intoceph:mainfrom
vshankar:wip-66639
Jul 30, 2024
Merged

qa: some test set refuse_client_session, so the cluster log is expected#58218
vshankar merged 1 commit intoceph:mainfrom
vshankar:wip-66639

Conversation

@vshankar
Copy link
Contributor

@vshankar vshankar commented Jun 24, 2024

Fixes: http://tracker.ceph.com/issues/66639

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

@vshankar vshankar added the cephfs Ceph File System label Jun 24, 2024
@vshankar vshankar requested a review from a team June 24, 2024 07:13
@github-actions github-actions bot added the tests label Jun 24, 2024
@batrick
Copy link
Member

batrick commented Jun 24, 2024

jenkins test api

@batrick
Copy link
Member

batrick commented Jun 24, 2024

jenkins test make check

@batrick
Copy link
Member

batrick commented Jun 24, 2024

jenkins test make check arm64

@batrick
Copy link
Member

batrick commented Jun 24, 2024

(adding this to my future run but feel free to test this in others.)

@github-actions
Copy link

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

@batrick
Copy link
Member

batrick commented Jun 28, 2024

@vshankar needs rebase.

@vshankar
Copy link
Contributor Author

vshankar commented Jul 5, 2024

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

- \(MDS_CLIENTS_BROKEN_ROOTSQUASH\)
- report clients with broken root_squash implementation
- evicting unresponsive client
- as file system flag refuse_client_session is set
Copy link
Member

@lxbsz lxbsz Jul 19, 2024

Choose a reason for hiding this comment

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

https://pulpito.ceph.com/jcollin-2024-07-12_00:07:25-fs-wip-jcollin-testing-20240711.095637-squid-distro-default-smithi/7798072/

Hit this again, I'm thinking instead of just ignore this warning shouldn't we just fix the test cases ?

For example:

1015     def test_fs_rename_fails_for_non_existent_fs(self):
1016         """
1017         That renaming a non-existent file system fails.                                                                                                                                                                                                  
1018         """
1019         self.run_ceph_cmd(f'fs fail {self.fs.name}')
1020         self.run_ceph_cmd(f'fs set {self.fs.name} refuse_client_session true')
1021         sleep(5)
1022   
1023         try:
1024             self.run_ceph_cmd("fs rename non_existent_fs new_fs --yes-i-really-mean-it")
1025         except CommandFailedError as ce:    
1026             self.assertEqual(ce.exitstatus, errno.ENOENT, "invalid error code on renaming a non-existent fs")
1027         else:
1028             self.fail("expected renaming of a non-existent file system to fail")
1029         self.run_ceph_cmd(f'fs set {self.fs.name} joinable true')
1030         self.fs.wait_for_daemons()
1031         self.run_ceph_cmd(f'fs set {self.fs.name} refuse_client_session false')

Since the mountpoints won't used in the test cases, we should just unmount them in the beginning ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The clients are supposed to reconnect back (and the MDS should allow that) once the flag is unset, so unmounting clients is kind of taking away that check.

@vshankar
Copy link
Contributor Author

@vshankar
Copy link
Contributor Author

jenkins test api

3 similar comments
@vshankar
Copy link
Contributor Author

jenkins test api

@vshankar
Copy link
Contributor Author

jenkins test api

@vshankar
Copy link
Contributor Author

jenkins test api

@vshankar
Copy link
Contributor Author

rebase and pushed to hopefully get the failing api test to pass.

@vshankar
Copy link
Contributor Author

jenkins retest this please

@vshankar
Copy link
Contributor Author

jenkins retest this please

@vshankar
Copy link
Contributor Author

Finally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants