samba-in-kubernetes / sit-test-cases Goto Github PK
View Code? Open in Web Editor NEWSIT (Samba Integration Tests) Automated Test Cases
SIT (Samba Integration Tests) Automated Test Cases
We could reduce the number of tests we run to a single test with 20 clients - I mean if it works with 20 clients, it will probably also work with 5 clients.
Originally posted by @spuiuk in #38 (comment)
Originally posted by @spuiuk in #38 (comment)
test: samba3.smb2.rw.invalid
time: 2023-10-13 02:46:45.612871Z
time: 2023-10-13 02:46:45.639399Z
failure: samba3.smb2.rw.invalid [
Exception: ../../source4/torture/smb2/read_write.c:331: status was NT_STATUS_DISK_FULL, expected NT_STATUS_OK: Incorrect status
Above failure has been root caused to a particular default setting on Ceph MDS where maximum file size is set to 1TB. See cephfs docs and upstream tracker for more details.
The Jenkins jobs running for glusterfs backend are failing due to timeout after 6 hours. This has been happening for few weeks.
With ignore system acls = yes
set for various shares smb2.maximum_allowed.read_only started to fail as follows:
smbtorture 4.21.0pre1-UNKNOWN
Using seed 1707477138
time: 2024-02-09 11:12:18.649044Z
progress: 2
test: samba3.smb2.maximum_allowed.maximum_allowed
time: 2024-02-09 11:12:18.649763Z
Checked SEC_PRIV_RESTORE for S-1-5-21-1343336543-625089901-2941723812-1000 - No
Checked SEC_PRIV_BACKUP for S-1-5-21-1343336543-625089901-2941723812-1000 - No
Checked SEC_PRIV_SECURITY for S-1-5-21-1343336543-625089901-2941723812-1000 - No
time: 2024-02-09 11:12:18.676989Z
xfail: samba3.smb2.maximum_allowed.maximum_allowed [
Exception: ../../source4/torture/smb2/max_allowed.c:161: status was NT_STATUS_ACCESS_DENIED, expected NT_STATUS_OK: Incorrect status NT_STATUS_ACCESS_DENIED - should be NT_STATUS_OK
]
test: samba3.smb2.maximum_allowed.read_only
time: 2024-02-09 11:12:18.677000Z
time: 2024-02-09 11:12:18.693316Z
failure: samba3.smb2.maximum_allowed.read_only [
Exception: ../../source4/torture/smb2/max_allowed.c:212: status was NT_STATUS_OBJECT_NAME_COLLISION, expected NT_STATUS_OK: smb2_create failed
]
First subtest(smb2.maximum_allowed.maximum_allowed) failure is expected(and is a knownfail). Please note that smb2.maximum_allowed.read_only used to(even now) pass without ignore system acls = yes
set. More details to follow.
The Readme file should be updated as sit-test-cases have moved from a branch in gluster project into a seperate repo.
There should be details on how the test suits in this repo are run to help the new contributers.
_generate_random_bytes is an efficient pseudo-random bytes sequence generator. As it is part of mount_io.py it cannot be reused in any other tests.
Making it part of common helper module can solve this issue.
While adding new smbtorture tests in PR #65, we have come across a few failures. This particular issue deals with the failures in the smb2.timestamps.time_t* tests.
cephfs: (fuse mount)
samba3.smb2.timestamps.time_t_15032385535
samba3.smb2.timestamps.time_t_10000000000
samba3.smb2.timestamps.time_t_-1
samba3.smb2.timestamps.time_t_-2
samba3.smb2.timestamps.time_t_1968
cephfs.vfs: (vfs mount)
samba3.smb2.timestamps.time_t_15032385535
samba3.smb2.timestamps.time_t_10000000000
samba3.smb2.timestamps.time_t_4294967295
samba3.smb2.timestamps.time_t_1
samba3.smb2.timestamps.time_t_0
samba3.smb2.timestamps.time_t_-1
samba3.smb2.timestamps.time_t_-2
samba3.smb2.timestamps.time_t_1968
samba3.smb2.timestamps.freeze-thaw
We have encountered some failures in a few smb2.create. tests when run over xfs. This is new and has only been seen recently.
________________ test_smbtorture[share-xfs-default-smb2.create] ________________
Failure in running test - smb2.create
----------------------------- Captured stdout call -----------------------------
Command: /bin/smbtorture --fullname --option=torture:progress=no --option=torture:sharedelay=100000 --option=torture:writetimeupdatedelay=500000 --format=subunit --target=samba3 --user=test1%x //192.168.123.10/share-xfs-default smb2.create|/usr/bin/python3 /root/sit-test-cases/testcases/smbtorture/selftest/filter-subunit --fail-on-empty --prefix=samba3. --expected-failures=/root/sit-test-cases/testcases/smbtorture/selftest/knownfail --expected-failures=/root/sit-test-cases/testcases/smbtorture/selftest/knownfail.d --flapping=/root/sit-test-cases/testcases/smbtorture/selftest/flapping --flapping=/root/sit-test-cases/testcases/smbtorture/selftest/flapping.d --flapping=/root/sit-test-cases/testcases/smbtorture/selftest/flapping.xfs|/usr/bin/python3 /root/sit-test-cases/testcases/smbtorture/selftest/format-subunit
...
test: samba3.smb2.create.aclfile
time: 2023-11-20 15:43:07.668269Z
Testing nttrans create with sec_desc on files
basic create
adding a new ACE
creating a file with an initial ACL
time: 2023-11-20 15:43:07.689457Z
failure: samba3.smb2.create.aclfile [
Exception: (../../source4/torture/smb2/create.c:635) Incorrect status NT_STATUS_ACCESS_DENIED - should be NT_STATUS_OK
]
test: samba3.smb2.create.acldir
time: 2023-11-20 15:43:07.689467Z
Testing nttrans create with sec_desc on directories
basic create
adding a new ACE
creating a file with an initial ACL
time: 2023-11-20 15:43:07.711639Z
failure: samba3.smb2.create.acldir [
Exception: (../../source4/torture/smb2/create.c:635) Incorrect status NT_STATUS_ACCESS_DENIED - should be NT_STATUS_OK
]
test: samba3.smb2.create.nulldacl
time: 2023-11-20 15:43:07.711649Z
TESTING SEC_DESC WITH A NULL DACL
creating a file with a empty sd
get the original sd
set NULL DACL
time: 2023-11-20 15:43:07.727192Z
failure: samba3.smb2.create.nulldacl [
Exception: (../../source4/torture/smb2/create.c:1346) Incorrect status NT_STATUS_ACCESS_DENIED - should be NT_STATUS_OK
]
...
FAILED (3 failures, 0 errors and 0 unexpected successes in 0 testsuites)
All three are NT_STATUS_ACCESS_DENIED errors which suggest some sort of permissions problem.
Following error is seen with CephFS backed shares on running smb2.durable-open.alloc-size.
smbtorture 4.21.0pre1-GIT-b71f729698f
Using seed 1715837428
time: 2024-05-16 05:30:28.610195
test: alloc-size
time: 2024-05-16 05:30:28.611811
time: 2024-05-16 05:30:29.358999
failure: alloc-size [
(../../source4/torture/smb2/durable_open.c:2589): wrong value for (&io)->out.alloc_size got 0x1200 - should be 0x2000
]
This is tracker from the old repo: gluster/samba-integration#187
The smb2.replay tests are failing at instances like:
failure: samba3.smb2.replay.dhv2-pending2n-vs-oplock-sane [
Exception: ../../source4/torture/smb2/replay.c:3070: Incorrect status NT_STATUS_CONNECTION_RESET - should be NT_STATUS_FILE_NOT_AVAILABLE] on both the glusterfs and xfs bakends.
glusterfs: https://jenkins-samba.apps.ocp.cloud.ci.centos.org/job/samba_glusterfs-integration-test-cases/67/console
xfs: https://jenkins-samba.apps.ocp.cloud.ci.centos.org/job/samba_xfs-integration-test-cases/74/consoleFull
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.