Project

General

Profile

Bug #5849

ceph-deploy install does not create ceph.conf in /etc/ (CentOS and Ubuntu)

Added by Alfredo Deza over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
ceph-deploy
Target version:
-
% Done:

0%

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

Description

For some reason, `ceph-deploy install {node}` is failing to create the config files in `/etc/ceph/`

History

#1 Updated by Anonymous over 10 years ago

  • Subject changed from ceph-deploy install does not create ceph.conf in /etc/ (CentOS) to ceph-deploy install does not create ceph.conf in /etc/ (CentOS and Ubuntu)

This problem also appears on Ubuntu

ubuntu@vpm018:~/ceph-deploy$ ./ceph-deploy mon create vpm017 vpm018
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts vpm017 vpm018
[ceph_deploy.mon][DEBUG ] detecting platform for host vpm017 ...
[ceph_deploy.mon][INFO  ] distro info: Ubuntu 12.04 precise
[vpm017][DEBUG ] deploying mon to vpm017
[vpm017][DEBUG ] remote hostname: vpm017
[vpm017][INFO  ] creating path: /var/lib/ceph/mon/ceph-vpm017
[vpm017][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-vpm017/done
[vpm017][DEBUG ] done path does not exist: /var/lib/ceph/mon/ceph-vpm017/done
[vpm017][INFO  ] creating keyring file: /var/lib/ceph/tmp/ceph-vpm017.mon.keyring
[vpm017][INFO  ] create the monitor keyring file
[vpm017][ERROR ] Traceback (most recent call last):
[vpm017][ERROR ]   File "/home/ubuntu/ceph-deploy/ceph_deploy/util/decorators.py", line 10, in inner
[vpm017][ERROR ]   File "/home/ubuntu/ceph-deploy/ceph_deploy/hosts/common.py", line 3, in write_monitor_keyring
[vpm017][ERROR ] NameError: global name 'keyring' is not defined
[vpm017][INFO  ] Running command: ceph-mon --cluster ceph --mkfs -i vpm017 --keyring /var/lib/ceph/tmp/ceph-vpm017.mon.keyring
[vpm017][ERROR ] Traceback (most recent call last):
[vpm017][ERROR ]   File "/home/ubuntu/ceph-deploy/ceph_deploy/hosts/common.py", line 63, in mon_create
[vpm017][ERROR ]   File "/home/ubuntu/ceph-deploy/ceph_deploy/util/decorators.py", line 10, in inner
[vpm017][ERROR ]   File "/home/ubuntu/ceph-deploy/ceph_deploy/util/wrappers.py", line 6, in remote_call
[vpm017][ERROR ]   File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
[vpm017][ERROR ]     raise CalledProcessError(retcode, cmd)
[vpm017][ERROR ] CalledProcessError: Command '['ceph-mon', '--cluster', 'ceph', '--mkfs', '-i', 'vpm017', '--keyring', '/var/lib/ceph/tmp/ceph-vpm017.mon.keyring']' returned non-zero exit status 10
[vpm017][ERROR ] unable to find any monitors in conf. please specify monitors via -m monaddr or -c ceph.conf
[vpm017][ERROR ] ceph-mon: warning: no initial monitors; must use admin socket to feed hints
[vpm017][ERROR ] ceph-mon: generated monmap has no fsid; use '--fsid <uuid>'
[vpm017][ERROR ] 2013-08-02 23:07:08.205039 7f0e5ff4b780 -1 did not load config file, using default settings.
[vpm017][INFO  ] unlinking keyring file /var/lib/ceph/tmp/ceph-vpm017.mon.keyring
Traceback (most recent call last):
  File "./ceph-deploy", line 9, in <module>
    load_entry_point('ceph-deploy==1.1', 'console_scripts', 'ceph-deploy')()
  File "/home/ubuntu/ceph-deploy/ceph_deploy/cli.py", line 114, in main
    return args.func(args)
  File "/home/ubuntu/ceph-deploy/ceph_deploy/mon.py", line 175, in mon
    mon_create(args)
  File "/home/ubuntu/ceph-deploy/ceph_deploy/mon.py", line 58, in mon_create
    distro.mon.create(distro, rlogger, args, monitor_keyring)
  File "/home/ubuntu/ceph-deploy/ceph_deploy/hosts/debian/mon/create.py", line 7, in create
    common.mon_create(distro, logger, args, monitor_keyring, hostname)
  File "/home/ubuntu/ceph-deploy/ceph_deploy/hosts/common.py", line 68, in mon_create
    distro.sudo_conn.modules.os.unlink(keyring)
  File "/home/ubuntu/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/proxy.py", line 255, in <lambda>
    (conn.operator(type_, self, args, kwargs))
  File "/home/ubuntu/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/connection.py", line 66, in operator
    return self.send_request(type_, (object, args, kwargs))
  File "/home/ubuntu/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/baseconnection.py", line 329, in send_request
    return self.__handle(m)
  File "/home/ubuntu/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/baseconnection.py", line 645, in __handle
    raise e
pushy.protocol.proxy.ExceptionProxy: [Errno 2] No such file or directory: '/var/lib/ceph/tmp/ceph-vpm017.mon.keyring'
ubuntu@vpm018:~/ceph-deploy$ ls /etc/ceph
rbdmap

#2 Updated by Tamilarasi muthamizhan over 10 years ago

  • Priority changed from Urgent to Immediate

#3 Updated by Tamilarasi muthamizhan over 10 years ago

and this was on ceph branch: next

#4 Updated by Alfredo Deza over 10 years ago

  • Status changed from New to Need More Info
  • Priority changed from Immediate to Urgent

Who's responsibility is to create `/etc/ceph.conf` ? ceph-deploy?

Because I can't find a place where `ceph-deploy install` did (or does) this. When installing ceph's DEB/RPM, is it supposed to ever create that file?

#5 Updated by Sage Weil over 10 years ago

install should installt he deb/rpm which will mkdir /etc/ceph. mon create and osd create will put ceph.conf there. ceph-create-keys will create and copy the keyring files there.

#6 Updated by Alfredo Deza over 10 years ago

  • Status changed from Need More Info to Resolved

Confirmed the lack of writing to the configuration file when `mon create` was being called.

Fixed and merged to ceph-deploy master's branch

Hash: e952271b59600805a60b1e7d933b896f564c92e0

Also available in: Atom PDF