Project

General

Profile

Actions

Bug #64548

closed

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

Added by Christian Rohmann about 2 years ago. Updated 5 months ago.

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

100%

Source:
Community (user)
Backport:
quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
backport_processed
Fixed In:
v19.3.0-3262-g85d4bc8c81
Released In:
v20.2.0~2538
Upkeep Timestamp:
2025-11-01T01:34:08+00:00

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.


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #66859: quincy: ceph-base: /var/lib/ceph/crash/posted not chowned to ceph:ceph causing ceph-crash to failRejectedKonstantin ShalyginActions
Copied to Ceph - Backport #66860: reef: ceph-base: /var/lib/ceph/crash/posted not chowned to ceph:ceph causing ceph-crash to failResolvedKonstantin ShalyginActions
Actions #1

Updated by Max Carrara about 2 years 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 2 years 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 #3

Updated by Kefu Chai over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #66859: quincy: ceph-base: /var/lib/ceph/crash/posted not chowned to ceph:ceph causing ceph-crash to fail added
Actions #5

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #66860: reef: ceph-base: /var/lib/ceph/crash/posted not chowned to ceph:ceph causing ceph-crash to fail added
Actions #6

Updated by Upkeep Bot over 1 year ago

  • Tags (freeform) set to backport_processed
Actions #7

Updated by Konstantin Shalygin over 1 year ago

Squid backport is required?

Actions #8

Updated by Konstantin Shalygin about 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to 85d4bc8c8154a98faaecc00ac40d3f127f0e1101
  • Fixed In set to v19.3.0-3262-g85d4bc8c815
  • Upkeep Timestamp set to 2025-07-11T15:09:53+00:00
Actions #10

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v19.3.0-3262-g85d4bc8c815 to v19.3.0-3262-g85d4bc8c81
  • Upkeep Timestamp changed from 2025-07-11T15:09:53+00:00 to 2025-07-14T23:39:10+00:00
Actions #11

Updated by Upkeep Bot 5 months ago

  • Released In set to v20.2.0~2538
  • Upkeep Timestamp changed from 2025-07-14T23:39:10+00:00 to 2025-11-01T01:34:08+00:00
Actions

Also available in: Atom PDF