Skip to content

qa: allow multiple mgr sessions during eviction test#67556

Merged
vshankar merged 1 commit intoceph:mainfrom
batrick:i70580
Mar 17, 2026
Merged

qa: allow multiple mgr sessions during eviction test#67556
vshankar merged 1 commit intoceph:mainfrom
batrick:i70580

Conversation

@batrick
Copy link
Member

@batrick batrick commented Feb 26, 2026

Fixes: https://tracker.ceph.com/issues/70580

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Fixes: https://tracker.ceph.com/issues/70580
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
@github-actions github-actions bot added cephfs Ceph File System tests labels Feb 26, 2026
@batrick batrick requested a review from vshankar February 26, 2026 19:51
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

minor nits, otherwise lgtm.

# Helper to get mgr-specific sessions (type 16)
def get_mgr_sessions():
all_sessions = self._session_list()
mgr_sessions = [s for s in all_sessions if s.get('auth_name', {}).get('type') == 16]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice use of recently added enhancement 👍


# Ensure we start with only mgr sessions (if any)
all_s, mgr_s = get_mgr_sessions()
self.assertEqual(len(all_s), len(mgr_s), f"Non-mgr sessions found: {all_s}")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: did you mean

f"Non-mgr sessions found: {all_s - len(mgr_s)}"

?

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

Conditional approval (comments needs to be taken to closure).

@vshankar
Copy link
Contributor

vshankar commented Mar 4, 2026

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

vshankar added a commit to vshankar/ceph that referenced this pull request Mar 16, 2026
* refs/pull/67556/head:

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar vshankar merged commit 5d2301d into ceph:main Mar 17, 2026
22 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants