Project

General

Profile

Actions

Bug #70580

closed
KH PD

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

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

Added by Kotresh Hiremath Ravishankar over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
Testing
Target version:
Due date:
% 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):
Fixed In:
v20.3.0-6146-g5d2301d892
Released In:
v21.2.0~1011
Upkeep Timestamp:
2026-10-24T02:02:50+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 (0 open — 2 closed)

Copied to CephFS - Backport #75550: tentacle: qa: tasks.cephfs.test_volumes.TestMisc test_mgr_eviction failed - self.assertEqual(len(sessions), 1)ResolvedJos Collin

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

Actions

MC Updated by Milind Changire over 1 year ago Actions #1

  • Assignee set to Igor Golikov

IG Updated by Igor Golikov over 1 year ago Actions #2

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

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

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

  • Target version deleted (v20.0.0)

PD Updated by Patrick Donnelly 9 months ago Actions #6

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

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

UB Updated by Upkeep Bot 9 months ago Actions #8

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

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

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

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 5 months ago Actions #13

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

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

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

Also available in: PDF Atom