mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps#59435
mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps#59435
Conversation
b164f6c to
221a91b
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
|
@ebocchi please add a test in |
221a91b to
44f21dc
Compare
44f21dc to
ee27143
Compare
|
@mchangir Thanks for looking into this PR. |
Thanks Enrico, the test looks good. |
|
This PR is under test in https://tracker.ceph.com/issues/68744. |
qa/tasks/cephfs/test_volumes.py
Outdated
|
|
||
| # check mon caps for authid | ||
| expected_mon_caps = 'allow r' | ||
| full_caps = self._raw_cmd("auth", "get", "client.alice", "--format=json-pretty") |
There was a problem hiding this comment.
@ebocchi - this call needs to be wrapped around json.loads(), else accessing the json would fail as it fails in
024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:======================================================================
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:ERROR: test_subvolume_deauthorize_with_shared_key (tasks.cephfs.test_volumes.TestSubvolumes)
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:That mon caps are preserved when one cephx key authorized on multiple
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_ceph-c_73c971683afc1322bab0582d2b64477919ac88b7/qa/tasks/cephfs/test_volumes.py", line 2855, in test_subvolume_deauthorize_with_shared_key
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner: self.assertEqual(expected_mon_caps, full_caps[0]['caps']['mon'])
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:TypeError: string indices must be integers
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:
2024-10-31T01:31:12.006 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
There was a problem hiding this comment.
Sorry, missed that.
It should be fixed with 8c28c1e.
There was a problem hiding this comment.
I'll put this to test. The commit can be squashed later when the change is ready to merge. Thx @ebocchi
|
cc @mchangir for QA testing. |
|
This PR is under test in https://tracker.ceph.com/issues/69038. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
Can one of the admins verify this patch? |
@mchangir I see https://tracker.ceph.com/issues/69038#note-2 and I guess the review is done and this is ready to merge, yes? |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
jenkins retest this please |
|
This PR is under test in https://tracker.ceph.com/issues/71496. |
* refs/pull/59435/head: mgr/volumes: Fix json.loads for test on mon caps mgr/volumes: Add test for mon caps if auth key has remaining mds/osd caps mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Milind Changire <mchangir@redhat.com>
|
jenkins retest this please |
|
jenkins test make check arm64 |
|
jenkins test api |
* refs/pull/59435/head: mgr/volumes: Fix json.loads for test on mon caps mgr/volumes: Add test for mon caps if auth key has remaining mds/osd caps mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps Reviewed-by: Milind Changire <mchangir@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
…caps Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
8c28c1e to
b008ef9
Compare
|
rebased and push to get the jenkins tests working. |
Fixes: https://tracker.ceph.com/issues/67708
Signed-off-by: Enrico Bocchi enrico.bocchi@cern.ch
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e