Bug 52005 - 01_base/96rename* fail
Summary: 01_base/96rename* fail
Status: CLOSED FIXED
Alias: None
Product: UCS Test
Classification: Unclassified
Component: General
Version: unspecified
Hardware: Other Linux
: P2 normal
Target Milestone: UCS 4.4-6
Assignee: Julia Bremer
QA Contact: Christian Castens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-14 11:17 CEST by Julia Bremer
Modified: 2021-12-08 18:07 CET (History)
2 users (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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Bremer univentionstaff 2020-09-14 11:17:07 CEST
The tests 96rename_domain_users and 96rename_domain_admins often fail.
It renames "cn=Domain Users" / cn="Domain Admins" and waits for the listener base/univention-pam/well-known-sid-name-mapping.py 
to set the UCR variable groups/default/domain*.
Afterwards it checks if the old name is still found in any UCR templates. 

There are multiple points of failure:


Usually they fail because the UCR variable is not set even after 60 seconds +. 

Sometimes the UCR Variable is set by the listener only milliseconds after the test fails. I am guessing that there may be something in the test that blocks the postrun. 

Sometimes the UCR Variable is not *unset* after the cleanup, which results in several *other* tests failing because the try to append a User to the groupname found in the UCR variable. But that group does not exist anymore since it was already renamed back to "Domain Users".

Sometimes the cleanup is not successful as in, the group is not renamed to "Domain Users" again which results in 30+ tests failing because of 
E: Insufficient information: The following properties are missing:
primaryGroup
Comment 1 Julia Bremer univentionstaff 2020-09-29 13:28:59 CEST
876183f6aa Bug #52005: skip 96rename_domain_* it just fails too often and I am o
744e554a21 Bug #52005: changelog
c27bd1cbf0 Bug #52005: Since the listener postrun is blocked by this test, destr
95c61d2322 Bug #52005: Increase timeout
bf273fea18 Bug #52005: Check cleanup and wait for it
73dc94916e Bug #52005: Increase timeout
0859763469 Bug #52005: close_fds, wait for setting of ucr var after cleanup, fai


I tried some things but the listener still does not set the UCR variable while the test is running. 
I deactivated it for now, hopefully we will be able to fix it in a sprint.
Comment 2 Julia Bremer univentionstaff 2020-11-19 19:00:56 CET
It seems that this was Bug #51804:

I worked around it and reactivated the test:
87c2f51f70 Bug #52005: Reactivate 96rename* and work around Bug#51804

Waiting for test results.
Successful build
Package: ucs-test
Version: 9.0.5-29A~4.4.0.202011191853
Branch: ucs_4.4-0
Scope: errata4.4-6
User: jbremer
Comment 3 Julia Bremer univentionstaff 2020-11-20 08:00:15 CET
Tests were successful :)
Comment 4 Christian Castens univentionstaff 2020-11-25 12:51:11 CET
QA:
Version: 9.0.5-29A~4.4.0.202011191853
tests "96rename_domain_*" run successfully now.

todo: push to 5.0-0
Comment 5 Felix Botner univentionstaff 2020-11-25 13:09:36 CET
(In reply to Christian Castens from comment #4)
> QA:
> Version: 9.0.5-29A~4.4.0.202011191853
> tests "96rename_domain_*" run successfully now.
> 
> todo: push to 5.0-0

done
Comment 6 Erik Damrose univentionstaff 2021-12-08 18:07:19 CET
UCS 4.4-6 has been released