[ceph-users] ceph-deploy error

Vikas Rana vikasrana3 at gmail.com
Fri Oct 19 07:58:11 PDT 2018


Hi there,
While upgrading from jewel to luminous, all packages wereupgraded but while
adding MGR with cluster name CEPHDR, it fails. It works with default
cluster name CEPH

root at vtier-P-node1:~# sudo su - ceph-deploy
ceph-deploy at vtier-P-node1:~$ ceph-deploy --ceph-conf /etc/ceph/cephdr.conf
mgr create vtier-P-node1
[ceph_deploy.conf][DEBUG ] found configuration file at:
/home/ceph-deploy/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (2.0.1): /usr/bin/ceph-deploy --ceph-conf
/etc/ceph/cephdr.conf mgr create vtier-P-node1
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  verbose                       : False
[ceph_deploy.cli][INFO  ]  mgr                           :
[('vtier-P-node1', 'vtier-P-node1')]
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
[ceph_deploy.cli][INFO  ]  subcommand                    : create
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  cd_conf                       :
<ceph_deploy.conf.cephdeploy.Conf instance at 0x7fd8e28084d0>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  func                          : <function mgr at
0x7fd8e3074938>
[ceph_deploy.cli][INFO  ]  ceph_conf                     :
/etc/ceph/cephdr.conf
[ceph_deploy.cli][INFO  ]  default_release               : False
[ceph_deploy.mgr][DEBUG ] Deploying mgr, cluster ceph hosts
vtier-P-node1:vtier-P-node1
[ceph_deploy][ERROR ] RuntimeError: bootstrap-mgr keyring not found; run
'gatherkeys'

ceph-deploy at vtier-P-node1:~$ ceph-deploy --ceph-conf /etc/ceph/cephdr.conf
gatherkeys vtier-P-node1
[ceph_deploy.conf][DEBUG ] found configuration file at:
/home/ceph-deploy/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (2.0.1): /usr/bin/ceph-deploy --ceph-conf
/etc/ceph/cephdr.conf gatherkeys vtier-P-node1
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  verbose                       : False
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  cd_conf                       :
<ceph_deploy.conf.cephdeploy.Conf instance at 0x7fec48fee560>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  mon                           : ['vtier-P-node1']
[ceph_deploy.cli][INFO  ]  func                          : <function
gatherkeys at 0x7fec498e06e0>
[ceph_deploy.cli][INFO  ]  ceph_conf                     :
/etc/ceph/cephdr.conf
[ceph_deploy.cli][INFO  ]  default_release               : False
[ceph_deploy.gatherkeys][INFO  ] Storing keys in temp directory
/tmp/tmpqAmHsz
[vtier-P-node1][DEBUG ] connection detected need for sudo
[vtier-P-node1][DEBUG ] connected to host: vtier-P-node1
[vtier-P-node1][DEBUG ] detect platform information from remote host
[vtier-P-node1][DEBUG ] detect machine type
[vtier-P-node1][DEBUG ] find the location of an executable
[vtier-P-node1][INFO  ] Running command: sudo /sbin/initctl version
[vtier-P-node1][DEBUG ] get remote short hostname
[vtier-P-node1][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: vtier-P-node1
[ceph_deploy.gatherkeys][ERROR ] Failed to connect to host:vtier-P-node1
[ceph_deploy.gatherkeys][INFO  ] Destroy temp directory /tmp/tmpqAmHsz
[ceph_deploy][ERROR ] RuntimeError: Failed to connect any mon

ceph-deploy at vtier-P-node1:~$ ceph -s
  cluster:
    id:     ef5cea62-e9c8-4f7b-95bb-4aea414a2ebb
    health: HEALTH_WARN
            no active mgr

  services:
    mon: 1 daemons, quorum vtier-P-node1
    mgr: no daemons active
    osd: 3 osds: 1 up, 1 in

  data:
    pools:   0 pools, 0 pgs
    objects: 0 objects, 0B
    usage:   0B used, 0B / 0B avail
    pgs:


Thanks,
-Vikas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20181019/66f01d5d/attachment.html>


More information about the ceph-users mailing list