Bug 2006691 - pybind/mgr/volumes: first subvolume permissions set perms on /volumes and /volumes/group
Summary: pybind/mgr/volumes: first subvolume permissions set perms on /volumes and /vo...
Keywords:
Status: CLOSED DUPLICATE of bug 2005959
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 4.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 5.1
Assignee: Patrick Donnelly
QA Contact: Hemanth Kumar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 08:06 UTC by Kotresh HR
Modified: 2021-11-02 01:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-02 01:03:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 51870 0 None None None 2021-09-22 08:06:49 UTC
Red Hat Issue Tracker RHCEPH-1852 0 None None None 2021-09-22 08:08:01 UTC

Description Kotresh HR 2021-09-22 08:06:50 UTC
Description of problem:


Because we use the "mkdirs" method for making parents to a subvolume, the perms for the subvolume specified by --mode are used for all parents too. This is wrong because you can get:

pdonnell@vossi04 ~/ceph/build$ bin/ceph fs subvolume create a d --mode=777 --size=$((2**30))
pdonnell@vossi04 ~/mnt/tmp.0cSPBAJM59$ ls -lha volumes/
total 1.5K
drwxrwxrwx. 3 root     root      120 Jul 27 19:17 .
drwxr-xr-x. 4 pdonnell pdonnell 473M Jul 27 19:17 ..
-rwxr-xr-x. 1 root     root        0 Jul 27 19:17 _:d.meta
drwxrwxrwx. 3 root     root      120 Jul 27 19:17 _nogroup

volumes should be 0755 and _nogroup should be 0755.


Please look into the attached upstream tracker for more info

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2021-09-22 08:06:56 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Patrick Donnelly 2021-11-02 01:03:05 UTC

*** This bug has been marked as a duplicate of bug 2005959 ***


Note You need to log in before you can comment on or make changes to this bug.