Skip to content

quincy: MDSAuthCaps: print better error message for perm flag in MDS caps - #54946

Merged
rishabh-d-dave merged 16 commits into
ceph:quincyfrom
rishabh-d-dave:wip-63407-quincy
Apr 12, 2024
Merged

rishabh-d-dave merged 16 commits into
ceph:quincyfrom
rishabh-d-dave:wip-63407-quincy

Conversation

@rishabh-d-dave

Copy link
Copy Markdown
Contributor

@rishabh-d-dave
rishabh-d-dave requested a review from a team as a code owner December 18, 2023 13:52
@rishabh-d-dave rishabh-d-dave added this to the quincy milestone Dec 18, 2023
@rishabh-d-dave rishabh-d-dave added the cephfs Ceph File System label Dec 18, 2023
@rishabh-d-dave
rishabh-d-dave requested a review from a team December 22, 2023 08:26
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

No cause for failure was found, unlikely that this PR will be related. https://jenkins.ceph.com/job/ceph-api/66223/

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

jenkins test api

@vshankar

Copy link
Copy Markdown
Contributor

jenkins test api

@yuriw yuriw modified the milestones: quincy, v17.2.8 Feb 16, 2024
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

Majority of job failures don't look related but few are. Following are a couple of them - job #7567582 and job #7573791.

Both these failures needs PR #52709 to be backported along with this PR.

@rishabh-d-dave

rishabh-d-dave commented Mar 7, 2024 •

Copy link
Copy Markdown
Contributor Author

Failure on job #7573798 is also related to this PR. The method that has this issue can't be fixed with a backport because this method has undergone several changes compared to Quincy. So, I'll add a commit that directly fixes this issue in Quincy.

Link to the above job - http://qa-proxy.ceph.com/teuthology/yuriw-2024-02-26_16:55:37-fs-wip-yuri5-testing-2024-02-16-1120-quincy-distro-default-smithi/7573798/teuthology.log

@vshankar

Copy link
Copy Markdown
Contributor

@rishabh-d-dave please fix jenkins failures and update.

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

Strange that all jobs page state "not found".

https://jenkins.ceph.com/job/ceph-api/70104/
https://jenkins.ceph.com/job/ceph-pull-requests/130789/

And signed off job report no issues - https://jenkins.ceph.com/job/ceph-pr-commits/36676/

No changes.

GitHub pull request #54946 of commit 8427d315b5e28d08adb242f58eaa4fcd969b510b, no merge conflicts.

This run spent:

    8.6 sec waiting;
    2 min 6 sec build duration;
    2 min 15 sec total from scheduled to completion.

[Test Result](https://jenkins.ceph.com/job/ceph-pr-commits/36676/testReport/) (no failures)

	
Identified problems
	
No identified problem
No problems were identified. If you know why this problem occurred, please add a suitable Cause for it.

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

All commits here are signed AFAIS -

$ git log 1f2f55109dc1ed2dc2dda9de1db3c70923ba0dfd..HEAD | grep 'Signed-off-by'
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
    Signed-off-by: Rishabh Dave <[email protected]>
$ git log 1f2f55109dc1ed2dc2dda9de1db3c70923ba0dfd..HEAD | grep 'Signed-off-by' | wc -l
15

@vshankar

Copy link
Copy Markdown
Contributor

All commits here are signed AFAIS -

Could you rebase and repush then?

Importing entire module ceph_manager.py is pointless since only
ceph_manager.CephManager is required in qa/tasks/cephfs/filesystem.py.

Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit 437f2c7)
To run a Ceph command conveniently, run_cluster_cmd(), raw_cluster_cmd()
or raw_cluster_cmd_result() must be called. These methods are available
in class CephManager which in turn is available only if an instance of
Filesystem, MDSCluster, CephCluster or MgrCluster is initialized. Having
an instance of CephManager in CephFSTestCase will provide easy access to
these methods.

For example, in CephFS tests writing "self.mon_manager.raw_cluser_cmd()"
instead of writing "self.mds_cluster.mon_manager.raw_cluster()" will
suffice.

This commit provides a basis for upcoming commits in this patch series.
With next patches, running Ceph command will be further simplified. Just
writing self.run_ceph_cmd() will suffice for running a CephFS command.

Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit 0c00410)
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

All commits here are signed AFAIS -

Could you rebase and repush then?

Done.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PTAL at the failure.

Comment thread qa/tasks/ceph_test_case.py Resolved
@rishabh-d-dave

rishabh-d-dave commented Mar 15, 2024 •

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

jenkins test make check

Replace calls to run_cluster_cmd() by calls to run_ceph_cmd().

Ideally, a backport should have fixed this issue but the method under
inspection here, "get_mon_cap_from_keyring()", has gone through lots of
changes, compared to the main branch, along with rest of caps_helper.py.
To avoid backporting large amount of QA changes, writing a specific fix
will be easier and faster.

This will also help with rest of Quincy backports since this patch
series/PR makes an important change to QA code.

Signed-off-by: Rishabh Dave <[email protected]>
Use LocalContext instance to set LocalCephManager.cluster.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit d9fbf65)
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

jenkins test api

@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

@rishabh-d-dave rishabh-d-dave left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mchangir mchangir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rishabh-d-dave
rishabh-d-dave dismissed vshankar’s stale review April 12, 2024 09:09

Changes have been incorporated

@rishabh-d-dave
rishabh-d-dave merged commit 22f8887 into ceph:quincy Apr 12, 2024
@rishabh-d-dave
rishabh-d-dave deleted the wip-63407-quincy branch April 12, 2024 09:15
rishabh-d-dave pushed a commit to rishabh-d-dave/ceph that referenced this pull request Apr 12, 2024
Directory hierarchy may be deep for a large filesystem, dump loads would output
a lot and take a long time. So add an arg to limit depth when dump loads of dirfrags.

Fixes: https://tracker.ceph.com/issues/56058
Signed-off-by: haoyixing <[email protected]>
(cherry picked from commit a8f138c)

Conflicts:
  * qa/tasks/cephfs/test_admin.py
    Conflict occurred because test_admin.py on Quincy branch was updated
    by PR ceph#54946.
rishabh-d-dave added a commit to rishabh-d-dave/ceph that referenced this pull request Apr 12, 2024
Replace call to run_ceph_cmd() by call to get_ceph_cmd_stdout() in
method qa.tasks.cephfs.cephfs_test_case.CephFSTestCase.create_client().
run_ceph_cmd() will not return keyring which is wrong.
get_ceph_cmd_stdout() will return the stdout of "ceph auth add"
command, which is the keyring that is expected to be returned by
CephFSTestCase.create_client().

Fixes: https://tracker.ceph.com/issues/62246
Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit c9058dc)

Conflicts:
* qa/tasks/cephfs/cephfs_test_case.py
  Conflict occurred because class RunCephCmd hasn't been backported.
  This PR is getting it done - ceph#54946.
joscollin pushed a commit to ceph/ceph-ci that referenced this pull request Jul 12, 2024
Replace call to run_ceph_cmd() by call to get_ceph_cmd_stdout() in
method qa.tasks.cephfs.cephfs_test_case.CephFSTestCase.create_client().
run_ceph_cmd() will not return keyring which is wrong.
get_ceph_cmd_stdout() will return the stdout of "ceph auth add"
command, which is the keyring that is expected to be returned by
CephFSTestCase.create_client().

Fixes: https://tracker.ceph.com/issues/62246
Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit c9058dc)

Conflicts:
* qa/tasks/cephfs/cephfs_test_case.py
  Conflict occurred because class RunCephCmd hasn't been backported.
  This PR is getting it done - ceph/ceph#54946.
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.

5 participants