improve AD provisioning DEP8 test

Bug #2009485 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

The samba AD provisioning test runs with "set -e", and when it fails, there is nothing else logged. Example:
## DNS tests
Obtaining administrator kerberos ticket
Password for <email address hidden>:
autopkgtest [19:22:43]: test samba-ad-dc-provisioning-internal-dns: -----------------------]
autopkgtest [19:22:46]: test samba-ad-dc-provisioning-internal-dns: - - - - - - - - - - results - - - - - - - - - -
samba-ad-dc-provisioning-internal-dns FAIL non-zero exit status 124

From the exit code, I know it was a timeout (124). We should amend the exit trap with logs, like kerberos logs, samba logs, /var/log/syslog, etc.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package samba - 2:4.17.5+dfsg-2ubuntu2

---------------
samba (2:4.17.5+dfsg-2ubuntu2) lunar; urgency=medium

  * d/t/samba-ad-dc-provisioning-internal-dns: test improvements
    (LP: #2009485):
    - increase kinit timeout, as it also does DNS lookups
    - add a trap on exit to show logs in the case of some failure

 -- Andreas Hasenack <email address hidden> Mon, 06 Mar 2023 11:49:34 -0300

Changed in samba (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.