Project

General

Profile

Actions

Bug #24666

open

pybind: InvalidArgumentError is missing 'errno' argument

Added by Jason Dillaman almost 6 years ago.

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

0%

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

Description

Instead of being derived from 'Error', the 'InvalidArgumentError' should be derived from 'OSError' which will handle the 'errno' argument.

2018-06-26T18:37:49.507 INFO:tasks.workunit.client.0.smithi055.stderr:  File "<stdin>", line 4, in <module>
2018-06-26T18:37:49.507 INFO:tasks.workunit.client.0.smithi055.stderr:  File "rados.pyx", line 886, in rados.Rados.connect (/build/ceph-12.2.5-545-g1d08b91/obj-x86_64-linux-gnu/src/pybind/rados/pyrex/rados.c:10967)
2018-06-26T18:37:49.507 INFO:tasks.workunit.client.0.smithi055.stderr:  File "rados.pyx", line 465, in rados.make_ex (/build/ceph-12.2.5-545-g1d08b91/obj-x86_64-linux-gnu/src/pybind/rados/pyrex/rados.c:3339)
2018-06-26T18:37:49.508 INFO:tasks.workunit.client.0.smithi055.stderr:TypeError: InvalidArgumentError does not take keyword arguments

No data to display

Actions

Also available in: Atom PDF