Bug #5777
closedceph-deploy: gatherkeys fails on ubuntu precise
0%
Description
ceph-deploy gatherkeys fails as ceph-create-keys is stuck up when trying to start the monitor.
this is on ceph -next branch [ceph version 0.67-rc2-129-gc36c280 ]
ubuntu@mira038:~/cdep/ceph-deploy$ ./ceph-deploy mon create mira038 mira016 mira057 ubuntu@mira038:~/cdep/ceph-deploy$ ./ceph-deploy gatherkeys mira057 Unable to find /etc/ceph/ceph.client.admin.keyring on ['mira057'] Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['mira057'] Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['mira057'] ubuntu@mira038:~/cdep/ceph-deploy$ ./ceph-deploy gatherkeys mira057 Unable to find /etc/ceph/ceph.client.admin.keyring on ['mira057'] Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['mira057'] Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['mira057'] ubuntu@mira038:~/cdep/ceph-deploy$ ubuntu@mira038:~/cdep/ceph-deploy$ ./ceph-deploy gatherkeys mira057 Unable to find /etc/ceph/ceph.client.admin.keyring on ['mira057'] Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['mira057'] Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['mira057'] ubuntu@mira038:~/cdep/ceph-deploy$ ps -ef | grep ceph root 21592 1 0 17:31 ? 00:00:00 /usr/bin/ceph-mon --cluster=ceph -i mira038 -f root 21593 1 0 17:31 ? 00:00:00 /usr/bin/python /usr/sbin/ceph-create-keys --cluster=ceph -i mira038 root 21607 21593 0 17:31 ? 00:00:00 /usr/bin/python /usr/bin/ceph --cluster=ceph --admin-daemon=/var/run/ceph/ceph-mon.mira038.asok mon_status ubuntu@mira057:~$ ps -ef | grep ceph root 9266 1 0 17:31 ? 00:00:00 /usr/bin/ceph-mon --cluster=ceph -i mira057 -f root 9267 1 0 17:31 ? 00:00:00 /usr/bin/python /usr/sbin/ceph-create-keys --cluster=ceph -i mira057 root 9293 9267 0 17:31 ? 00:00:00 /usr/bin/python /usr/bin/ceph --cluster=ceph --admin-daemon=/var/run/ceph/ceph-mon.mira057.asok mon_status ubuntu 9499 2566 0 17:36 pts/1 00:00:00 grep --color=auto ceph ubuntu@mira016:~$ ps -ef | grep ceph root 20868 1 0 17:31 ? 00:00:00 /usr/bin/ceph-mon --cluster=ceph -i mira016 -f root 20869 1 0 17:31 ? 00:00:00 /usr/bin/python /usr/sbin/ceph-create-keys --cluster=ceph -i mira016 root 20885 20869 0 17:31 ? 00:00:00 /usr/bin/python /usr/bin/ceph --cluster=ceph --admin-daemon=/var/run/ceph/ceph-mon.mira016.asok mon_status ubuntu 20897 29823 0 17:33 pts/0 00:00:00 grep --color=auto ceph
Updated by vlad karm over 10 years ago
Same here
Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-49-generic x86_64)
- ceph version 0.61.7 (8f010aff684e820ecc837c25ac77c7a05d7191ff)
Updated by Tamilarasi muthamizhan over 10 years ago
- Status changed from New to Resolved
seems to work fine on ceph version 0.67-rc2-184-g1cb3216-1precise, ie the latest next branch.
Updated by vlad karm over 10 years ago
Same again on
Ubuntu 13.04 (GNU/Linux 3.8.0-19-generic x86_64)
root@manage:~/cluster# ceph-deploy install --dev next node01
OK
root@manage:~/cluster# ceph-deploy mon create node01
ceph-mon: set fsid to f0983fbf-2cd5-4986-946d-5620aacdd218
root@manage:~/cluster# ceph-deploy gatherkeys node01
Unable to find /etc/ceph/ceph.client.admin.keyring on ['node01']
Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['node01']
Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['node01']
root@manage:~/cluster#
Updated by Sage Weil over 10 years ago
what is the output on the node01 from 'ceph-create-keys -i `hostname`' ?
Updated by vlad karm over 10 years ago
root@node01:~# ceph-create-keys -i node01
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket returned no data
^CTraceback (most recent call last):
File "/usr/sbin/ceph-create-keys", line 227, in <module>
main()
File "/usr/sbin/ceph-create-keys", line 213, in main
wait_for_quorum(cluster=args.cluster, mon_id=args.id)
File "/usr/sbin/ceph-create-keys", line 39, in wait_for_quorum
time.sleep(1)
Updated by Sage Weil over 10 years ago
does /var/run/ceph/ceph-mon.node01.asok exist? what happens if you do 'ceph --admin-daemon /var/run/ceph/ceph-mon.node01.asok help'? mon_status?