From c7b3c46bd63b78475868e405bf20d9c142f0336a Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 9 May 2017 12:32:51 +0200 Subject: [PATCH] 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 --- src/ceph-disk/ceph_disk/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index bce10183b51ca..a98350f99a0ce 100755 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -1520,6 +1520,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(), @@ -1527,6 +1528,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(), @@ -1534,6 +1536,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(), -- 2.39.5