Project

General

Profile

Actions

Bug #47035

closed

TypeError: _daemon_action_redeploy() missing 1 required positional argument: 'image'

Added by Sebastian Wagner over 3 years ago. Updated over 3 years ago.

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

0%

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

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'

Actions #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'

Actions #2

Updated by Sebastian Wagner over 3 years ago

  • Status changed from New to Resolved
  • Pull request ID set to 36753
Actions

Also available in: Atom PDF