Actions
Bug #55259
closedbootstrap a cluster by providing --mon-addrv fails
Status:
Resolved
Priority:
Normal
Assignee:
Category:
cephadm (binary)
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
cephadm fails to bootstrap a cluster when --mon-addrv is provided:
cephadm --image <my_image> bootstrap --mon-addrv [v2:192.168.100.100:5000] --initial-dashboard-password admin --allow-fqdn-hostname --dashboard-password-noupdate
End up failing by:
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.2 -e NODE_NAME=ceph-node-0 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/7e2599de-b996-11ec-a388-52540026875e:/var/log/ceph:z -v /tmp/ceph-tmp8gijcuci:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpsqrajjjq:/etc/ceph/ceph.conf:z registry.hub.docker.com/rkachach/ceph:custom-v0.2 orch host add ceph-node-0 /usr/bin/ceph: stderr Error EINVAL: Can not automatically resolve ip address of host where active mgr is running. Please explicitly provide the address. 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.2 -e NODE_NAME=ceph-node-0 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/7e2599de-b996-11ec-a388-52540026875e:/var/log/ceph:z -v /tmp/ceph-tmp8gijcuci:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpsqrajjjq:/etc/ceph/ceph.conf:z registry.hub.docker.com/rkachach/ceph:custom-v0.2 orch host add ceph-node-0: Error EINVAL: Can not automatically resolve ip address of host where active mgr is running. Please explicitly provide the address.
[root@ceph-node-0 ~]# ss -tulpn | grep mgr tcp LISTEN 0 5 192.168.100.100:7150 0.0.0.0:* users:(("ceph-mgr",pid=103189,fd=38)) tcp LISTEN 0 512 0.0.0.0:6800 0.0.0.0:* users:(("ceph-mgr",pid=103189,fd=27)) tcp LISTEN 0 512 0.0.0.0:6801 0.0.0.0:* users:(("ceph-mgr",pid=103189,fd=28))
Updated by Redouane Kachach Elhichou about 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 45768
Updated by Redouane Kachach Elhichou about 2 years ago
- Assignee set to Redouane Kachach Elhichou
Updated by Redouane Kachach Elhichou about 2 years ago
- Status changed from Fix Under Review to Resolved
Actions