Bug 14052 - Uncaught exception on samba-tool fsmo transfer
Summary: Uncaught exception on samba-tool fsmo transfer
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.6
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2019-07-25 09:07 UTC by Sven Schwedas
Modified: 2019-07-25 09:13 UTC (History)
0 users

See Also:

Fix imports (226 bytes, patch)
2019-07-25 09:07 UTC, Sven Schwedas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwedas 2019-07-25 09:07:51 UTC
Created attachment 15326 [details]
Fix imports

ERROR(<class 'AttributeError'>): uncaught exception - module 'samba' has no attribute 'drs_utils'
  File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/samba/netcmd/fsmo.py", line 531, in run
    transfer_dns_role(self.outf, sambaopts, credopts, role, samdb)
  File "/usr/lib/python3/dist-packages/samba/netcmd/fsmo.py", line 134, in transfer_dns_role
    except samba.drs_utils.drsException as e:

As detailed in an email from 2016[1], this can be trivially fixed by adding the correct imports. 

Comment 1 Andrew Bartlett 2019-07-25 09:13:02 UTC

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