Bug 37977 - 90_ucsschool.94_samba4_check_shares_access.test fails in Jenkins
Summary: 90_ucsschool.94_samba4_check_shares_access.test fails in Jenkins
Status: RESOLVED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: Samba 4
Version: unspecified
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Dmitry Galkin
QA Contact:
URL:
Keywords:
Depends on: 34224
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-10 10:31 CET by Ammar Najjar
Modified: 2015-03-17 12:58 CET (History)
3 users (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):
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 Ammar Najjar univentionstaff 2015-03-10 10:31:51 CET
90_ucsschool.94_samba4_check_shares_access.test fails in Jenkins 

Multiserver → 
    SambaVersion=s4-school-only
    SambaVersion=s4-school-only-with-slave

with the failing message:

Trying to connect to Sysvol on DC-Master and list the contents using Samba client:
('smbclient', '//master204.autotest204.local/sysvol', '--user=ucs_test_school_user_u4fqnbkn%Foo3vjvc4n3s', '--timeout=120', '--workgroup=AUTOTEST204.LOCAL', '--command=ls')
The Samba client produced the following output to STDOUT:
Connection to master204.autotest204.local failed (Error NT_STATUS_CONNECTION_REFUSED)
### FAIL ###

The connection with DC-Master failed. See the stdout.
###      ###

http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/22/SambaVersion=s4-school-only/testReport/90_ucsschool/94_samba4_check_shares_access/test/

http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/21/SambaVersion=s4-school-only/testReport/90_ucsschool/94_samba4_check_shares_access/test/

Test is disabled with SKIP-UCSSCHOOL tag, please enable when this bug is fixed.
Comment 1 Arvid Requate univentionstaff 2015-03-10 13:17:30 CET
According to the code the test should have been skripped in these cases:

                # skip the test if DC-Master has no S4:
                if not self.dc_master_has_samba4():
                        self.return_code_result_skip()


So essential.test_samba4.TestSamba4.dc_master_has_samba4 needs to be checked.
Comment 2 Dmitry Galkin univentionstaff 2015-03-10 16:53:56 CET
(In reply to Arvid Requate from comment #1)
> According to the code the test should have been skripped in these cases:
> 
>                 # skip the test if DC-Master has no S4:
>                 if not self.dc_master_has_samba4():
>                         self.return_code_result_skip()
> 
> 
> So essential.test_samba4.TestSamba4.dc_master_has_samba4 needs to be checked.

Hmm, interesting. The logic there is quite simple. I'll check that.
Comment 3 Dmitry Galkin univentionstaff 2015-03-17 12:58:41 CET
OK, I've forgot to set 'self.ldap_master' hostname before the check if it has Samba4.

r59101:
  * 90_ucsschool/essential/test_samba4.py: get 'self.ldap_master' if it is none
    90_ucsschool/94_samba4_check_shares_access: added skip message,
    bug reference, enabled the test (Bug #37977).


Test re-enabled.