-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smbtorture: Add Shadow Copy related tests #82
base: main
Are you sure you want to change the base?
smbtorture: Add Shadow Copy related tests #82
Conversation
/retest all |
caa7f90
to
2ba557d
Compare
2b51132
to
2e8117a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @Shwetha-Acharya !
I have a few questions inline in the patch. Additionally, on a higher level, I am not quite clear if the patch actually does what the title states: The title says that the patch adds shadow-copy related tests, but the patch seems to deal mostly with ioctl and sparse-file tests.
Please explain!
@@ -10,3 +10,6 @@ | |||
|
|||
#https://github.com/gluster/samba-integration/issues/241 | |||
^samba3.smb2.deny.* | |||
|
|||
# Strictly checking ioctl tests against cephFS only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does dropping a comment in the flapping.glusterfs file restrict these test to run against cephfs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@obnoxxx idea here was to add these tests flapping(sometimes fails or sometimes passes) under all other filesystems other than cephFS. As of now I am trying to check this test strictly for cephFS, that is why it is not added under flapping.cephfs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough.Makes sense!
@@ -5,3 +5,6 @@ | |||
# Ignore due to lack of proper multichannel setup. | |||
^samba3.smb2.session.bind2 | |||
^samba3.smb2.session.two_logoff | |||
|
|||
# Strictly checking ioctl tests against cephFS only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question as before: how does a comment to flapping.gpfs
restrict tests to cephfs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shwetha-Acharya , please also investigate failed ci checks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question as before: how does a comment to
flapping.gpfs
restrict tests to cephfs?
Same answer as above
Hi @obnoxxx Thanks for the review. Basically ioctl.c contains many ioctl and sparse file related tests as you have rightly pointed out but it also includes tests like https://github.com/samba-team/samba/blob/master/source4/torture/smb2/ioctl.c#L42 I thought it would be better to include all tests in ioctl.c in our test suite as they might be utilized while accessing/querying the snapshots. And sparse files can be snapshotted as well. Their grouping together in smbtorture inside ioctl.c also lead me to similar speculations. However, I am learning about the sparse files and ioctl through this PR itself. If you have any suggestions regarding the same, please let me know. |
Right, but this is more of a coincidence and the real link between ioctl tests and shadow copies is that the shadow copy operations are implemented in SMB2 as ioctl calls. So the ioctl test suite also contains shadow copy tests.
That sounds like the perfect opportunity!
Meanwhile I reviewed the changes enough to be convinced that the PR will be ready to be moved out of draft status once the CI checks are passing more. So please try and fix the CI failures is the only real request at this time. |
/retest all |
1 similar comment
/retest all |
2e8117a
to
8c8aa65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thought:
Instead of filling just knownfail and flapping with tests, we could consider using the skip list that samba's selftest understands to really prevent tests from being executed at all.
Adding this mechanism would be a separate PR though that this one should be based on.
sure! that sounds like a good plan |
IIRC, we introduced dedicated flapping list for each backend in order to keep the selftest subdirectory, which is largely a clone from upstream samba sources, intact. We occasionally rebase/sync the contents from upstream to keep us updated.
Having said that I am not sure why we didn't sync the skip list from upstream. @spuiuk Any further thoughts? |
ok. I was somehow expecting that we copy the corresponding backend specific list(s) into the
good but also good to keep our special variants separate.
We might not need to figure out the why, but I think we should add a skip mechanism and configure it in a backend-specific way like the others. If we agree on that, we could raise a separate issue for this feature.
|
We don't use the skip list because we don't use the test.py file which is called by "make tests" to generate a list of tests to be run. We instead list out the testsuites we want to run. To work around these problems, I would instead of adding the entire smb2.ioctl test suite, simply add tests which I would like to run. |
We do not have a skip list since we do not copy over the entire selftest directory and use only those parts which we need from the selftest directory. The skip list are used by make test to generate a list of tests to run. We took the easy approach which simply involved listing the tests we want to run. This smbtorture test suite was built to run against the a single filesystem - glusterfs. When we added newer filesystems, we discovered that we had some tests which passed against one filesystem but failed against another. We needed to investigate these failures but wanted to see passing tests - so we add the failed tests to the issue tracker to investigate later and add the failing tests to the filesystem specific flapping list. We have never encountered a uxsuccess until now. So the easiest workaround is to add the remaining tests we want to check for but avoid listing the tests which do a uxsuccess for now. |
That is fair. But, tracking all these failures becomes a task considering existence of various file systems and different combinations of failures when we only add the tests we want to run. |
The adding of the failing tests to the flapping lists is expected to be temporary while we investigate the failures and fix them. |
uxsuccess failures are reported when the test passes but is listed in the knownfail and expected failure lists.
causes the following failure reported.
|
5904166
to
96bfde8
Compare
/retest all |
1 similar comment
/retest all |
Current Status: xfs:All tests in xfs pass including the ioctl tests: cephfs:Here also there is one unrelated failure related smb2.charset. test_smbtorture[share-cephfs-default-vfs-smb2.charset] – FAILED gpfs:ioctl tests passed: But there are other unrelated failures: |
We already have an issue(#91) reported.
This is a failure on kclient.
As we can see smb2.ioctl test suite still has some issues with CephFS(in any mode). |
- Some of the sparse file related tests are expected to fail due to limitations in CephFS, mark the same - Make sure that ioctl tests are expected to strictly pass against CephFS and CephFS.vfs only. Signed-off-by: Shwetha K Acharya <[email protected]>
96bfde8
to
3ac6d7f
Compare
yes correct, with kclient, copy chunk streams test is failing. NOTE: We have already have found that there is some limitation in cephfs with sparse files and have already added them under flapping list. For now, I am adding all copy-chunk related tests under flapping list as well. We need to figure out why these failures are not found in kclient but are found only on vfs ceph @anoopcs9 |
No description provided.