Project

General

Profile

Actions

Feature #58072

closed
DP DP

enable 'ceph fs new' use 'ceph fs set' options

Feature #58072: enable 'ceph fs new' use 'ceph fs set' options

Added by Dhairya Parmar about 4 years ago. Updated about 1 year ago.

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

0%

Source:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Client, MDS
Labels (FS):
task(easy)
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-1116-g64c99bf737
Released In:
v20.2.0~3184
Upkeep Timestamp:
2025-11-01T01:21:22+00:00

Description

As discussed in PR [1], this flag would come handy in situations like 'ceph fs new --recover'. Need to push this enhancement after [1] is merged.

[1] https://github.com/ceph/ceph/pull/48720

PD Updated by Patrick Donnelly about 4 years ago Actions #1

I think at this point we should consider making it possible to set arbitrary settings on a fs during creation. i.e. anything `ceph fs set` can do.

DP Updated by Dhairya Parmar over 3 years ago Actions #2

Patrick Donnelly wrote:

I think at this point we should consider making it possible to set arbitrary settings on a fs during creation. i.e. anything `ceph fs set` can do.

Arbitrary setting? I'm not sure if i understand this correctly but https://github.com/ceph/ceph/pull/48720 added option `refuse_client_session` to `ceph fs set`. Did I misinterpret this or do I need to do something else?

DP Updated by Dhairya Parmar over 3 years ago Actions #3

Dhairya Parmar wrote:

Patrick Donnelly wrote:

I think at this point we should consider making it possible to set arbitrary settings on a fs during creation. i.e. anything `ceph fs set` can do.

Arbitrary setting? I'm not sure if i understand this correctly but https://github.com/ceph/ceph/pull/48720 added option `refuse_client_session` to `ceph fs set`. Did I misinterpret this or do I need to do something else?

Or did you mean to allow `fs new` to support all options of `fs set`?

RD Updated by Rishabh Dave over 3 years ago Actions #4

Patrick Donnelly wrote:

I think at this point we should consider making it possible to set arbitrary settings on a fs during creation. i.e. anything `ceph fs set` can do.

In that case perhaps it's better to add an option that allows setting key-value pairs to ceph fs new command. This would look like following -

ceph fs new --set-flag max_mds 6
ceph fs new --set-flag refuse_client_session true
ceph fs new --set-flag session timeout 400

PD Updated by Patrick Donnelly over 3 years ago Actions #5

Rishabh Dave wrote:

Patrick Donnelly wrote:

I think at this point we should consider making it possible to set arbitrary settings on a fs during creation. i.e. anything `ceph fs set` can do.

In that case perhaps it's better to add an option that allows setting key-value pairs to ceph fs new command. This would look like following -
[...]

Yes, this is exactly what I mean. But I would use `--set <key> <value>` instead. A "flag" is conventionally a binary option.

DP Updated by Dhairya Parmar over 3 years ago Actions #6

Patrick Donnelly wrote:

Rishabh Dave wrote:

Patrick Donnelly wrote:

I think at this point we should consider making it possible to set arbitrary settings on a fs during creation. i.e. anything `ceph fs set` can do.

In that case perhaps it's better to add an option that allows setting key-value pairs to ceph fs new command. This would look like following -
[...]

Yes, this is exactly what I mean. But I would use `--set <key> <value>` instead. A "flag" is conventionally a binary option.

Alright, thanks

DP Updated by Dhairya Parmar over 3 years ago Actions #7

  • Subject changed from add --refuse_client_session flag to 'ceph fs new' command to enable 'ceph fs new' use 'ceph fs set' options
  • Status changed from New to In Progress
  • Pull request ID set to 51993

DP Updated by Dhairya Parmar over 3 years ago Actions #8

  • Status changed from In Progress to Fix Under Review

RD Updated by Rishabh Dave over 2 years ago Actions #9

  • Status changed from Fix Under Review to Resolved

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

  • Merge Commit set to 64c99bf7370371f7f4ff94721c94e57ebbaf8606
  • Fixed In set to v19.3.0-1116-g64c99bf7370
  • Upkeep Timestamp set to 2025-07-12T21:37:57+00:00

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

  • Fixed In changed from v19.3.0-1116-g64c99bf7370 to v19.3.0-1116-g64c99bf737
  • Upkeep Timestamp changed from 2025-07-12T21:37:57+00:00 to 2025-07-15T00:37:12+00:00

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

  • Released In set to v20.2.0~3184
  • Upkeep Timestamp changed from 2025-07-15T00:37:12+00:00 to 2025-11-01T01:21:22+00:00
Actions

Also available in: PDF Atom