Coder Social home page Coder Social logo

sit-test-cases's People

Contributors

anoopcs9 avatar obnoxxx avatar shwetha-acharya avatar spuiuk avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sit-test-cases's Issues

Suggestions for improvements in SIT testcases

  1. in _run_dbm_consistency_checks() and _check_io_consistency(), the mkdir call should have parents=False. I don't see why we should have this option set to True. A missing parent directory should be treated as an error.
  2. _perform_file_operations() should perform the file operations in a sub directory to allow for easier clean up.

Originally posted by @spuiuk in #38 (comment)

CephFS: Failure in running smb2.rw tests

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.

Failure in running smb2.maximum_allowed.read_only

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.

CephFS: Failure in smb2.timestamps.time_t_*

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

XFS: failures in smb2.create. tests

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.

CephFS: Failure in running smb2.durable-open

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
]

Failure in running smb2.replay tests

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.