[PATCH] Create a 'binddns dir' for files used by the bind_dlz module and named

Andreas Schneider asn at samba.org
Fri Sep 1 06:28:25 UTC 2017


On Friday, 1 September 2017 00:19:43 CEST Jeremy Allison wrote:
> On Thu, Aug 31, 2017 at 10:15:00AM +0200, Andreas Schneider wrote:
> > > which explicitly creates paths.private_dir as far as I can tell.
> > > 
> > > Python debugging in autobuild leaves a lot to be desired...
> > 
> > I've added a function directory_create_or_exists() which will not complain
> > if the directory already exists. The function does not enforce directory
> > permissions.
> 
> Sorry, Andreas, still failing:
> 
> [38(660)/2195 at 6m45s] samba4.blackbox.upgradeprovision.alpha13
> UNEXPECTED(failure):
> samba4.blackbox.upgradeprovision.alpha13.referenceprovision(none) REASON:
> Exception: Exception: Administrator password will be set randomly! You are
> not root or your system does not support xattr, using tdb backend for
> attributes. not using extended attributes to store ACLs and other metadata.
> If you intend to use this provision in production, rerun the script as root
> on a system supporting xattrs. No IPv4 address will be assigned
> ERROR(<type 'exceptions.NameError'>): uncaught exception - global name
> 'errno' is not defined File "bin/python/samba/netcmd/__init__.py", line
> 176, in _run
>     return self.run(*args, **kwargs)
>   File "bin/python/samba/netcmd/domain.py", line 474, in run
>     nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
>   File "bin/python/samba/provision/__init__.py", line 2081, in provision
>     directory_create_or_exists(paths.binddns_dir, 0o770)
>   File "bin/python/samba/provision/__init__.py", line 1940, in
> directory_create_or_exists
>     if e.errno in [errno.EEXIST]:
> :-(.
> 
> Jeremy.

I hate python. 'import errno' is missing but it didn't complain when I run it 
here ...

This patchset doesn't like me.

-- 
Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             asn at samba.org
www.samba.org



More information about the samba-technical mailing list