Bug 13980 - samba-tool fsmo transfer partially fails as module 'samba' has no attribute 'drs_utils'
Summary: samba-tool fsmo transfer partially fails as module 'samba' has no attribute '...
Status: RESOLVED DUPLICATE of bug 13973
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.10.4
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-30 16:55 UTC by Val Kulkov
Modified: 2019-05-30 18:58 UTC (History)
1 user (show)

See Also:


Attachments
output of "samba-tool fsmo transfer" showing errors (9.72 KB, text/x-log)
2019-05-30 16:55 UTC, Val Kulkov
no flags Details
proposed patch (251 bytes, patch)
2019-05-30 17:10 UTC, Val Kulkov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Val Kulkov 2019-05-30 16:55:19 UTC
Created attachment 15206 [details]
output of "samba-tool fsmo transfer" showing errors

Executing "samba-tool fsmo transfer --role=all" on a new DC partially fails. See the attached output, part 1.

On line 66 in the attached log file, the Python script drs.utils throws an exception: "module 'samba' has no attribute 'drs_utils'"

Adding "import samba.drs_utils" to fsmo.py fixes the problem instantly: see part 2 of the attached output.

It appears that this issue has existed for a while. It was reported in https://lists.samba.org/archive/samba/2016-September/203376.html. Google search reveals other similar reports.

Bug #13973 appears to refer to the same issue: https://bugzilla.samba.org/show_bug.cgi?id=13973
Comment 1 Val Kulkov 2019-05-30 17:10:58 UTC
Created attachment 15207 [details]
proposed patch
Comment 2 Andrew Bartlett 2019-05-30 18:58:45 UTC
Thanks for the report and patch.  A fix for this just landed in master tagged with bug 13973 and will be backported soon.

*** This bug has been marked as a duplicate of bug 13973 ***