]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: separate ceph-osd --check-needs-* logs 16135/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 9 May 2017 10:32:51 +0000 (12:32 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 5 Jul 2017 21:10:50 +0000 (23:10 +0200)
It is using the OSD id zero but have nothing to do with OSD zero and
this is confusing to the user. The log themselves do not need to be kept
around and are stored in the run directory so that they can be disposed
of after reboot.

Fixes: http://tracker.ceph.com/issues/19888
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit c7b3c46bd63b78475868e405bf20d9c142f0336a)

src/ceph-disk/ceph_disk/main.py

index 9fca6484e920ac120957364eed46b5bcc2ea1ce2..798b325ae6d895c2d9fefc4c7b6af7fa1ae4a6e5 100755 (executable)
@@ -1468,6 +1468,7 @@ def check_journal_reqs(args):
     _, _, allows_journal = command([
         'ceph-osd', '--check-allows-journal',
         '-i', '0',
+        '--log-file', '$run_dir/$cluster-osd-check.log',
         '--cluster', args.cluster,
         '--setuser', get_ceph_user(),
         '--setgroup', get_ceph_group(),
@@ -1475,6 +1476,7 @@ def check_journal_reqs(args):
     _, _, wants_journal = command([
         'ceph-osd', '--check-wants-journal',
         '-i', '0',
+        '--log-file', '$run_dir/$cluster-osd-check.log',
         '--cluster', args.cluster,
         '--setuser', get_ceph_user(),
         '--setgroup', get_ceph_group(),
@@ -1482,6 +1484,7 @@ def check_journal_reqs(args):
     _, _, needs_journal = command([
         'ceph-osd', '--check-needs-journal',
         '-i', '0',
+        '--log-file', '$run_dir/$cluster-osd-check.log',
         '--cluster', args.cluster,
         '--setuser', get_ceph_user(),
         '--setgroup', get_ceph_group(),