Actions
Bug #46852
openpybind: cannot pickle the rados/rbd `Error` class
% Done:
0%
Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
the Error class does not have a `message` attribute:
Traceback (most recent call last): File "/usr/share/ceph/mgr/cephadm/module.py", line 774, in process p.evaluate() File "/usr/share/ceph/mgr/cephadm/module.py", line 92, in evaluate self.finalize(None) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 559, in finalize self._first_promise._finalize(result) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 301, in _finalize self.fail(e) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 553, in fail super(Completion, self).fail(e) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 347, in fail self._exception = e File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 195, in _exception self._serialized_exception_ = pickle.dumps(e) if e is not None else None File "rados.pyx", line 374, in rados.Error.__reduce__ AttributeError: 'ObjectNotFound' object has no attribute 'message'
which can cause the orchestrator to fail in mysterious ways:
$ ceph orch reconfig nfs.foo Error ENOENT: This Orchestrator does not support `orch`
Updated by Michael Fritch over 3 years ago
related to tracker: http://tracker.ceph.com/issues/20421
Updated by Sebastian Wagner over 3 years ago
- Status changed from New to Fix Under Review
- Assignee set to Michael Fritch
- Pull request ID set to 36506
Actions