Hi,
I have problems with the ceph-deploy command failing for reasons which
don't seem obvious. For instance, I was trying to add a monitor:
$ ceph-deploy mon add newmonhost
[Skipping some output]
[newmonhost][DEBUG ] checking for done path:
/var/lib/ceph/mon/ceph-newmonhost/done
[newmonhost][DEBUG ] create a done file to avoid re-doing the mon deployment
[newmonhost][DEBUG ] create the init path if it does not exist
[newmonhost][INFO ] Running command: sudo initctl emit ceph-mon
cluster=ceph id=newmonhost
[newmonhost][INFO ] Running command: sudo ceph --cluster=ceph
--admin-daemon /var/run/ceph/ceph-mon.newmonhost.asok mon_status
[newmonhost][ERROR ] admin_socket: exception getting command
descriptions: [Errno 2] No such file or directory
[newmonhost][WARNIN] monitor: mon.newmonhost, might not be running yet
[newmonhost][INFO ] Running command: sudo ceph --cluster=ceph
--admin-daemon /var/run/ceph/ceph-mon.newmonhost.asok mon_status
[newmonhost][ERROR ] admin_socket: exception getting command
descriptions: [Errno 2] No such file or directory
[newmonhost][WARNIN] monitor newmonhost does not exist in monmap
I have the keyring path specified in ceph.conf (pasted below).
What is weird is it works fine if I first copy the keyring file to
/var/lib/ceph/mon/ceph-newmonhost/keyring. Can anyone help me understand
why this step is not automated? I have had similar issues adding OSD's
before.
Some info (on the admin node):
$ ceph-deploy --version
1.5.35
$ uname -a; lsb_release -a
Linux cephadmin 3.13.0-95-generic #142-Ubuntu SMP Fri Aug 12 17:00:09
UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
$ ceph --version
ceph version 10.2.2 (45107e21c568dd033c2f0a3107dec8f0b0e58374)
$ cat ceph.conf:
mon_initial_members = monhost1, monhost2, monhost3, newmonhost
mon_host = 172.16.xx.xx,172.16.xx.xxx,172.16.xx.xxx,172.16.xx.x
mon_pg_warn_max_per_osd = 0
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
public_network = 172.16.0.0/16
rbd_default_format = 2
[osd]
#osd_mkfs_type = btrfs
#osd_mkfs_options_btrfs = -f
#osd_mount_options_btrfs = rw,noatime
[mon]
keyring = /etc/ceph/ceph.mon.keyring
Thanks for any help!
Dave
--
~~~~~~
David Welch
DevOps
ARS
http://thinkars.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com