Bug #51095
closed
cephadm bootstrap will create two MGRs, if hostname is localhost.localdomain
Added by Sebastian Wagner almost 3 years ago.
Updated about 2 years ago.
Description
➜ cephadm git:(master) ✗ hostname
localhost.localdomain
➜ cephadm git:(master) ✗ hostname -f
localhost
➜ cephadm git:(master) ✗ hostname --fqdn
localhost
I ended up with
- mgr.localhost.xxxyyyzzz
- mgr.localhost.localdomain.jijijijiji
I tried to setup a similar environment:
[root@ceph-node-0 ~]# hostname
ceph-node-0.localdomain
[root@ceph-node-0 ~]# hostname -f
ceph-node-0
[root@ceph-node-0 ~]# hostname --fqdn
ceph-node-0
[root@ceph-node-0 ~]#
[root@ceph-node-0 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.100 ceph-node-0 ceph-node-0.localdomain
[root@ceph-node-0 ~]#
[root@ceph-node-0 ~]#
Using the code from master/quincy I cannot reproduce the issue using the following bootstrap command:
cephadm --image registry.hub.docker.com/rkachach/ceph:custom-v0.2 bootstrap --mon-ip 192.168.100.100 --initial-dashboard-password admin --allow-fqdn-hostname --dashboard-password-noupdate
I'm closing this issue. Please, feel free to re-open if you find an easy way to reproduce the problem.
- Status changed from New to Can't reproduce
Also available in: Atom
PDF