cephfs: add command "ceph fs swap"#50212
Conversation
5d74639 to
58485bc
Compare
58485bc to
fe21648
Compare
fab9697 to
2c56e70
Compare
|
test_fs_swap is passing locally every time but with teuthology fails every time at this line - https://github.com/ceph/ceph/pull/50212/files#diff-534e44897921b6dcac93d2c7bb1cf04a3727bf1f025c579f83d898e2c2257400R836. From output of Can you please take a quick look and let me know if current changes look okay? Following is the link to latest run, in case you want to take a look - http://pulpito.front.sepia.ceph.com/rishabh-2023-03-21_17:30:06-fs:functional-wip-rishabh-fs-swap-subcmd-distro-default-smithi/ And here's the branch that I passed to |
7fa7cae to
13781c5
Compare
13781c5 to
7bbad74
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
7bbad74 to
aec07d8
Compare
Signed-off-by: Rishabh Dave <ridave@redhat.com>
Signed-off-by: Rishabh Dave <ridave@redhat.com>
When assert fails for equality of two variables and when both the variables are printed in error message, print each variable on a new line. Signed-off-by: Rishabh Dave <ridave@redhat.com>
b689c2b to
7980b58
Compare
7980b58 to
c89589d
Compare
When two values (say x and y) are being printed because assert for equality of both failed (assert x == y), print both the values on a new line. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Signed-off-by: Rishabh Dave <ridave@redhat.com>
Commands issued by negtest_ceph_cmd() aren't printed because log level (due to code for teuthology) changes from DEBUG to INFO in case of some files. This patch ensures that users can see commands being executed regardless of whether log level is changed or not. Signed-off-by: Rishabh Dave <ridave@redhat.com>
c89589d to
80a5527
Compare
batrick
left a comment
There was a problem hiding this comment.
Thanks for writing tests cases for all the edge cases!
|
Last push was about bits of minor fixes and improvements I made while running tests locally. |
vshankar
left a comment
There was a problem hiding this comment.
LGTM. @rishabh-d-dave please proceed to integration runs.
|
Tests needs some minor debugging and fixing. |
Add a FS command that enables users to swap names of two file systems in a single PAXOS transaction. Add an option to this command that swaps FSCIDS along with FS names. This commands also updates the application pool tags and fails when mirroring is enabled on either or both FSs. Fixes: https://tracker.ceph.com/issues/58129 Signed-off-by: Rishabh Dave <ridave@redhat.com>
Create an alias so "APP_NAME_CEPHFS" can be written instead of "pg_pool_t::APPLICATION_NAME_CEPHFS". Signed-off-by: Rishabh Dave <ridave@redhat.com>
When working with large group tests (18 in this case), it gets very tedious to debug and fix tests when all 18 have to be run again for every mistake. Cheap fix for this to split these 18 tests into several classes. But when modification are made to the feature, all these 18 tests needs to exercised and previous solution forces developer to intitiate all these test classes to run one by one. Best of both worlds can be achieved if we split tests into group but move all these related group to a new file. Signed-off-by: Rishabh Dave <ridave@redhat.com>
|
Ran tests a bunch of times locally, tests are working fine now. |
rishabh-d-dave
left a comment
There was a problem hiding this comment.
CephFS integration tests were successful - https://tracker.ceph.com/projects/cephfs/wiki/Main#7-Nov-2023
|
jenkins test make check |
Add a FS command that enables users to swap names of two file systems in
a single PAXOS transaction.
Fixes: https://tracker.ceph.com/issues/58129
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