Bug #70580
openqa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1)
0%
Description
Seen in qa run - https://pulpito.ceph.com/vshankar-2025-03-13_10:45:26-fs:volumes-wip-vshankar-testing-20250313.072951-debug-testing-default-smithi/8186816
2025-03-13T11:11:08.615 INFO:tasks.cephfs_test_runner:====================================================================== 2025-03-13T11:11:08.615 INFO:tasks.cephfs_test_runner:FAIL: test_mgr_eviction (tasks.cephfs.test_volumes.TestMisc) 2025-03-13T11:11:08.615 INFO:tasks.cephfs_test_runner:---------------------------------------------------------------------- 2025-03-13T11:11:08.615 INFO:tasks.cephfs_test_runner:Traceback (most recent call last): 2025-03-13T11:11:08.615 INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_ceph-c_2ac635e145c9905e1e991a43179bbe03b69719cf/qa/tasks/cephfs/test_volumes.py", line 9033, in test_mgr_eviction 2025-03-13T11:11:08.616 INFO:tasks.cephfs_test_runner: self.assertEqual(len(sessions), 1) 2025-03-13T11:11:08.616 INFO:tasks.cephfs_test_runner:AssertionError: 2 != 1 2025-03-13T11:11:08.616 INFO:tasks.cephfs_test_runner:
Updated by Igor Golikov 12 months ago
Inspecting the test code:
# unmount any cephfs mounts
for i in range(0, self.CLIENTS_REQUIRED):
self.mounts[i].umount_wait()
sessions = self._session_list()
self.assertLessEqual(len(sessions), 1) # maybe mgr is already mounted
At this point, there may be 0 or 1 sessions in the list.
# Get the mgr to definitely mount cephfs
subvolume = self._gen_subvol_name()
self._fs_cmd("subvolume", "create", self.volname, subvolume)
sessions = self._session_list()
self.assertEqual(len(sessions), 1)
If at the previous step we may have 1 session in list, and this one adds another session, maybe the assert should be modified?
Updated by Venky Shankar 11 months ago
- Category set to Testing
- Status changed from New to Triaged
- Target version set to v20.0.0
- Source set to Q/A
- Backport set to reef,squid
Updated by Venky Shankar 11 months ago
Igor Golikov wrote in #note-2:
Inspecting the test code:
[...]At this point, there may be 0 or 1 sessions in the list.
[...]
If at the previous step we may have 1 session in list, and this one adds another session, maybe the assert should be modified?
If there is a session, the mgr would reuse that, unless that logic has changes, of course. This is done here: https://github.com/ceph/ceph/blob/main/src/pybind/mgr/mgr_util.py#L315
A connection pool of cephfs clients is maintained and the mgr plugin choses a connection which has minimum ops in progress (or spins up a new one). See: https://github.com/ceph/ceph/blob/main/src/pybind/mgr/mgr_util.py#L238
Updated by Patrick Donnelly 23 days ago
- Status changed from Triaged to Fix Under Review
- Assignee changed from Igor Golikov to Patrick Donnelly
- Backport changed from reef,squid to tentacle,squid
- Pull request ID set to 67556
Updated by Venky Shankar 18 days ago
- Target version set to v21.0.0
- Labels (FS) qa, qa-failure added
Updated by Upkeep Bot 4 days ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 5d2301d89227007e7ff5616947bde6eb353da9d6
- Fixed In set to v20.3.0-6146-g5d2301d892
- Upkeep Timestamp set to 2026-03-17T09:57:16+00:00
Updated by Upkeep Bot 4 days ago
- Copied to Backport #75550: tentacle: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1) added
Updated by Upkeep Bot 4 days ago
- Copied to Backport #75551: squid: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1) added