Project

General

Profile

Actions

Bug #78291

closed
TH TH

Fix CLI error message when using force parameter if it doesn't exist

Bug #78291: Fix CLI error message when using force parameter if it doesn't exist

Added by Tomer Haskalovitch 5 months ago. Updated 2 months ago.

Status:
Backporting
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle,umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.3.0-1166-g314d194dcb
Released In:
Upkeep Timestamp:
2026-10-04T14:06:45+00:00

Description

ceph_argparse.py hardcodes `--force` as an exception in the positional-argument validation loop (line 1244), originally added for backward compatibility with pre-Nautilus daemons that defined force as a `CephString` positional parameter instead of `CephBool`. The exception fired unconditionally — even when force was not part of the command's schema at all — allowing `--force` to be silently absorbed as the value of the next positional parameter (e.g. `nsid`). The module then tried int('--force') and crashed.


Related issues 2 (1 open — 1 closed)

Copied to Ceph - Backport #81413: tentacle: Fix CLI error message when using force parameter if it doesn't existIn ProgressTomer Haskalovitch

Actions
Copied to Ceph - Backport #81414: umbrella: Fix CLI error message when using force parameter if it doesn't existResolvedTomer Haskalovitch

Actions

KC Updated by Kefu Chai 5 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Assignee set to Tomer Haskalovitch
  • Pull request ID set to 70246

UB Updated by Upkeep Bot 5 months ago Actions #2

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 314d194dcb629cf8791f6cbd769ab43f49832b41
  • Fixed In set to v21.3.0-1166-g314d194dcb
  • Upkeep Timestamp set to 2026-07-19T22:16:43+00:00

TH Updated by Tomer Haskalovitch 2 months ago Actions #3

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle,umbrella

UB Updated by Upkeep Bot 2 months ago Actions #4

  • Copied to Backport #81413: tentacle: Fix CLI error message when using force parameter if it doesn't exist added

UB Updated by Upkeep Bot 2 months ago Actions #5

  • Copied to Backport #81414: umbrella: Fix CLI error message when using force parameter if it doesn't exist added

UB Updated by Upkeep Bot 2 months ago Actions #6

  • Status changed from Pending Backport to Backporting
  • Upkeep Timestamp changed from 2026-07-19T22:16:43+00:00 to 2026-10-04T14:06:45+00:00
Actions

Also available in: PDF Atom