Skip to content

Commit

Permalink
Merge pull request #12947 from smatzek/fix_18538
Browse files Browse the repository at this point in the history
ceph-disk: use correct user in check_journal_req

Reviewed-by: Alfredo Deza <adeza@redhat.com>
  • Loading branch information
alfredodeza committed Jan 19, 2017
2 parents 5db320c + bcf7514 commit 3e75c6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ceph-disk/ceph_disk/main.py
Expand Up @@ -1425,16 +1425,22 @@ def check_journal_reqs(args):
'ceph-osd', '--check-allows-journal',
'-i', '0',
'--cluster', args.cluster,
'--setuser', get_ceph_user(),
'--setgroup', get_ceph_group(),
])
_, _, wants_journal = command([
'ceph-osd', '--check-wants-journal',
'-i', '0',
'--cluster', args.cluster,
'--setuser', get_ceph_user(),
'--setgroup', get_ceph_group(),
])
_, _, needs_journal = command([
'ceph-osd', '--check-needs-journal',
'-i', '0',
'--cluster', args.cluster,
'--setuser', get_ceph_user(),
'--setgroup', get_ceph_group(),
])
return (not allows_journal, not wants_journal, not needs_journal)

Expand Down

0 comments on commit 3e75c6b

Please sign in to comment.