Bug 47710 - Regression: samba-tool ntacl sysvolcheck traceback due to /var/lib/samba/netlogon
Regression: samba-tool ntacl sysvolcheck traceback due to /var/lib/samba/netl...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2-4-errata
Assigned To: Arvid Requate
Felix Botner
:
Depends on: 44305 47429
Blocks:
  Show dependency treegraph
 
Reported: 2018-09-03 13:56 CEST by Arvid Requate
Modified: 2018-09-05 13:17 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Ticket number: 2018081621000464
Bug group (optional):
Max CVSS v3 score:
requate: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2018-09-03 13:56:36 CEST
The patch for Bug #44305 was lost while fixing Bug #47429

So we have the old symptom of Bug #44305:

On a UCS@school singlemaster samba-tool ntacl sysvolcheck aborts with a traceback while checking the NTACLs of /var/lib/samba/netlogon :

===
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (61, 'No data available')
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 270, in run
    lp)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1732, in checksysvolacl
    fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
  File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 82, in getntacl
    xattr.XATTR_NTACL_NAME)
===
Comment 1 Arvid Requate univentionstaff 2018-09-03 15:12:10 CEST
svn r18266     | Pick up missing patches from errata4.2-3
git d20dd2d20f | Advisory
Comment 2 Felix Botner univentionstaff 2018-09-05 10:23:51 CEST
missing
80_allow_missing_ntver_in_cldap_ping.quilt, but comes with the next update

added

34_dns_update_tombstoned.quilt
34_samba_dns_tomstone.quilt
35_allow_dns_update_for_samaccountname.quilt
97-Bug-44305-remove-netlogon-from-samba-tool-ntacl-sysv.quilt
97_Bug-38217-robust-sysvolreset.quilt
99_samba-master-0001-s4-drsuapi-Avoid-segfault-when-replicating-as-a-non-.quilt
99_samba-master-0002-s4-drsuapi-Use-sam_ctx-consistently-in-dcesrv_drsuap.quilt


OK - build logs

Applying patch 34_dns_update_tombstoned.quilt Output of the patch process: OK
Applying patch 34_samba_dns_tomstone.quilt Output of the patch process: OK
Applying patch 35_allow_dns_update_for_samaccountname.quilt Output of the patch process: OK
Applying patch 97-Bug-44305-remove-netlogon-from-samba-tool-ntacl-sysv.quilt Output of the patch process: OK
Applying patch 97_Bug-38217-robust-sysvolreset.quilt Output of the patch process: OK
dpkg-source: Information: 99_samba-master-0001-s4-drsuapi-Avoid-segfault-when-replicating-as-a-non-.quilt wird angewandt
dpkg-source: Information: 99_samba-master-0002-s4-drsuapi-Use-sam_ctx-consistently-in-dcesrv_drsuap.quilt wird angewandt


OK - debian changelog

samba (2:4.6.15-1A~4.2.0.201809031504) ucs4-2-0-0; urgency=low

  * UCS auto build. The following patches have been applied to the original source package
    ... 
    34_dns_update_tombstoned
    34_samba_dns_tomstone
    35_allow_dns_update_for_samaccountname
    ...
    97-Bug-44305-remove-netlogon-from-samba-tool-ntacl-sysv
    97_Bug-38217-robust-sysvolreset
    ...
    99_samba-master-0001-s4-drsuapi-Avoid-segfault-when-replicating-as-a-non-
    99_samba-master-0002-s4-drsuapi-Use-sam_ctx-consistently-in-dcesrv_drsuap
    
OK - single master samba product tests

OK - yaml
Comment 3 Arvid Requate univentionstaff 2018-09-05 13:17:16 CEST
<http://errata.software-univention.de/ucs/4.2/505.html>