Project

General

Profile

Actions

Bug #17662

closed

ceph-disk: using a regular file as a journal fails

Added by Jayashree Ajay Candadai over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Urgent
Category:
-
Target version:
-
% Done:

0%

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

Description

The return statement is missing when creating the journal space as regular file

1925         if stat.S_ISREG(mode):
1926             if getattr(args, name + '_dev'):
1927                 raise Error('%s is not a block device' % name.capitalize,
1928                             getattr(args, name))
1929             self.type = self.FILE

return is missing in the ceph-disk/main.py

So when we create the journal space we get the error:

*Notice: /Stage[main]/Main/Node[osd]/Ceph::Osd[/dev/sdc]/Exec[ceph-osd-prepare-/dev/sdc]/returns: ceph-disk: Error: <built-in method capitalize of str object at 0x7fbca1acf180> /tmp/ramdisk/journal-sdc.journal is neither a block device nor regular file*
Error: /bin/true # comment to satisfy puppet syntax requirements
set -ex
if ! test -b /dev/sdc ; then
    mkdir -p /dev/sdc
    if getent passwd ceph >/dev/null 2>&1; then
        chown -h ceph:ceph /dev/sdc
    fi
fi
ceph-disk prepare   /dev/sdc /tmp/ramdisk/journal-sdc.journal
udevadm settle
 returned 1 instead of one of [0]
Error: /Stage[main]/Main/Node[osd]/Ceph::Osd[/dev/sdc]/Exec[ceph-osd-prepare-/dev/sdc]/returns: change from notrun to 0 failed: /bin/true # comment to satisfy puppet syntax requirements
set -ex
if ! test -b /dev/sdc ; then
    mkdir -p /dev/sdc
    if getent passwd ceph >/dev/null 2>&1; then
        chown -h ceph:ceph /dev/sdc
    fi
fi
ceph-disk prepare   /dev/sdc /tmp/ramdisk/journal-sdc.journal
udevadm settle
 returned 1 instead of one of [0]

Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #17707: jewel: ceph-disk: using a regular file as a journal failsResolvedLoïc DacharyActions
Actions

Also available in: Atom PDF