From: Loic Dachary Date: Tue, 9 May 2017 10:32:51 +0000 (+0200) Subject: ceph-disk: separate ceph-osd --check-needs-* logs X-Git-Tag: v11.2.1~61^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f04eb66d365c088e0e6985864d54bdc4fc3d3bfd;p=ceph.git ceph-disk: separate ceph-osd --check-needs-* logs 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 (cherry picked from commit c7b3c46bd63b78475868e405bf20d9c142f0336a) --- diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index 9fca6484e92..798b325ae6d 100755 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -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(),