Project

General

Profile

Actions

Bug #56639

closed

cephadm: cephadm.log logrotate fails if /var/log/ceph is writable by non-root group

Added by Adam King almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

if the /var/log/ceph dir is owned by a group other than root and that group has write access, rotating the cephadm.log will fail with

error: skipping "/var/log/ceph/cephadm.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

This is an issue because when installing the ceph-common package, it seems to create /var/log/ceph with owner/group ceph/ceph and write permissions for the group. This means a user who uses the cephadm preflight playbook (which installs ceph-common on the hosts) before running any cephadm commands (since cephadm will create the dir with owner/group root/root) will not be able to rotate this log.


Related issues 2 (0 open2 closed)

Copied to Orchestrator - Backport #56739: pacific: cephadm: cephadm.log logrotate fails if /var/log/ceph is writable by non-root groupResolvedAdam KingActions
Copied to Orchestrator - Backport #56740: quincy: cephadm: cephadm.log logrotate fails if /var/log/ceph is writable by non-root groupResolvedAdam KingActions
Actions #1

Updated by Adam King almost 2 years ago

  • Pull request ID set to 47178
Actions #2

Updated by Adam King almost 2 years ago

  • Backport set to quincy, pacific
Actions #3

Updated by Adam King over 1 year ago

  • Status changed from In Progress to Pending Backport
Actions #4

Updated by Backport Bot over 1 year ago

  • Copied to Backport #56739: pacific: cephadm: cephadm.log logrotate fails if /var/log/ceph is writable by non-root group added
Actions #5

Updated by Backport Bot over 1 year ago

  • Copied to Backport #56740: quincy: cephadm: cephadm.log logrotate fails if /var/log/ceph is writable by non-root group added
Actions #6

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #7

Updated by Adam King over 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF