Project

General

Profile

Actions

Bug #65747

closed
PD PD

common/admin_socket: support saving json output to a file local to the daemon

Bug #65747: common/admin_socket: support saving json output to a file local to the daemon

Added by Patrick Donnelly over 2 years ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Category:
common
Target version:
Due date:
% Done:

100%

Source:
Development
Backport:
squid,reef,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v19.3.0-2355-g3767887144
Released In:
v20.2.0~2845
Upkeep Timestamp:
2025-11-01T00:54:49+00:00

Description

The ceph tell mds.X cache dump and ceph tell mds.X ops commands have a useful --path argument that directs the daemon to save the dump of the output to a file local the daemon. This has several advantages:

  • We don't need to construct the JSON output in memory, which may be many gigabytes.
  • Streaming writes to a local file is significantly faster than sending the data over the ceph messenger.
  • The command spends as little time as possible holding relevant locks.

However, only some commands support this and we could make it generic to the admin socket interface. So, add a generic --output-file argument to achieve this.

The main concern with this is security (telling the daemon to write to arbitrary files) but this is gated by the session caps which require "allow_all" and that's typically only valid for the client.admin.


Related issues 3 (0 open — 3 closed)

Copied to Ceph - Backport #66185: squid: common/admin_socket: support saving json output to a file local to the daemonResolvedPatrick Donnelly

Actions
Copied to Ceph - Backport #66186: quincy: common/admin_socket: support saving json output to a file local to the daemonRejectedPatrick Donnelly

Actions
Copied to Ceph - Backport #66187: reef: common/admin_socket: support saving json output to a file local to the daemonRejectedPatrick Donnelly

Actions

PD Updated by Patrick Donnelly over 2 years ago Actions #1

  • Status changed from New to In Progress
  • Pull request ID set to 57215

PD Updated by Patrick Donnelly over 2 years ago Actions #2

  • Status changed from In Progress to Pending Backport

UB Updated by Upkeep Bot over 2 years ago Actions #3

  • Copied to Backport #66185: squid: common/admin_socket: support saving json output to a file local to the daemon added

UB Updated by Upkeep Bot over 2 years ago Actions #4

  • Copied to Backport #66186: quincy: common/admin_socket: support saving json output to a file local to the daemon added

UB Updated by Upkeep Bot over 2 years ago Actions #5

  • Copied to Backport #66187: reef: common/admin_socket: support saving json output to a file local to the daemon added

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Merge Commit set to 3767887144d6f1556b42b31a9d6142e4725a4909
  • Fixed In set to v19.3.0-2355-g3767887144d
  • Upkeep Timestamp set to 2025-07-08T22:38:53+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #8

  • Fixed In changed from v19.3.0-2355-g3767887144d to v19.3.0-2355-g3767887144
  • Upkeep Timestamp changed from 2025-07-08T22:38:53+00:00 to 2025-07-14T17:10:48+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #9

  • Released In set to v20.2.0~2845
  • Upkeep Timestamp changed from 2025-07-14T17:10:48+00:00 to 2025-11-01T00:54:49+00:00

KS Updated by Konstantin Shalygin 8 months ago Actions #10

  • Tracker changed from Feature to Bug
  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
  • Regression set to No
  • Severity set to 3 - minor
Actions

Also available in: PDF Atom