Project

General

Profile

Actions

Bug #19823

closed

ceph-disk prepare/activate does not work properly using setuser/setgroup (filestore)

Added by Burkhard Linke almost 7 years ago. Updated about 3 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
% Done:

0%

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

Description

If 'ceph-disk prepare ...' is invoked on a new host without any existing OSDs, ceph-disk uses

ceph-osd --check-allows-journal -i 0 --cluster ceph --setuser ceph --setgroup ceph

or a similar command to check whether journals are allowed for the OSD backend. This fails with

unable to stat setuser_match_path /var/lib/ceph/$type/$cluster-$id: (2) No such file or directory

if the corresponding directory does not exists. Faking the directory (manual mkdir + chown) results in ceph-disk prepare to succeed.

The attempt to activate the new OSD using ceph-disk activate /dev/sdb in this example also fails due to the missing directory:
got monmap epoch 23
mount_activate: Failed to activate
ceph-disk: Error: ['ceph-osd', '--cluster', 'ceph', ...., '--setuser', 'ceph', '--setgroup', 'ceph'] failed : unable to stat setuser_match_path /var/lib/ceph/$type/$cluster-$id: (2) No such file or directory

Expected: preparation / activation of new OSD
Got: error due to missing OSD directory

Actions #1

Updated by Sage Weil about 3 years ago

  • Status changed from New to Won't Fix
Actions

Also available in: Atom PDF