Skip to content

mon/MonCap: check profile_grants too while checking caps - #37190

Merged
batrick merged 1 commit into
ceph:masterfrom
rishabh-d-dave:fs-fix-47423
Sep 19, 2020
Merged

batrick merged 1 commit into
ceph:masterfrom
rishabh-d-dave:fs-fix-47423

Conversation

@rishabh-d-dave

@rishabh-d-dave rishabh-d-dave commented Sep 16, 2020 •

Copy link
Copy Markdown
Contributor

When checking if a certain fs subcommand can and should be executed in
FSCommands.cc, check permissions in "profile_grants" too when the caps
for that entity contains a cap profile.

Fixes: https://tracker.ceph.com/issues/47423

Related PR: #32581

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@rishabh-d-dave

rishabh-d-dave commented Sep 16, 2020 •

Copy link
Copy Markdown
Contributor Author

From vstart cluster -

+ ./bin/ceph fs ls
name: a, metadata pool: cephfs.a.meta, data pools: [cephfs.a.data ]
name: cephfs2, metadata pool: cephfs2_data, data pools: [cephfs2_meta ]
+ ./bin/ceph fs volume rm cephfs2 --yes-i-really-mean-it
metadata pool: cephfs2_data data pool: ['cephfs2_meta'] removed
+ ./bin/ceph fs ls
name: a, metadata pool: cephfs.a.meta, data pools: [cephfs.a.data ]

Comment thread src/mon/FSCommands.cc Resolved
Comment thread src/mon/MonCap.h Resolved
@rishabh-d-dave
rishabh-d-dave force-pushed the fs-fix-47423 branch 2 times, most recently from 0e1abec to 0b0b609 Compare September 16, 2020 18:10
@rishabh-d-dave rishabh-d-dave changed the title src/mon: check profile_grants too while checking caps mon/MonCap: check profile_grants too while checking caps Sep 16, 2020
Comment thread src/mon/MonCap.h Resolved
Comment thread src/mon/MonCap.h Resolved

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise lgtm

Comment thread src/mon/MonCap.h Resolved
When checking if a certain fs subcommand can and should be executed in
FSCommands.cc, check permissions in "profile_grants" too when the caps
for that entity contains a cap profile.

Fixes: https://tracker.ceph.com/issues/47423
Signed-off-by: Rishabh Dave <[email protected]>
@rishabh-d-dave

rishabh-d-dave commented Sep 18, 2020 •

Copy link
Copy Markdown
Contributor Author

@batrick @varshar16 @tchaikov

FYI: I just updated this PR branch. (Since you all might have pushed a copy of this PR branch to ceph-ci)

EDIT:
I'll update wip-rishabh-fs-fix-47423, the intended ceph-ci copy for this PR branch. Feel free to use it.

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

jenkins test api

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@batrick
batrick merged commit 22b3d48 into ceph:master Sep 19, 2020
@rishabh-d-dave
rishabh-d-dave deleted the fs-fix-47423 branch September 23, 2020 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants