Project

General

Profile

Actions

Bug #58884

closed

ceph: osd blocklist does not accept v2/v1: prefix for addr

Added by Patrick Donnelly about 1 year ago. Updated 6 months ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
% Done:

100%

Source:
Community (dev)
Tags:
backport_processed
Backport:
quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
ceph cli
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

pdonnell@vossi04 ~/ceph/build$ bin/ceph osd blocklist add v2:127.0.0.1:0/4125822692
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2023-02-28T17:35:48.653+0000 7faceebda700 -1 WARNING: all dangerous and experimental features are enabled.                                                                                    
2023-02-28T17:35:48.663+0000 7faceebda700 -1 WARNING: all dangerous and experimental features are enabled.                                                                                    
Traceback (most recent call last):
  File "bin/ceph", line 1327, in <module>
    retval = main()
  File "bin/ceph", line 1254, in main
    verbose)
  File "bin/ceph", line 649, in new_style_command
    ret, outbuf, outs = do_command(parsed_args, target, cmdargs, sigdict, inbuf, verbose)
  File "bin/ceph", line 578, in do_command
    valid_dict = validate_command(sigdict, cmdargs, verbose)
  File "/home/pdonnell/ceph/src/pybind/ceph_argparse.py", line 1341, in validate_command
    matched: float = matchnum(args, sig, partial=True)
  File "/home/pdonnell/ceph/src/pybind/ceph_argparse.py", line 1065, in matchnum
    validate_one(word, desc, False, partial and (len(words) == 0))
  File "/home/pdonnell/ceph/src/pybind/ceph_argparse.py", line 1032, in validate_one
    desc.instance.valid(word, partial)
  File "/home/pdonnell/ceph/src/pybind/ceph_argparse.py", line 446, in valid
    super(self.__class__, self).valid(ip)
  File "/home/pdonnell/ceph/src/pybind/ceph_argparse.py", line 398, in valid
    if int(p) > 65535:
ValueError: invalid literal for int() with base 10: '127.0.0.1:0'

Of course, many places in ceph will output the addrv in this format. So it's confusing it's not accepted in this command.


Related issues 2 (0 open2 closed)

Copied to RADOS - Backport #61487: quincy: ceph: osd blocklist does not accept v2/v1: prefix for addrResolvedNitzan MordechaiActions
Copied to RADOS - Backport #61488: pacific: ceph: osd blocklist does not accept v2/v1: prefix for addrResolvedNitzan MordechaiActions
Actions

Also available in: Atom PDF