Bug 26807 - Parallele smbclient Anmeldung
Parallele smbclient Anmeldung
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Samba
unspecified
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Arvid Requate
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-17 10:52 CEST by Stefan Gohmann
Modified: 2013-11-19 06:44 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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
Vorschlag zur weiteren Verbesserung (3.67 KB, patch)
2012-08-29 14:08 CEST, Arvid Requate
Details | Diff
patch to make the test also work on samba3 (1.96 KB, patch)
2013-07-15 16:15 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-04-17 10:52:16 CEST
In einem Test sollte geprüft werden, ob 10 / 20 / 30 parallele smbclient Authentifizierungen erfolgreich sind.
Comment 1 Tobias Peters univentionstaff 2012-08-07 12:26:24 CEST
Test wurde hinzugefügt
Comment 2 Arvid Requate univentionstaff 2012-08-29 14:08:38 CEST
Created attachment 4626 [details]
Vorschlag zur weiteren Verbesserung

Der Test funktioniert soweit, im angehängten Patch sind ein paar kleinere Verbesserungsvorschläge (Quoting, legacy bash Funktion vermeiden, engere Zeitlimits etc.)
Comment 3 Tobias Peters univentionstaff 2012-09-04 15:02:30 CEST
Der Patch wurde angewandt und überprüft.
Comment 4 Tobias Peters univentionstaff 2012-11-29 11:25:54 CET
Der Test neigt dazu auf langsamen Systemen fehl zu schlagen und wird deshalb noch einmalüberarbeitet.
Comment 5 Arvid Requate univentionstaff 2013-01-10 11:33:20 CET
Auf dem Jenkins-System funktioniert der Test im Moment noch nicht zuverlässig:

Connection to \\ip42424242.location-1.compute.amazonaws.com\sysvol failed - NT_STATUS_BAD_NETWORK_NAME

Die Fehlermeldung kommt 9 Mal bei 24 Versuchen auf sysvol zuzugreifen.
Comment 6 Stefan Gohmann univentionstaff 2013-02-26 06:37:19 CET
Kein Blocker für UCS 3.1-1.
Comment 7 Tobias Peters univentionstaff 2013-03-27 17:03:55 CET
Der Test wurde in Python neugeschrieben und testet nun die Authentifikation gegen das lokale System anstatt gegen ldap/master.
Comment 8 Stefan Gohmann univentionstaff 2013-05-02 10:18:35 CEST
Siehe Bug #31256. Am besten im ersten Schritt ucr set homedir/mount=false setzen und später wieder auf den richtigen Wert zurücksetzen.
Comment 9 Tobias Peters univentionstaff 2013-05-02 16:47:19 CEST
Die UCR Variable homedir/mount ist nun während des Tests auf 'false' und wird am Ende wieder auf den ursprünglichen Wert zurückgesetzt.
Comment 10 Stefan Gohmann univentionstaff 2013-05-06 07:50:10 CEST
Das verbessert die Tests schon mal. Aber in Jenkins schlägt der Test noch fehl:

-------------------------------------------------------------------------------
Fehlermeldung

Test failed

Standard Ausgabe (STDOUT)

Object created: uid=Tf699bd4ea35,cn=users,dc=eu-west-1,dc=compute,dc=amazonaws,dc=com
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Using username "Tf699bd4ea35"
Create homedir/mount
Multifile: /etc/pam.d/common-session
19 of 24 have been successfull.
Object removed: uid=Tf699bd4ea35,cn=users,dc=eu-west-1,dc=compute,dc=amazonaws,dc=com
Unsetting homedir/mount
Multifile: /etc/pam.d/common-session

Standard Fehler (STDERR)

Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.3]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.3]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.3]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.3]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
Domain=[EU-WEST-1] OS=[Unix] Server=[Samba 4.0.3]
-------------------------------------------------------------------------------

Samba Bug oder ein Problem im Test?
Comment 11 Tobias Peters univentionstaff 2013-07-10 16:28:20 CEST
Dieser Test funktioniert mittlerweile auch im Jenkins.
Comment 12 Arvid Requate univentionstaff 2013-07-15 16:15:12 CEST
Created attachment 5324 [details]
patch to make the test also work on samba3

The test itself works now. I would only suggest putting it into common. With the attached patch it worked also on a univention-samba system.
Comment 13 Tobias Peters univentionstaff 2013-07-16 13:48:59 CEST
The test works on samba and samba4 systems now and has accordingly been moved to 53_samba-common.
Comment 14 Stefan Gohmann univentionstaff 2013-08-20 10:53:43 CEST
OK, it looks good so far. One small issue, please remove the function get_unique_username. I don't think we should use in this case a specific username generation.
Comment 15 Arvid Requate univentionstaff 2013-08-22 15:24:31 CEST
The testcase now uses the testing.udm methods.
Comment 16 Stefan Gohmann univentionstaff 2013-08-22 17:02:12 CEST
OK
Comment 17 Stefan Gohmann univentionstaff 2013-11-19 06:44:18 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".