Bug 46108 - fix AD Takeover Tests
fix AD Takeover Tests
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: AD Takeover
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Felix Botner
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-22 17:04 CET by Felix Botner
Modified: 2023-03-25 06:54 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

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Felix Botner univentionstaff 2018-01-22 17:26:17 CET
ucs-test 91998911076d7f60f230b57f4e3e5acaab72142a
fixed ucs-test/tests/51_samba4/30well-known-sids (set )
Comment 2 Felix Botner univentionstaff 2018-01-22 17:27:19 CET
test/scenarios/ad-takeover-testing ff1c2567c15c1fc5430a65485c9b1ed842860eab
(set ucs-test Administrator password)
Comment 3 Felix Botner univentionstaff 2018-01-30 17:02:25 CET
ucs-test 88570568c5842330b0ba9950a50bf11370ffa2d8
fixed 50_samba/31winbind-restart, properly restart winbind, hopefully this fixes the samba member 4.3-0 tests
Comment 4 Felix Botner univentionstaff 2018-02-26 10:57:02 CET
OK, ad takeover tests look good, except for Bug #46105
Comment 5 Stefan Gohmann univentionstaff 2018-03-02 06:58:33 CET
(In reply to Felix Botner from comment #4)
> OK, ad takeover tests look good, except for Bug #46105

See details of Bug #46105:

(In reply to Stefan Gohmann from Bug #46105 comment #9)
> At least the automated tests fail now. Maybe there is an option to allow one
> specific UMC module to be inactive for more than the timeout?
> 
> management-console-module-adtakeover.log
> 01.03.18 15:08:36.242  PARSER      ( INFO    ) : UMCP REQUEST
> 151993491617858-5 parsed successfully
> 01.03.18 15:08:36.242  MODULE      ( INFO    ) : Received request
> 151993491617858-5
> 01.03.18 15:08:36.242  PROTOCOL    ( INFO    ) : Received UMCP COMMAND
> REQUEST 151993491617858-5
> 01.03.18 15:08:36.242  MODULE      ( INFO    ) : Executing
> ['adtakeover/run/takeover']
> 01.03.18 15:08:36.242  MAIN        ( INFO    ) : Setting locale 'en_US'
> 01.03.18 15:08:36.243  MODULE      ( PROCESS ) : Running take_over_domain
> 01.03.18 15:08:36.427  MODULE      ( PROCESS ) : ### Search for
> 10.210.197.232 in network ###
> 01.03.18 15:08:41.447  MODULE      ( PROCESS ) : ### Taking over Active
> Directory domain controller roles ###
> 01.03.18 15:08:41.447  MODULE      ( PROCESS ) :   Adjusting settings in
> Samba directory service
> 01.03.18 15:09:01.091  MODULE      ( PROCESS ) :   Claiming FSMO roles
> 01.03.18 15:09:13.061  MODULE      ( PROCESS ) :   Removing the previous AD
> server account
> 01.03.18 15:09:15.763  MODULE      ( PROCESS ) :   Taking over DNS address
> 
> management-console-server.log
> 01.03.18 15:08:36.241  RESOURCES   ( INFO    ) : Searching for module
> providing command adtakeover/run/takeover
> 01.03.18 15:08:36.242  RESOURCES   ( INFO    ) : Found module adtakeover
> 01.03.18 15:08:36.242  MAIN        ( INFO    ) : Passing new request to
> running module adtakeover
> 01.03.18 15:08:36.242  PROTOCOL    ( INFO    ) : Sending UMCP COMMAND
> REQUEST 151993491617858-5
> 01.03.18 15:18:36.984  MAIN        ( INFO    ) : The module adtakeover is
> inactive for too long. Sending EXIT request to module
> 01.03.18 15:18:36.984  MAIN        ( INFO    ) : There are unfinished
> requests. Waiting for 151993491617858-5
> 
> management-console-web-server.log
> 01.03.18 15:08:36.178  MAIN        ( INFO    ) : CPCommand
> (10.210.219.188:38134) got new request
> 01.03.18 15:08:36.178  MAIN        ( INFO    ) : CPCommand
> (10.210.219.188:38134) pushed request(0x7f1b94423890) to
> queue(0x7f1b96c67ab8) - waiting for response
> 01.03.18 15:08:36.241  MAIN        ( INFO    ) : UMCP_Dispatcher:
> check_queue: new request: 0x7f1b94423890
> 01.03.18 15:08:36.241  MAIN        ( INFO    ) :
> SessionClient(0x7f1b96c6d6d0): sending request(151993491617858-5)
> 01.03.18 15:08:36.241  PROTOCOL    ( INFO    ) : Sending UMCP COMMAND
> REQUEST 151993491617858-5

(In reply to Stefan Gohmann from Bug #46105 comment #11)
> I've now started a takeover via UMC module. The UMC module sends every few
> seconds the command adtakeover/process. So, the main problem is the tool
> which is used for the automated test. I'll create a new bug for it.

So, the adtakeover tool should poll via adtakeover/progress. I've removed the target milestone. It would be nice if the automated tests work for the release but it isn't a blocker.
Comment 6 Felix Botner univentionstaff 2018-03-02 12:25:32 CET
OK, nothing more to be done here, fill new bugs for new issues
Comment 7 Stefan Gohmann univentionstaff 2018-05-08 09:25:26 CEST
(In reply to Felix Botner from comment #6)
> OK, nothing more to be done here, fill new bugs for new issues

OK