Project

General

Profile

Actions

Bug #64548

open

ceph-base: /var/lib/ceph/crash/posted not chowned to ceph:ceph causing ceph-crash to fail

Added by Christian Rohmann about 2 months ago. Updated about 1 month ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

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

Description

The Debian package ceph-base postinst applies some chown to ceph:ceph in https://github.com/ceph/ceph/blob/87f6091b9e3c22af23199d5dc07c1ba57029ea6b/debian/ceph-base.postinst#L36

This also covers the folder /var/lib/ceph/crash, but not the subfolder posted which is also part of the package.
This then causes ceph-crash being unable to move posted crashes to this subfolder:

ceph-crash[3797824]: ERROR:ceph-crash:Error scraping /var/lib/ceph/crash: [Errno 13] Permission denied: '/var/lib/ceph/crash/2024-02-23T06:10:15.784710Z_8eed1e80-1aaa-41a6-a41b-f20866aa17a0' -> '/var/lib/ceph/crash/posted/2024-02-23T06:10:15.784710Z_8eed1e80-1aaa-41a6-a41b-f20866aa17a0'

1) One solution could be to have ceph-crash (https://github.com/ceph/ceph/blob/main/src/ceph-crash.in) create this subfolder itself and just remove it from the debian package at
https://github.com/ceph/ceph/blob/87f6091b9e3c22af23199d5dc07c1ba57029ea6b/debian/ceph-base.dirs#L9C1-L9C26 so it's not placed there on package install.

2) Another would be to extend element list for the for loop with /var/lib/ceph/crash/*.

I gladly send in a patch with whatever solution you like better.

Actions #1

Updated by Max Carrara about 1 month ago

Opened a PR for this, as this was something I've been working on as part of a patch series.

You can find the PR here: https://github.com/ceph/ceph/pull/55917
Original patch: https://lists.proxmox.com/pipermail/pve-devel/2024-February/061803.html

Actions #2

Updated by Konstantin Shalygin about 1 month ago

  • Status changed from New to Fix Under Review
  • Target version set to v19.0.0
  • Source set to Community (user)
  • Backport set to quincy reef
  • Pull request ID set to 55917
Actions

Also available in: Atom PDF