Bug #47035
TypeError: _daemon_action_redeploy() missing 1 required positional argument: 'image'
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
Aug 19 11:28:18 ubuntu bash[13997]: debug 2020-08-19T09:28:18.976+0000 7f15338fd700 -1 mgr handle_command module 'orchestrator' command handler threw exception: _daemon_action_redeploy() missing 1 required positional argument: 'image' Aug 19 11:28:18 ubuntu bash[13997]: debug 2020-08-19T09:28:18.976+0000 7f15338fd700 -1 mgr.server reply reply (22) Invalid argument Traceback (most recent call last): Aug 19 11:28:18 ubuntu bash[13997]: File "/usr/share/ceph/mgr/mgr_module.py", line 1180, in _handle_command Aug 19 11:28:18 ubuntu bash[13997]: return self.handle_command(inbuf, cmd) Aug 19 11:28:18 ubuntu bash[13997]: File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 141, in handle_command Aug 19 11:28:18 ubuntu bash[13997]: return dispatch[cmd['prefix']].call(self, cmd, inbuf) Aug 19 11:28:18 ubuntu bash[13997]: File "/usr/share/ceph/mgr/mgr_module.py", line 317, in call Aug 19 11:28:18 ubuntu bash[13997]: return self.func(mgr, **kwargs) Aug 19 11:28:18 ubuntu bash[13997]: File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 103, in <lambda> Aug 19 11:28:18 ubuntu bash[13997]: wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) Aug 19 11:28:18 ubuntu bash[13997]: File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 92, in wrapper Aug 19 11:28:18 ubuntu bash[13997]: return func(*args, **kwargs) Aug 19 11:28:18 ubuntu bash[13997]: TypeError: _daemon_action_redeploy() missing 1 required positional argument: 'image'
History
#1 Updated by Daniƫl Vos over 3 years ago
Came here to report this bug. Because the report above is a bit incomplete, here is some more information for clarification
Monitor commands: ================= orch daemon redeploy <name> [<image>] Redeploy a daemon (with a specifc image)
The image is supposed to be optional.
~ root @ node2 # ceph orch daemon redeploy mon.node3 Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 1177, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 141, in handle_command return dispatch[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 318, in call return self.func(mgr, **kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 103, in <lambda> wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 92, in wrapper return func(*args, **kwargs) TypeError: _daemon_action_redeploy() missing 1 required positional argument: 'image'
But it's not anymore. It would not redeploy my monitor without me specifying the image.
root @ node2 # ceph orch daemon redeploy mon.node3 docker.io/ceph/ceph:v15 Deployed mon.node3 on host 'node3'
#2 Updated by Sebastian Wagner over 3 years ago
- Status changed from New to Resolved
- Pull request ID set to 36753