Bug #52446
Updated by Sebastian Wagner over 2 years ago
$ sudo cephadm -v bootstrap --mon-ip 2001:db8::100 this does spin up the monitor and the mgr, but fails when it tries to add itself with: <pre> 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=docker.io/ceph/ceph:v16 -e NODE_NAME=alpha -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/f39c0272-08e6-11ec-bb7f-8199fff7b341:/var/log/ceph:z -v /tmp/ceph-tmptrsobuik:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpr8toh3dl:/etc/ceph/ceph.conf:z docker.io/ceph/ceph:v16 orch host add alpha [2001:db8::100] /usr/bin/ceph: stderr Error EINVAL: Cannot resolve ip for host [2001:db8::100]: [Errno -2] Name or service not known /usr/bin/ceph: stderr You may need to supply an address for [2001:db8::100] </pre> and indeed just to confirm that this doesn't work: <pre> $ sudo ceph orch host add alpha [2001:db8::100] Error EINVAL: Cannot resolve ip for host [2001:db8::100]: [Errno -2] Name or service not known You may need to supply an address for [2001:db8::100] </pre> whereas this works fine: <pre> $ sudo ceph orch host add alpha 2001:db8::100 Added host 'alpha' with addr '2001:db8::100' </pre> The bootstrap command works in Octopus, but this fails in Pacific