Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostNotFound: -F /etc/ceph/config #1

Open
dthpulse opened this issue Jan 31, 2021 · 5 comments
Open

HostNotFound: -F /etc/ceph/config #1

dthpulse opened this issue Jan 31, 2021 · 5 comments

Comments

@dthpulse
Copy link

Hi,
I have following in my ssh_conifg:

Host cephubu1
  HostName 192.168.121.91
  User root
  Port 22
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /etc/ceph/id_rsa
  IdentitiesOnly yes
  LogLevel FATAL

Host cephubu2
  HostName 192.168.121.45
  User root
  Port 22
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /etc/ceph/id_rsa
  IdentitiesOnly yes
  LogLevel FATAL

Host cephubu3
  HostName 192.168.121.60
  User root
  Port 22
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /etc/ceph/id_rsa
  IdentitiesOnly yes
  LogLevel FATAL

Host cephubu4
  HostName 192.168.121.243
  User root
  Port 22
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /etc/ceph/id_rsa
  IdentitiesOnly yes
  LogLevel FATAL

then in ceph config:

# ceph config get mgr.
WHO MASK LEVEL    OPTION                            VALUE            RO
mgr      advanced mgr/orchestrator_cli/orchestrator ssh              *
mgr      advanced mgr/ssh/ssh_config_file           /etc/ceph/config *
# ceph orchestrator status
Backend: ssh
Available: True

But when trying to do enything with orchestrator getting:

# ceph orchestrator device ls
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 983, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 372, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 20, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/ceph/mgr/orchestrator_cli/module.py", line 103, in _list_devices
    for inventory_node in completion.result:
  File "/usr/share/ceph/mgr/ssh/module.py", line 39, in result
    return list(map(lambda r: r.get(), self._result))
  File "/usr/share/ceph/mgr/ssh/module.py", line 39, in <lambda>
    return list(map(lambda r: r.get(), self._result))
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 572, in get
    raise self._value
HostNotFound: -F /etc/ceph/config cephubu3

However running ssh against host works:

root@cephubu1:~# ssh -F /etc/ceph/config cephubu3
Last login: Sun Jan 31 06:48:23 2021 from 192.168.121.91
root@cephubu3:~#

Thanks!

@sebastian-philipp
Copy link
Owner

Hi @dthpulse , something is odd here. Is this something you're interested? I'm wondering, cause the trackbacks look kinda outdated.

@dthpulse
Copy link
Author

dthpulse commented Feb 1, 2021

Hi @sebastian-philipp yes I'm. I know it's Nautilus ... but I would like to fix it on our Ceph ... if it would be possible.
Thx!

@sebastian-philipp
Copy link
Owner

The Nautilus ssh orchestrator was a prototype for cephadm later on. Note that we never implemented any upgrade from mgr/ssh to Octopus. That said, having no proper error message form remoto is still something that bothers me. In cephadm, we ended up simply replacing the (super unhelpful) error message of remoto with this text:

https://github.com/ceph/ceph/blob/639fac3564737a1a1d8322e29e5c034f73df790b/src/pybind/mgr/cephadm/serve.py#L1062-L1072

hope that helps.

@dthpulse
Copy link
Author

dthpulse commented Feb 1, 2021

yep, this is something I have tried before I placed an issue here :) and ssh to host from CLI using private key works

root@cephubu1:~# ssh -F /etc/ceph/config cephubu3
Last login: Sun Jan 31 06:48:23 2021 from 192.168.121.91
root@cephubu3:~#

however it looks like the error is a bit different here it says HostNotFound: -F /etc/ceph/config cephubu3 what looks like it's trying to resolve whole string as host -F /etc/ceph/config cephubu3 and not just a cephubu3.

@sebastian-philipp
Copy link
Owner

u're sure mgr/ssh uses the same private key?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants