Closed selukov closed 3 years ago
"cmd": "/root/cephadm bootstrap --allow-fqdn-hostname --mon-ip 45.56.94.64",
Normally this is a private IP. Did you change something? I just tried a fresh setup with the defaults and the cluster.json.sample and got:
TASK [bootstrap octopus] *****************************************************************************************************************************************************
changed: [mon-000] => {
"changed": true,
"cmd": "/root/cephadm bootstrap --allow-fqdn-hostname --mon-ip 192.168.215.25",
"delta": "0:01:05.271916",
"end": "2020-09-23 15:57:32.542617",
"rc": 0,
"start": "2020-09-23 15:56:27.270701"
}
STDERR:
INFO:cephadm:Verifying podman|docker is present...
INFO:cephadm:Verifying lvm2 is present...
INFO:cephadm:Verifying time synchronization is in place...
INFO:cephadm:Unit chronyd.service is enabled and running
INFO:cephadm:Repeating the final host check...
INFO:cephadm:podman|docker (/usr/bin/podman) is present
INFO:cephadm:systemctl is present
INFO:cephadm:lvcreate is present
INFO:cephadm:Unit chronyd.service is enabled and running
INFO:cephadm:Host looks OK
INFO:root:Cluster fsid: 56bdb28a-fdb5-11ea-b5f3-f23c922dbbf0
INFO:cephadm:Verifying IP 192.168.215.25 port 3300 ...
INFO:cephadm:Verifying IP 192.168.215.25 port 6789 ...
INFO:cephadm:Mon IP 192.168.215.25 is in CIDR network 192.168.128.0/17
INFO:cephadm:Pulling container image ceph/daemon-base:latest-octopus-devel...
INFO:cephadm:Extracting ceph user uid/gid from container image...
INFO:cephadm:Creating initial keys...
INFO:cephadm:Creating initial monmap...
INFO:cephadm:Creating mon...
INFO:cephadm:Waiting for mon to start...
INFO:cephadm:Waiting for mon...
INFO:cephadm:mon is available
INFO:cephadm:Assimilating anything we can from ceph.conf...
INFO:cephadm:Generating new minimal ceph.conf...
INFO:cephadm:Restarting the monitor...
INFO:cephadm:Setting mon public_network...
INFO:cephadm:Creating mgr...
INFO:cephadm:Verifying port 9283 ...
INFO:cephadm:Wrote keyring to /etc/ceph/ceph.client.admin.keyring
INFO:cephadm:Wrote config to /etc/ceph/ceph.conf
INFO:cephadm:Waiting for mgr to start...
INFO:cephadm:Waiting for mgr...
INFO:cephadm:mgr not available, waiting (1/10)...
INFO:cephadm:mgr not available, waiting (2/10)...
INFO:cephadm:mgr not available, waiting (3/10)...
INFO:cephadm:mgr not available, waiting (4/10)...
INFO:cephadm:mgr is available
INFO:cephadm:Enabling cephadm module...
INFO:cephadm:Waiting for the mgr to restart...
INFO:cephadm:Waiting for Mgr epoch 5...
INFO:cephadm:Mgr epoch 5 is available
INFO:cephadm:Setting orchestrator backend to cephadm...
INFO:cephadm:Generating ssh key...
INFO:cephadm:Wrote public SSH key to to /etc/ceph/ceph.pub
INFO:cephadm:Adding key to root@localhost's authorized_keys...
INFO:cephadm:Adding host li156-119.members.linode.com...
INFO:cephadm:Deploying mon service with default placement...
INFO:cephadm:Deploying mgr service with default placement...
INFO:cephadm:Deploying crash service with default placement...
INFO:cephadm:Enabling mgr prometheus module...
INFO:cephadm:Deploying prometheus service with default placement...
INFO:cephadm:Deploying grafana service with default placement...
INFO:cephadm:Deploying node-exporter service with default placement...
INFO:cephadm:Deploying alertmanager service with default placement...
INFO:cephadm:Enabling the dashboard module...
INFO:cephadm:Waiting for the mgr to restart...
INFO:cephadm:Waiting for Mgr epoch 13...
INFO:cephadm:Mgr epoch 13 is available
INFO:cephadm:Generating a dashboard self-signed certificate...
INFO:cephadm:Creating initial admin user...
INFO:cephadm:Fetching dashboard port number...
INFO:cephadm:Ceph Dashboard is now available at:
URL: https://li156-119.members.linode.com:8443/
User: admin
Password: ttwmylt2m8
INFO:cephadm:You can access the Ceph CLI with:
sudo /root/cephadm shell --fsid 56bdb28a-fdb5-11ea-b5f3-f23c922dbbf0 -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring
INFO:cephadm:Please consider enabling telemetry to help improve Ceph:
ceph telemetry on
For more information see:
https://docs.ceph.com/docs/master/mgr/telemetry/
INFO:cephadm:Bootstrap complete.
Thanks for meeting me on such short notice. I used cluster.json.sample, but it looks like there is no private IP in the systems
[root@li1006-182 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 45.33.56.182 netmask 255.255.255.0 broadcast 45.33.56.255
inet6 fe80::f03c:92ff:fe2d:b773 prefixlen 64 scopeid 0x20<link>
inet6 2600:3c01::f03c:92ff:fe2d:b773 prefixlen 64 scopeid 0x0<global>
ether f2:3c:92:2d:b7:73 txqueuelen 1000 (Ethernet)
RX packets 58399 bytes 531781966 (507.1 MiB)
RX errors 0 dropped 66 overruns 0 frame 0
TX packets 34765 bytes 2870409 (2.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2651 bytes 159060 (155.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2651 bytes 159060 (155.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Ah, I think the problem is that you're running ceph-linode locally and not in a linode VM (a bounce box). I have not recently tested that but it would explain why the IP address is wrong.
Can you try again with a nano-linode (the 1GB one) running ceph-linode?
I made two mistakes:
Ceph-linode installation was successful, Thank you
TASK [install octopus] **********************************************************************************************************************************************************************************************
changed: [client-000] => {
"changed": true,
"cmd": "/root/cephadm install ceph-common ceph-fuse",
"delta": "0:00:17.679857",
"end": "2020-09-24 10:44:39.809354",
"rc": 0,
"start": "2020-09-24 10:44:22.129497"
}
STDERR:
INFO:cephadm:Installing packages ['ceph-common', 'ceph-fuse']...
PLAY RECAP **********************************************************************************************************************************************************************************************************
client-000 : ok=38 changed=30 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
mds-000 : ok=41 changed=32 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
mgr-000 : ok=38 changed=31 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
mon-000 : ok=61 changed=46 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
mon-001 : ok=40 changed=31 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
mon-002 : ok=40 changed=31 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
osd-000 : ok=43 changed=34 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
osd-001 : ok=43 changed=34 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
osd-002 : ok=43 changed=34 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
real 11m33.490s
user 1m32.022s
sys 0m35.319s
[root@li2158-77 ceph-linode]# python3 linode.py destroy
Good to hear you got it work. I will leave this open as I do need to fix ceph-linode to work when running locally.
I can't start ceph-linode, the installation breaks at shell: /root/cephadm bootstrap --allow-fqdn-hostname --mon-ip {{ monitor_address }}
I replaced it to the stable version, for the developer version exactly the same error
Ceph tries to start on mon-000 but I don’t understand why it doesn’t work