Uncategorized

OSD on Debian Jessie : No cluster conf found

The problem is in the ceph-disk code.
ceph-disk prepare has a following log on the destination node

# ceph-disk -v prepare /dev/vdb
command: Running command: 
/usr/bin/ceph-osd --cluster=None --show-config-value=fsid

The value of cluster is None and that is incorrect. It must be ceph.

# /usr/bin/ceph-osd --cluster=None --show-config-value=fsid
00000000-0000-0000-0000-000000000000
# /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
68eabcd3-a4fd-4c80-9e9c-56577d841234

The code change involved the following in /usr/sbin/ceph-disk:

prepare_parser.add_argument(
    '--cluster
    metavar='NAME', default='ceph', # added the parameter `default`
    help='cluster name to assign this disk to',
  )

  • diff output
<         metavar='NAME',
---
>         metavar='NAME', default='ceph',

Written with StackEdit.

Advertisements

Categories: Uncategorized

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.