Heinz Hölzl
2016-Sep-30 09:59 UTC
[Samba] ?==?utf-8?q? ?==?utf-8?q? ?= uncaught exception on samba-tool fsmo transfe
ok, a other try .. i tranfer the roles back to DC2: first run: error second run: error third run: NO error then i added "import samba.drs_utils" in /opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py and now the role transfer works fine. root at dc2:~# samba-tool fsmo transfer --role=all -U administrator FSMO transfer of 'rid' role successful FSMO transfer of 'pdc' role successful FSMO transfer of 'naming' role successful FSMO transfer of 'infrastructure' role successful FSMO transfer of 'schema' role successful Password for [GVCC\administrator]: ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module' object has no attribute 'drs_utils' File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", line 490, in run "domaindns", samdb) File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", line 129, in transfer_dns_role except samba.drs_utils.drsException, e: root at dc2:~# root at dc2:~# root at dc2:~# root at dc2:~# samba-tool fsmo transfer --role=all -U administrator This DC already has the 'rid' FSMO role This DC already has the 'pdc' FSMO role This DC already has the 'naming' FSMO role This DC already has the 'infrastructure' FSMO role This DC already has the 'schema' FSMO role This DC already has the 'domaindns' FSMO role Password for [GVCC\administrator]: ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module' object has no attribute 'drs_utils' File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", line 492, in run samdb) File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", line 129, in transfer_dns_role except samba.drs_utils.drsException, e: root at dc2:~# root at dc2:~# root at dc2:~# samba-tool fsmo transfer --role=all -U administrator This DC already has the 'rid' FSMO role This DC already has the 'pdc' FSMO role This DC already has the 'naming' FSMO role This DC already has the 'infrastructure' FSMO role This DC already has the 'schema' FSMO role This DC already has the 'domaindns' FSMO role This DC already has the 'forestdns' FSMO role root at dc2:~# ls /opt/samba/lib/python2.7/site-packages/samba/drs_utils.py /opt/samba/lib/python2.7/site-packages/samba/drs_utils.py Am Freitag, 30. September 2016 11:07 CEST, Rowland Penny via samba <samba at lists.samba.org> schrieb:> On Fri, 30 Sep 2016 10:47:08 +0200 > Heinz Hölzl via samba <samba at lists.samba.org> wrote: > > > > > sorry, samba version 4.5.0 > > > > > > Am Freitag, 30. September 2016 10:31 CEST, Rowland Penny via samba> > <samba at lists.samba.org> schrieb: > > > On Fri, 30 Sep 2016 10:20:27 +0200 > > > Heinz Hölzl via samba <samba at lists.samba.org> wrote: > > > > > > > Hi, > > > > > > > > i transfered the roles from DC2 to DC1: > > > > > > > > root at dc1:~# samba-tool fsmo transfer --role=all -U administrator> > > > > > This DC already has the 'rid' FSMO role This DC already has the > > > > > 'pdc' FSMO role > > > > This DC already has the 'naming' FSMO role > > > > This DC already has the 'infrastructure' FSMO role > > > > This DC already has the 'schema' FSMO role > > > > This DC already has the 'domaindns' FSMO role > > > > Password for [EXAMPLE\administrator]: > > > > ERROR(<type 'exceptions.AttributeError'>): uncaught exception - > > > > 'module' object has no attribute 'drs_utils' File > > > > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", > > > > line 176, in _run return self.run(*args, **kwargs) File > > > > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",> > > > line> > 492, in run samdb) File > > > > line> > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", > > > > line> > line> > 129, in transfer_dns_role except > > > > line> > line> > samba.drs_utils.drsException, e: > > > > > > > > > > > > Is this a bug ? > > > > > > > > it seems, that the script transfered the roles: > > > > > > > > root at dc1:~# samba-tool fsmo show > > > > SchemaMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > InfrastructureMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > RidAllocationMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > PdcEmulationMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > DomainNamingMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > DomainDnsZonesMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > ForestDnsZonesMasterRole owner: CN=NTDS > > > > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > > > > > > > Can i do other tests to see if everything was transfered well?> > > > > > > > regards, > > > > heinz > > > > > > > > > > > > > > What version of Samba is this ? > > > > > > Rowland > > > > > > -- > > > To unsubscribe from this list go to the following URL and read the > > > instructions: https://lists.samba.org/mailman/options/samba > > > > > > > > > > > > > > OK, firstly from what you posted, you didn't transfer any FSMO roles, > the DC already held them, lines such as 'This DC already has the 'rid' > FSMO role' tell us this. > > The error seems to occur with the forestdns role, why just that one I > do not know, but from the error message, it seems that it cannot find > drs_utils.py in /opt/samba/lib/python2.7/site-packages/samba > > If I run the same command on my first DC (which holds all the FSMO > roles), I get this: > > root at dc1:~# samba-tool fsmo transfer --role=all -UAdministrator > This DC already has the 'rid' FSMO role > This DC already has the 'pdc' FSMO role > This DC already has the 'naming' FSMO role > This DC already has the 'infrastructure' FSMO role > This DC already has the 'schema' FSMO role > This DC already has the 'domaindns' FSMO role > This DC already has the 'forestdns' FSMO role > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Rowland Penny
2016-Sep-30 10:21 UTC
[Samba] ?= ?==?utf-8?q? uncaught exception on samba-tool fsmo transfe
On Fri, 30 Sep 2016 11:59:04 +0200 Heinz Hölzl via samba <samba at lists.samba.org> wrote:> ok, a other try .. i tranfer the roles back to DC2: > > > first run: error > second run: error > third run: NO error > > > then i added "import samba.drs_utils" > in /opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py and > now the role transfer works fine. > >What OS is this on ? Rowland
Heinz Hölzl
2016-Sep-30 10:54 UTC
[Samba] ?==?utf-8?q? ?==?utf-8?q? ?= ?= uncaught exception on samba-tool fsmo transf
> On Fri, 30 Sep 2016 11:59:04 +0200 > Heinz Hölzl via samba <samba at lists.samba.org> wrote: > > > ok, a other try .. i tranfer the roles back to DC2: > > > > > > first run: error > > second run: error > > third run: NO error > > > > > > then i added "import samba.drs_utils" > > in /opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py and> > now the role transfer works fine. > > > > > > What OS is this on ?Ubuntu 14.04.3 LTS ./configure --with-gpgme --with-ads --with-ads --with-winbind --enable-cups --with-pam --with-quotas --with-acl-support --with-dnsupdate --with-syslog --with-regedit --with-systemd --prefix=/opt/samba --sysconfdir=/etc/samba --localstatedir=/srv/samba/var --with-privatedir=/srv/samba/private --with-privatelibdir=/opt/samba/private> > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba-- Heinz Hölzl EDV-Abteilung | Ripartizione EDP Südtiroler Gemeindenverband Genossenschaft Consorzio dei Comuni della Provincia di Bolzano Societá Cooperativa I – 39100 Bozen – Kanonikus-Michael-Gamper-Straße 10 I – 39100 Bolzano – via Canonico Michael Gamper 10