Skip to content

qa/cephfs: don't return undefined variable#65805

Merged
rishabh-d-dave merged 2 commits intoceph:mainfrom
rishabh-d-dave:qa-returns-unbound-var
Dec 16, 2025
Merged

qa/cephfs: don't return undefined variable#65805
rishabh-d-dave merged 2 commits intoceph:mainfrom
rishabh-d-dave:qa-returns-unbound-var

Conversation

@rishabh-d-dave
Copy link
Copy Markdown
Contributor

@rishabh-d-dave rishabh-d-dave commented Oct 7, 2025

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

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.

If command in _run_umount_lf() fails and the is_mounted() turns to be
false, "proc" is returned by this method even though it is undefined (it
won't be defined by try clause fails leading the control to jump from
try to except without defining variable).

Fixes: https://tracker.ceph.com/issues/73374
Signed-off-by: Rishabh Dave <ridave@redhat.com>
Since no caller of this method uses the return value "proc", return
None.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
@rishabh-d-dave rishabh-d-dave requested a review from a team October 7, 2025 05:27
@rishabh-d-dave rishabh-d-dave added the wip-rishabh-testing Rishabh's testing label label Nov 26, 2025
@rishabh-d-dave
Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

@joscollin joscollin left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

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

@rishabh-d-dave rishabh-d-dave merged commit 7df64ff into ceph:main Dec 16, 2025
16 of 17 checks passed
@rishabh-d-dave rishabh-d-dave deleted the qa-returns-unbound-var branch December 16, 2025 09:50
@github-actions
Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 7df64ff593b384aee3676625cdefe322e9bcf4e2^..7df64ff593b384aee3676625cdefe322e9bcf4e2

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/20263592042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System needs-review tests wip-rishabh-testing Rishabh's testing label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants