Bug 43970 - Test case 49_nfs.11mount-home fails in UCS 4.2
Test case 49_nfs.11mount-home fails in UCS 4.2
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Philipp Hahn
Felix Botner
:
Depends on: 45101
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-17 19:48 CET by Stefan Gohmann
Modified: 2023-03-25 06:43 CET (History)
1 user (show)

See Also:
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:


Attachments
w2k12-german-slave.zip (2.20 MB, application/zip)
2017-03-17 19:49 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-03-17 19:48:35 CET
The test case 49_nfs.11mount-home fails on a DC Slave in AD Member mode

http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ADMemberMultiEnv/9/Mode=module,Version=w2k12-german-slave/testReport/49_nfs/11mount-home/test/


[2017-03-17 13:32:23.169022] Creating shares/share object with /usr/sbin/udm-test shares/share create --option nfs --set name=ch2d84q60q --append nfs_hosts=slave223 --set host=admember223.autotest223.local --set root_squash=0 --set path=/mnt/ch2d84q60q
[2017-03-17 13:32:23.518662] Creating users/user object with /usr/sbin/udm-test users/user create --position cn=users,dc=autotest223,dc=local --option posix --set username=jxulzepqme --set firstname=z80k0wm4yh --set lastname=tv5off507o --set homeSharePath=jxulzepqme --set 'primaryGroup=cn=Domain Admins,cn=groups,dc=autotest223,dc=local' --set homeShare=cn=ch2d84q60q,dc=autotest223,dc=local --set unixhome=/home/jxulzepqme --set password=univention
[2017-03-17 13:32:24.025616] Waiting 30s for UDL.postrun() on master to export share...
[2017-03-17 13:32:54.019349] Waiting for replication...
[2017-03-17 13:32:54.106751] Done: replication complete.
[2017-03-17 13:32:54.106783] 1st login...
[2017-03-17 13:33:54.193662] ### FAIL ###
[2017-03-17 13:33:54.193699] Failed to mount '/home/jxulzepqme'
[2017-03-17 13:33:54.193711] ###      ###
[2017-03-17 13:33:54.193724] Cleanup after exception: <type 'exceptions.SystemExit'> 1
[2017-03-17 13:33:54.193734] Performing UCSTestUDM cleanup...
[2017-03-17 13:33:54.736298] UCSTestUDM cleanup done
Comment 1 Stefan Gohmann univentionstaff 2017-03-17 19:49:57 CET
Created attachment 8580 [details]
w2k12-german-slave.zip

Log archive
Comment 2 Stefan Gohmann univentionstaff 2017-03-17 19:54:13 CET
The test case fails also in normal setups not only in AD member mode:

r77923:
 * 49_nfs/11mount-home: Skip test case (Bug #43970)
Comment 3 Philipp Hahn univentionstaff 2018-06-22 15:56:49 CEST
Probably fixed by 33908fe74a7 (2017-07-31):
 Bug #45101 NFS: Start NFS server for first NFS share

I've re-enabled the test; let's see the results of autotest.

[4.3-1] cee99c490b Bug #43970 test: Re-enable NFS test
 test/ucs-test/debian/changelog          | 6 ++++++
 test/ucs-test/tests/49_nfs/11mount-home | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

Package: ucs-test
Version: 8.0.28-142A~4.3.0.201806221551
Branch: ucs_4.3-0
Scope: errata4.3-1
Comment 4 Philipp Hahn univentionstaff 2018-06-25 10:20:07 CEST
Test succeeded in all scenarios the past weekend.
Comment 5 Philipp Hahn univentionstaff 2018-06-27 09:55:27 CEST
Fails in AD-Member mode → disabled only there
Otherwise runs find AutotestJoin and AutotestErrata.

[4.3-1] debdbaec7d Bug #43970 test: Re-enable NFS test
 test/ucs-test/debian/changelog          | 6 ++++++
 test/ucs-test/tests/49_nfs/11mount-home | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

Package: ucs-test
Version: 8.0.28-144A~4.3.0.201806270954
Branch: ucs_4.3-0
Scope: errata4.3-1
Comment 6 Felix Botner univentionstaff 2018-07-16 14:43:25 CEST
i guess this patch 

-                       primaryGroup='cn=Domain Admins,cn=groups,%(ldap/base)s' % ucr,
+                       primaryGroup='cn=%s,cn=groups,%s' % (ucr.get('groups/default/domainadmins', 'Domain Admins'), ucr['l

fixed this in ad member mode (no Domain Admins in admember with german ad).

Maybe we should try it again (by removing ## tags: [skip_admember])?
Comment 7 Philipp Hahn univentionstaff 2018-07-30 12:33:31 CEST
(In reply to Felix Botner from comment #6)
> i guess this patch 
> 
> -                       primaryGroup='cn=Domain
> Admins,cn=groups,%(ldap/base)s' % ucr,
> +                       primaryGroup='cn=%s,cn=groups,%s' %
> (ucr.get('groups/default/domainadmins', 'Domain Admins'), ucr['l
> 
> fixed this in ad member mode (no Domain Admins in admember with german ad).
> 
> Maybe we should try it again (by removing ## tags: [skip_admember])?

If I remember correctly there still was an issue in AD-member-mode even after that fix: The created test user still was not usable.

I prefer to skip ADmember for now to have at least one working NFS for all other scenarios.
Comment 8 Felix Botner univentionstaff 2018-10-26 14:37:16 CEST
OK - nfs test OK in member mode