qa/cephfs: add helper methods in CephFSTestCase#50569
qa/cephfs: add helper methods in CephFSTestCase#50569rishabh-d-dave merged 9 commits intoceph:mainfrom
Conversation
93cbae1 to
8e1000f
Compare
8e1000f to
c7dd3b5
Compare
|
Improved commit message for commit 6a1283c and also rebased the PR branch. |
3f65179 to
df93492
Compare
df93492 to
27e9df1
Compare
|
@rishabh-d-dave Wound't it make sense to have a singleton MonManger object in CephFSTestCase and everything else using this singleton object rather than instantiating all over the place? |
That will certainly reduce total number of CephManage instances and save some space. I'll make this change as per our discussion we hade verbally. |
@rishabh-d-dave You did reach out to me on IRC saying that this effort is probably not worth doing. Is that still true? |
Yes, I think so now too. A singleton design pattern for class CephManager will save a very tiny amount of space in memory which doesn't matter. We should proceed to test this PR without it. |
|
jenkins test api |
The intent was not about saving memory - the singleton design avoids cluttering various classes and structures with redundant class objects. Anyway, I won't come in between much on this. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
27e9df1 to
161a1c3
Compare
|
OK -- @rishabh-d-dave mentioned that the way forward isn't clear. What I meant was although singleton would be have been better, I'm fine with not implementing that for now. @rishabh-d-dave Please do the needful to get this merged. |
3160145 to
dd3fcfc
Compare
Add run_ceph_cmd(), get_ceph_cmd_stdout() and get_ceph_cmd_result() to class Filesystem so that running Ceph command is easier. This affects not only methods inside class Filesystem but also methods elsewhere that uses instance of class Filesystem to run Ceph commands. Instead of "self.fs.mon_manager.raw_cluster_cmd()" writing "self.fs.run_ceph_cmd()" will suffice. Signed-off-by: Rishabh Dave <ridave@redhat.com>
In filesystem.py and wherever instance of class Filesystem are used, use run_ceph_cmd() instead of get_ceph_cluster_stdout() when output of Ceph command is not required. Signed-off-by: Rishabh Dave <ridave@redhat.com>
26ee97c to
0a781ef
Compare
|
jenkins test make check |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
jenkins test make check |
|
Failure looks unrelated - https://jenkins.ceph.com/job/ceph-pull-requests/117973/ |
|
jenkins test api |
|
Although API tests failed, the failue neither looks to be related to this PR now is it same as before - https://jenkins.ceph.com/job/ceph-api/58053/. |
|
jenkins test api |
api tests are failing due to this https://tracker.ceph.com/issues/61907 EDIT: Yup, I can see the warnings in the cluster log from the above the api tests link https://jenkins.ceph.com/job/ceph-api/58053/artifact/build/out/cluster.mon.a.log |
Thanks @dparmar18 |
There was a problem hiding this comment.
Tests were successful - https://tracker.ceph.com/projects/cephfs/wiki/Main#12-July-2023
@vshankar As discussed previously the PR has been tested and results have been posted. Please approve the PR so that I can be merged. :) |
Due to ceph#50569 not being backported Signed-off-by: Venky Shankar <vshankar@redhat.com>
Due to ceph#50569 not being backported Signed-off-by: Venky Shankar <vshankar@redhat.com>
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 windows