Project

General

Profile

Actions

Bug #6223

closed

error generating keys

Added by jordi arcas over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi!
I'm trying to prepare an admin and server node with ceph-deploy.
I've configured SHH, hostnames and I've installed Ceph on my server node.
But when I create the monitor, the subdirectories bootstrap-mds and bootstrap-osd don't contain keyrings...

As consequence, when I execute ceph-deploy gatherkeys appear three warnings because don't find these keys.

I've tried to solve this error doing:

Disabling iptables and ufw.
Checking user's permissions
Checking hostnames

I've followed all the steps that says in this thread http://tracker.ceph.com/issues/4924, and I've cloned the branch which solved a similar problem, but it don't works...

Could you give me a solution?

Thanks!!

ceph.log:

[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts ceph-node1
[ceph_deploy.mon][DEBUG ] detecting platform for host ceph-node1 ...
[ceph_deploy.mon][INFO ] distro info: Ubuntu 12.04 precise
[ceph-node1][DEBUG ] deploying mon to ceph-node1
[ceph-node1][DEBUG ] remote hostname: XXXX
[ceph-node1][INFO ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph-node1][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-XXXX/done
[ceph-node1][INFO ] create a done file to avoid re-doing the mon deployment
[ceph-node1][INFO ] create the init path if it does not exist
[ceph-node1][INFO ] Running command: initctl emit ceph-mon cluster=ceph id=XXXX
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph-node1 for /etc/ceph/ceph.client.admin.keyring
[ceph_deploy.gatherkeys][WARNING] Unable to find /etc/ceph/ceph.client.admin.keyring on ['ceph-node1']
[ceph_deploy.gatherkeys][DEBUG ] Have ceph.mon.keyring
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph-node1 for /var/lib/ceph/bootstrap-osd/ceph.keyring
[ceph_deploy.gatherkeys][WARNING] Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['ceph-node1']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph-node1 for /var/lib/ceph/bootstrap-mds/ceph.keyring
[ceph_deploy.gatherkeys][WARNING] Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['ceph-node1']

Files

ceph.txt (29.7 KB) ceph.txt jordi arcas, 09/05/2013 01:25 AM
ceph.txt (8.72 KB) ceph.txt jordi arcas, 09/05/2013 09:36 AM
Actions #1

Updated by Sage Weil over 10 years ago

  • Status changed from New to Need More Info

can you attach your ceph.conf, /etc/hosts from the host where the mon is, and the output from 'ceph daemon mon.`hostname` mon_status'?

thanks!

Actions #2

Updated by jordi arcas over 10 years ago

Hi! I attach you all the logs I found

Thanks!!

Actions #3

Updated by Sage Weil over 10 years ago

jordi arcas wrote:

Hi! I attach you all the logs I found

Thanks!!

Heh, it was actually the IPs and hostnames you redacted that I wanted to verify. Can you confirm that the hostname is ceph-node1? If not, that is almost definitely your problem. The name you specify for 'ceph-deploy new MON' should be the remote hostname, or (if that doesn't match what dns says) HOSTNAME:fqdn (ceph-deploy new XXXX:ceph-node1) where XXXX matches the hostname. Can you give that a try?

If that doesn't do it, I'm curious what ceph-create-keys --cluster ceph -i `hostname` says...

Actions #4

Updated by jordi arcas over 10 years ago

HI Sage,
It doesn't works...
I've changed the hostname wich really is NCSL007.
I attach you all logs with the new hostname

Thanks,

Jordi

Actions #5

Updated by Sage Weil over 10 years ago

jordi arcas wrote:

HI Sage,
It doesn't works...
I've changed the hostname wich really is NCSL007.
I attach you all logs with the new hostname

Thanks,

Jordi

what do you get from 'ceph-create-keys -v --cluster ceph -i NCSL007' ?

Actions #6

Updated by jordi arcas over 10 years ago

Hi!!
I've reinstalled Ceph with the new hostname and it's working fine now!! :)
Thanks a lot!

Actions #7

Updated by Sage Weil over 10 years ago

  • Status changed from Need More Info to Resolved
Actions

Also available in: Atom PDF