Bug #70580
closedqa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1)
0%
Description
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:
MC Updated by Milind Changire over 1 year ago
- Assignee set to Igor Golikov
IG Updated by Igor Golikov over 1 year 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?
VS Updated by Venky Shankar over 1 year 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
VS Updated by Venky Shankar over 1 year 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
PD Updated by Patrick Donnelly over 1 year ago
- Target version deleted (
v20.0.0)
PD Updated by Patrick Donnelly 9 months 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
VS Updated by Venky Shankar 9 months ago
- Target version set to v21.0.0
- Labels (FS) qa, qa-failure added
UB Updated by Upkeep Bot 9 months 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
UB Updated by Upkeep Bot 9 months ago
- Copied to Backport #75550: tentacle: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1) added
UB Updated by Upkeep Bot 9 months ago
- Copied to Backport #75551: squid: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1) added
UB Updated by Upkeep Bot 9 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 5 months ago
- Status changed from Pending Backport to Resolved
- Upkeep Timestamp changed from 2026-03-17T09:57:16+00:00 to 2026-07-10T13:27:28+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-10T13:27:28+00:00 to 2026-08-28T01:41:48+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1011
- Upkeep Timestamp changed from 2026-08-28T01:41:48+00:00 to 2026-10-24T02:02:50+00:00