Project

General

Profile

Feature #38370

ceph CLI ability to change file ownership

Added by Sébastien Han 3 months ago. Updated 17 days ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Start date:
02/18/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous, mimic
Reviewed:
Affected Versions:
Component(RADOS):
Pull request ID:

Description

When creating/fetching a key/monmap/crushmap it might be useful (especially for file used by a process later) to apply the right permission at request time.
The idea is to implement the --setuser and --setgroup flag that get be used like this:

[root@ceph-nano-test-faa32aebf00b /]# ceph --setuser ceph --setgroup ceph -n mon. -k /var/lib/ceph/mon/ceph-ceph-nano-test-faa32aebf00b/keyring auth get-or-create osd.3 mon "allow profile osd" osd "allow *" mgr "allow profile osd" -o /var/lib/ceph/osd/ceph-1/les222
[root@ceph-nano-test-faa32aebf00b /]# ls -al /var/lib/ceph/osd/ceph-1/les222
-rw-r--r--. 1 ceph ceph 56 Feb 18 18:16 /var/lib/ceph/osd/ceph-1/les222

Related issues

Copied to RADOS - Backport #38510: luminous: ceph CLI ability to change file ownership Resolved
Copied to RADOS - Backport #38511: mimic: ceph CLI ability to change file ownership Resolved

History

#1 Updated by Sébastien Han 3 months ago

  • Assignee set to Sébastien Han

#2 Updated by Sébastien Han 3 months ago

  • Pull request ID set to 26487

#3 Updated by Greg Farnum 3 months ago

  • Project changed from Ceph to RADOS
  • Status changed from New to Need Review

#4 Updated by Sébastien Han 3 months ago

  • Backport set to luminous, mimic

#5 Updated by Sage Weil 3 months ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #38510: luminous: ceph CLI ability to change file ownership added

#7 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #38511: mimic: ceph CLI ability to change file ownership added

#8 Updated by Nathan Cutler 17 days ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF