Bug #38757
Updated by Sebastian Wagner about 5 years ago
I installed ceph-mgr-ssh-14.1.1 and python-remoto-0.0.35 set the ssh moudule by "ceph mgr module enable ssh" "ceph orchestrator set backend ssh" then I add the ssh_config_file as the follows: <pre> Host node6 HostName 192.168.10.3 User root Port 22 UserKnownHostsFile /root/.ssh/known_hosts StrictHostKeyChecking no PasswordAuthentication no IdentityFile /root/.ssh/id_rsa IdentitiesOnly yes LogLevel FATAL </pre> it is the format as vagrant ssh-config, "ceph ssh set-ssh-config -i ssh_config_file" the I add node6 by ceph orchestrator host add node6 then I tried to ls devices on node6. the http://docs.ceph.com/docs/master/mgr/orchestrator_cli/ shows that "host add, host ls, host rm ,mgr update, mon update,osd create,device ls" are already supported. but it throws an error. <pre> [root@node6 ~]# ceph orchestrator device ls --host=node6 Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 862, in _handle_command return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 337, in call return self.func(mgr, **kwargs) File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 21, in inner return func(*args, **kwargs) File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 90, in _list_devices for inventory_node in completion.result: File "/usr/share/ceph/mgr/ssh/module.py", line 37, in result return list(map(lambda r: r.get(), self._result)) File "/usr/share/ceph/mgr/ssh/module.py", line 37, in <lambda> return list(map(lambda r: r.get(), self._result)) File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get raise self._value EOFError: expected 1 bytes, got 0 </pre> the log output: <pre> 2019-03-15 05:05:11.351 7f0b6d009700 0 log_channel(audit) log [DBG] : from='client.74328 -' entity='client.admin' cmd=[{"prefix": "orchestrator device ls", "target": ["mgr", ""]}]: dispatch 2019-03-15 05:05:12.004 7f0b6c007700 0 log_channel(cluster) log [DBG] : pgmap v997: 44 pgs: 29 active+clean, 15 unknown; 1.6 KiB data, 82 MiB used, 3.0 TiB / 3.0 TiB avail 2019-03-15 05:05:14.005 7f0b6c007700 0 log_channel(cluster) log [DBG] : pgmap v998: 44 pgs: 29 active+clean, 15 unknown; 1.6 KiB data, 82 MiB used, 3.0 TiB / 3.0 TiB avail 2019-03-15 05:05:16.005 7f0b6c007700 0 log_channel(cluster) log [DBG] : pgmap v999: 44 pgs: 29 active+clean, 15 unknown; 1.6 KiB data, 82 MiB used, 3.0 TiB / 3.0 TiB avail 2019-03-15 05:05:16.356 7f0b6d80a700 -1 mgr handle_command module 'orchestrator_cli' command handler threw exception: expected 1 bytes, got 0 2019-03-15 05:05:16.356 7f0b6d80a700 -1 mgr.server reply reply (22) Invalid argument Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 862, in _handle_command return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf) File "/usr/share/ceph/mgr/mgr_module.py", line 337, in call return self.func(mgr, **kwargs) File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 21, in inner return func(*args, **kwargs) File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 90, in _list_devices for inventory_node in completion.result: File "/usr/share/ceph/mgr/ssh/module.py", line 37, in result return list(map(lambda r: r.get(), self._result)) File "/usr/share/ceph/mgr/ssh/module.py", line 37, in <lambda> return list(map(lambda r: r.get(), self._result)) File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get raise self._value EOFError: expected 1 bytes, got 0 </pre>