Project

General

Profile

Actions

Bug #4916

closed

ceph-deploy: mon create fails on bobtail branch in centos 6.3

Added by Tamilarasi muthamizhan almost 11 years ago. Updated almost 11 years ago.

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

0%

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

Description

in followup with a user from the list, tried this on my local machines, and this did not work

tamil@ubuntu:~/ceph-deploy-latest/debian/ceph-deploy$ ./ceph-deploy mon create burnupi34
Traceback (most recent call last):
File "./ceph-deploy", line 9, in <module>
load_entry_point('ceph-deploy==0.0.1', 'console_scripts', 'ceph-deploy')()
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/ceph_deploy/cli.py", line 112, in main
return args.func(args)
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/ceph_deploy/mon.py", line 234, in mon
mon_create(args)
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/ceph_deploy/mon.py", line 138, in mon_create
init=init,
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/proxy.py", line 255, in <lambda>
(conn.operator(type_, self, args, kwargs))
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 66, in operator
return self.send_request(type_, (object, args, kwargs))
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 323, in send_request
return self.__handle(m)
File "/home/tamil/ceph-deploy-latest/debian/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 639, in __handle
raise e
pushy.protocol.proxy.ExceptionProxy: [Errno 2] No such file or directory: '/var/lib/ceph/mon/ceph-burnupi34'

Actions #1

Updated by Ian Colle almost 11 years ago

  • Assignee changed from Sage Weil to Anonymous
Actions #2

Updated by Anonymous almost 11 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Peter Wienemann almost 11 years ago

I am having the same problem on Debian wheezy. After some debugging I found that the cause of the problem is in the file mon.py, line 35, of the ceph-deploy code. Instead of

if not os.path.exists(path):
os.mkdir(path)

the code should be

if not os.path.exists(path):
os.makedirs(path)

such that non-existing parent directories are automatically created ("mkdir -p" behaviour).

Actions #4

Updated by Sage Weil almost 11 years ago

  • Status changed from In Progress to 4

commit:96c001021e6dd06b43686de7040f78c484869344 fixes the mkdir -p thing. Does that fix the centos problem too?

Actions #5

Updated by Sage Weil almost 11 years ago

  • Status changed from 4 to Resolved
Actions

Also available in: Atom PDF