Repository navigation
mgr/cephadm: add __getstate__ so OSD class can be pickled - #67236
Conversation
|
jenkins test make check |
|
jenkins test make check arm64 |
batrick
left a comment
There was a problem hiding this comment.
Please create a tracker issue so that this issue can be tracked for backporting.
Then, please annotate the commit which fixes/resolves a Ceph tracker issue with:
Fixes: http://tracker.ceph.com/issues/...
This is essential when examining the history of the repository (this commit fixes what) and helps merge scripts identify issues that have been resolved by a merge. See this article on GitHub on how to amend commits and update your pull request.
The OSD class cannot be pickled due to having the `remove_util` field which itself cannot be pickled. ``` 2026-02-05T20:30:15.199 INFO:teuthology.orchestra.run.trial079.stderr:+ ceph orch osd rm status 2026-02-05T20:30:15.199 INFO:teuthology.orchestra.run.trial079.stderr:+ grep '^1' 2026-02-05T20:30:15.356 INFO:teuthology.orchestra.run.trial079.stderr:Error EINVAL: Traceback (most recent call last): 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/mgr_module.py", line 1975, in _handle_command 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: return self.CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf) # type: ignore[attr-defined] 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/mgr_module.py", line 533, in call 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: return self.func(mgr, **kwargs) 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/orchestrator/cli.py", line 18, in wrapper 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: return func(*args, **kwargs) 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/orchestrator/module.py", line 1612, in _osd_rm_status 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: completion = self.remove_osds_status() 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 1840, in inner 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: completion = self._oremote(method_name, args, kwargs) 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 1911, in _oremote 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: return mgr.remote(o, meth, *args, **kwargs) 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: File "/usr/share/ceph/mgr/mgr_module.py", line 2559, in remote 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr: return self._ceph_dispatch_remote(module_name, method_name, 2026-02-05T20:30:15.357 INFO:teuthology.orchestra.run.trial079.stderr:RuntimeError: Remote method threw exception: TypeError: cannot pickle 'CephadmOrchestrator' object ``` This commit adds a __getstate__ function which should allow pickle to work around this Fixes: https://tracker.ceph.com/issues/74862 Signed-off-by: Adam King <[email protected]>
438329e to
5544880
Compare
apologies, added a tracker link to the commit |
|
jenkins test make check |
|
This PR has already passed successfully Teuthology testing. |
The OSD class cannot be pickled due to having the
remove_utilfield which itself cannot be pickled.This commit adds a getstate function which should allow pickle to work around this
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.