Project

General

Profile

Actions

Bug #4498

closed

ceph-deploy osd create doesn't set up symlink for single node

Added by Ken Franklin about 11 years ago. Updated about 11 years ago.

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

0%

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

Description

I'm trying to determine the ceph-deploy equivalent to the mkcephfs quick start
we publish. I?m not sure how it should work so I'm not sure if I have a bug or
user error.

I am following the readme and when I get to the point of creating an osd on
/dev/sda I don't see what I expect. After creating a mount point /mnt/ceph0 I
try ceph-deploy osd create ubuntuvm1:/mnt/ceph0. I get some debug messages
and it looks ok but there is no symlink in /var/lib/ceph/osd and no osd
process running.

qauser@ubuntu-vm1:~/ceph-deploy$ ./ceph-deploy osd create
ubuntuvm1:/mnt/ceph0
DEBUG:ceph_deploy.osd:Preparing cluster ceph disks ubuntuvm1:/mnt/ceph0:
DEBUG:ceph_deploy.osd:Deploying osd to ubuntuvm1
DEBUG:ceph_deploy.osd:Host ubuntuvm1 is now ready for osd use.
DEBUG:ceph_deploy.osd:Preparing host ubuntuvm1 disk /mnt/ceph0 journal None
activate True

I Tried "osd activate" as suggested but it didn't generate the symlink:

qauser@ubuntu-vm1:~/ceph-deploy$ ./ceph-deploy osd activate ubuntuvm1:/mnt/ceph0
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/qauser/ceph-deploy/ceph_deploy/cli.py", line 95, in main
return args.func(args)
File "/home/qauser/ceph-deploy/ceph_deploy/osd.py", line 228, in osd
activate(args, cfg)
File "/home/qauser/ceph-deploy/ceph_deploy/osd.py", line 194, in activate
' '.join(':'.join(t) for t in args.disk),
File "/home/qauser/ceph-deploy/ceph_deploy/osd.py", line 194, in <genexpr>
' '.join(':'.join(t) for t in args.disk),
TypeError: sequence item 2: expected string, NoneType found

Actions #1

Updated by Ian Colle about 11 years ago

  • Assignee set to Sage Weil
  • Priority changed from Normal to High
Actions #2

Updated by Dan Mick about 11 years ago

  • Assignee changed from Sage Weil to Dan Mick

I ran across this too, and have a fix; the problem is just in the log statement.

Actions #3

Updated by Dan Mick about 11 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Dan Mick about 11 years ago

  • Status changed from Fix Under Review to Resolved

commit:3a74cfcda2f37550e8f68d0d5b664151225a9244

Actions

Also available in: Atom PDF