Project

General

Profile

Actions

Bug #70580

open

qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1)

Added by Kotresh Hiremath Ravishankar about 1 year ago. Updated 4 days ago.

Status:
Pending Backport
Priority:
Normal
Category:
Testing
Target version:
% Done:

0%

Source:
Q/A
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
qa, qa-failure
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-6146-g5d2301d892
Released In:
Upkeep Timestamp:
2026-03-17T09:57:16+00:00

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:

Related issues 2 (2 open0 closed)

Copied to CephFS - Backport #75550: tentacle: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1)NewPatrick DonnellyActions
Copied to CephFS - Backport #75551: squid: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1)NewPatrick DonnellyActions
Actions #1

Updated by Milind Changire 12 months ago

  • Assignee set to Igor Golikov
Actions #2

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?

Actions #3

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
Actions #4

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

Actions #5

Updated by Patrick Donnelly 9 months ago

  • Target version deleted (v20.0.0)
Actions #6

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
Actions #7

Updated by Venky Shankar 18 days ago

  • Target version set to v21.0.0
  • Labels (FS) qa, qa-failure added
Actions #8

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
Actions #9

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
Actions #10

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
Actions #11

Updated by Upkeep Bot 4 days ago

  • Tags (freeform) set to backport_processed
Actions

Also available in: Atom PDF