Project

General

Profile

Actions

Bug #22317

open

pybind: InvalidArgumentError does not take keyword arguments

Added by Alfredo Deza over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is caused because the exception class inherits from parent classes that do not define any keyword arguments

$ ceph osd --help
...
server name not found: 192.168.111. (Name or service not known)
unable to parse addrs in '192.168.111.'
InvalidArgumentError does not take keyword arguments

But the error handling in `rados.pyx` uses `errno_to_exception` that will pass the message and the errno:

        return errno_to_exception[ret](msg, errno=ret)
Actions #1

Updated by Alfredo Deza over 6 years ago

  • Description updated (diff)
Actions #2

Updated by Josh Durgin over 6 years ago

  • Project changed from Ceph to RADOS
  • Category deleted (ceph cli)
Actions

Also available in: Atom PDF