Univention Bugzilla – Full Text Bug Listing |
Summary: | Test case 53_samba-common.50quota fails in UCS 4.2 | ||
---|---|---|---|
Product: | UCS Test | Reporter: | Stefan Gohmann <gohmann> |
Component: | Samba | Assignee: | Arvid Requate <requate> |
Status: | CLOSED FIXED | QA Contact: | Stefan Gohmann <gohmann> |
Severity: | normal | ||
Priority: | P5 | Keywords: | interim-4 |
Version: | unspecified | ||
Target Milestone: | UCS 4.2 | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Development Internal | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: |
Description
Stefan Gohmann
2017-03-16 15:40:12 CET
r77899: * 53_samba-common/50quota: temporary skip test case (Bug #43911) Please re-enable test case after fixing the test case or the product. The test case had some issues: 1) with systemd /etc/init.d/quota restart doesn't behave the same as before, probably because it is overridden by a quota.service file. 2) On ext filesystems the test case doesn't activate quota in the same way as the UMC code does. I'd love to adjust the test to use umc-command to activate the quota, but the UMC module only works for filesystems listed in fstab. So I've adjusted the test script to work in a similar way as the UMC module. 3) The test case used smbcquotas to check if the share is available but that command always fails as long as quotas are not enabled on the fs layer. Some log messages in this case, just for future reference: ## log.smbd level 10: ============================================================================= [2017/03/11 00:58:16.870381, 10, pid=4782, effective(0, 5000), real(0, 0), class=quota] ../source3/lib/sysquotas.c:466(sys_get_quota) sys_get_quota() uid(0, 0), fs(ext2) [2017/03/11 00:58:16.870413, 10, pid=4782, effective(0, 5000), real(0, 0), class=quota] ../source3/lib/sysquotas_linux.c:60(sys_get_vfs_quota) sys_get_vfs_quota: path[/mnt/ilbyemja] bdev[/dev/loop0] SMB_USER_QUOTA_TYPE uid[2033] [2017/03/11 00:58:16.870445, 3, pid=4782, effective(0, 5000), real(0, 0), class=quota] ../source3/lib/sysquotas.c:488(sys_get_quota) sys_get_vfs_quota() failed for mntpath[/mnt/ilbyemja] bdev[/dev/loop0] qtype[2] id[2033]: Kein passender Prozess gefunden [2017/03/11 00:58:16.870484, 3, pid=4782, effective(0, 5000), real(0, 0)] ../source3/smbd/error.c:82(error_packet_set) NT error packet at ../source3/smbd/nttrans.c(2515) cmd=160 (SMBnttrans) NT_STATUS_ACCESS_DENIED ============================================================================= ## This is what the test does: root@master100:~# smbcquotas -u bejvemje -U Administrator%univention //master100/ilbyemja NT_TRANSACT_GET_USER_QUOTA failed: NT_STATUS_ACCESS_DENIED NT_STATUS_ACCESS_DENIED cli_get_user_quota bejvemje ## This is what the user would get: root@master100:~# smbcquotas -u bejvemje -U bejvemje%univention //master100/ilbyemja Quotas are not enabled on this share. Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION NT_STATUS_ACCESS_DENIED. Code changes: OK Tests: OK UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug". |