Project

General

Profile

Actions

Feature #55493

closed

Detect ssh connectivity issues ASAP

Added by Redouane Kachach Elhichou almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Low
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Right now when we try to bootstrap with cephadm providing an ssh user other than root (which is the default) in case cephadm cannot
establish ssh connectivity for this user it fails showing the following error:

Non-zero exit code 22 from /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=registry.hub.docker.com/rkachach/ceph:custom-v0.6 -e NODE_NAME=ceph-node-0 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/45380bb4-c6ea-11ec-8302-5254002c6a78:/var/log/ceph:z -v /tmp/ceph-tmp4_xkwpdj:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp6zo6_n2g:/etc/ceph/ceph.conf:z registry.hub.docker.com/rkachach/ceph:custom-v0.6 orch host add ceph-node-0 192.168.100.100
/usr/bin/ceph: stderr Error EINVAL: Command ['which', 'python3'] failed. 
/usr/bin/ceph: stderr We trust you have received the usual lecture from the local System
/usr/bin/ceph: stderr Administrator. It usually boils down to these three things:
/usr/bin/ceph: stderr 
/usr/bin/ceph: stderr     #1) Respect the privacy of others.
/usr/bin/ceph: stderr     #2) Think before you type.
/usr/bin/ceph: stderr     #3) With great power comes great responsibility.
/usr/bin/ceph: stderr 
/usr/bin/ceph: stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
/usr/bin/ceph: stderr sudo: a password is required
ERROR: Failed to add host <ceph-node-0>: Failed command: /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=registry.hub.docker.com/rkachach/ceph:custom-v0.6 -e NODE_NAME=ceph-node-0 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/45380bb4-c6ea-11ec-8302-5254002c6a78:/var/log/ceph:z -v /tmp/ceph-tmp4_xkwpdj:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp6zo6_n2g:/etc/ceph/ceph.conf:z registry.hub.docker.com/rkachach/ceph:custom-v0.6 orch host add ceph-node-0 192.168.100.100

It would be good if we provide a clear message indicating that ssh is failing instead.


Related issues 1 (0 open1 closed)

Related to Orchestrator - Bug #51665: document unforunate interactions between cephadm and restrictive sshd_config?ResolvedRedouane Kachach Elhichou

Actions
Actions #1

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Related to Bug #51665: document unforunate interactions between cephadm and restrictive sshd_config? added
Actions #2

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 46129
Actions #3

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF