[389-devel] Build failed in Jenkins: NIGHTLY #108

2017-10-13 Thread mareynol
See 


--
[...truncated 54372 lines...]

# Create and extract a service keytab
args = {SER_HOST: self.host,
SER_PORT: self.port,
SER_SECURE_PORT: self.sslport,
SER_ROOT_DN: self.binddn,
SER_ROOT_PW: self.bindpw,
SER_CREATION_SUFFIX: self.creation_suffix,
SER_USER_ID: self.userid,
SER_SERVERID_PROP: self.serverid,
SER_GROUP_ID: self.groupid,
SER_DEPLOYED_DIR: self.prefix,
SER_BACKUP_INST_DIR: self.backupdir,
SER_STRICT_HOSTNAME_CHECKING: self.strict_hostname}

if self.inst_scripts is not None:
args[SER_INST_SCRIPTS_ENABLED] = self.inst_scripts

content = formatInfData(args)
result = DirSrvTools.runInfProg(prog, content, self.verbose,
prefix=self.prefix)
if result != 0:
>   raise Exception('\''Failed to run setup-ds.pl'\'')
E   Exception: Failed to run setup-ds.pl

../../../lib389/lib389/__init__.py:841: Exception
 Captured stdout setup -
Instance slapd-standalone1 removed.
OK group dirsrv exists
OK user dirsrv exists
=== FAILURES ===
_ test_slapd_InstScriptsEnabled[true] __

config_attr = '\''true'\''

@pytest.mark.parametrize("config_attr", ('\''true'\'', '\''false'\''))
def test_slapd_InstScriptsEnabled(config_attr):
"""Tests InstScriptsEnabled attribute with "True" and "False" options

:id: 02faac7f-c44d-4a3e-bf2d-1021e51da1ed

:setup: Standalone instance with slapd.InstScriptsEnabled option as 
"True" and "False"

:steps:
 1. Execute setup-ds.pl with slapd.InstScriptsEnabled option as 
"True".
 2. Check if /usr/lib64/dirsrv/slapd-instance instance script 
directory is created or not.
 3. Execute setup-ds.pl with slapd.InstScriptsEnabled option as 
"False".
 4. Check if /usr/lib64/dirsrv/slapd-instance instance script 
directory is created or not.

:expectedresults:
 1. Instance should be created.
 2. /usr/lib64/dirsrv/slapd-instance instance script directory 
should be created.
 3. Instance should be created.
 4. /usr/lib64/dirsrv/slapd-instance instance script directory 
should not be created.
"""

log.info('\''set SER_INST_SCRIPTS_ENABLED to {}'\''.format(config_attr))
>   standalone = create_instance(config_attr)

suites/setup_ds/setup_ds_test.py:62: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
suites/setup_ds/setup_ds_test.py:35: in create_instance
standalone.create()
../../../lib389/lib389/__init__.py:936: in create
self._createDirsrv()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 

def _createDirsrv(self):
"""Create a new instance of directory server

@param self - containing the set properties

SER_HOST(host)
SER_PORT(port)
SER_SECURE_PORT (sslport)
SER_ROOT_DN (binddn)
SER_ROOT_PW (bindpw)
SER_CREATION_SUFFIX (creation_suffix)
SER_USER_ID (userid)
SER_SERVERID_PROP   (serverid)
SER_GROUP_ID(groupid)
SER_DEPLOYED_DIR(prefix)
SER_BACKUP_INST_DIR (backupdir)
SER_REALM   (krb5_realm)

@return None

@raise None

}
"""

DirSrvTools.lib389User(user=DEFAULT_USER)
prog = os.path.join(self.ds_paths.sbin_dir, CMD_PATH_SETUP_DS)

if not os.path.isfile(prog):
log.error("Can'\''t find file: %r, removing extension" % prog)
prog = prog[:-3]

# Create and extract a service keytab
args = {SER_HOST: self.host,
SER_PORT: self.port,
SER_SECURE_PORT: self.sslport,
SER_ROOT_DN: self.binddn,
SER_ROOT_PW: self.bindpw,
SER_CREATION_SUFFIX: self.creation_suffix,
SER_USER_ID: self.userid,
SER_SERVERID_PROP: self.serverid,
SER_GROUP_ID: self.groupid,
SER_DEPLOYED_DIR: self.prefix,
SER_BACKUP_INST_DIR: self.backupdir,
SER_STRICT_HOSTNAME_CHECKING: self.strict_hostname}

if self.inst_scripts is not None:
args[SER_INST_SCRIPTS_ENABLED] = self.inst_scripts

  

[389-devel] Build failed in Jenkins: COMMIT_SANITY_TEST #70

2017-10-13 Thread mareynol
See 


Changes:

[spichugi] Issue 49381 - Refactor filter test suite docstrings

--
[...truncated 1537 lines...]
D   man/man8/saveconfig.8
D   man/man8/schema-reload.pl.8
D   man/man8/setup-ds.pl.8
D   man/man8/start-dirsrv.8
D   man/man8/status-dirsrv.8
D   man/man8/stop-dirsrv.8
D   man/man8/suffix2instance.8
D   man/man8/syntax-validate.pl.8
D   man/man8/upgradedb.8
D   man/man8/upgradednformat.8
D   man/man8/usn-tombstone-cleanup.pl.8
D   man/man8/verify-db.pl.8
D   man/man8/vlvindex.8
D   rfcs/Makefile
D   rfcs/examples/template-bare-06.txt
D   rfcs/src/draft-wibrown-ldapssotoken-00.xml
D   rpm.mk
D   rpm/389-ds-base-devel.README
D   rpm/389-ds-base-git.sh
D   rpm/add_patches.sh
D   rpm/rpmverrel.sh
D   setup.py.in
D   src/contrib/README.md
D   src/contrib/back-ldif/add.c
D   src/contrib/back-ldif/back-ldif.h
D   src/contrib/back-ldif/bind.c
D   src/contrib/back-ldif/close.c
D   src/contrib/back-ldif/compare.c
D   src/contrib/back-ldif/config.c
D   src/contrib/back-ldif/delete.c
D   src/contrib/back-ldif/init.c
D   src/contrib/back-ldif/modify.c
D   src/contrib/back-ldif/modrdn.c
D   src/contrib/back-ldif/monitor.c
D   src/contrib/back-ldif/search.c
D   src/contrib/back-ldif/start.c
D   src/contrib/back-ldif/unbind.c
D   src/libsds/README.md
D   src/libsds/external/csiphash/csiphash.c
D   src/libsds/external/liblfds711/build/gcc_gnumake_kbuild/Kbuild
D   src/libsds/external/liblfds711/build/msvc_gnumake/liblfds711.def
D   src/libsds/external/liblfds711/build/msvc_gnumake/makefile
D   src/libsds/external/liblfds711/build/wdk_7.1/dirs
D   
src/libsds/external/liblfds711/build/wdk_7.1/driver_entry_renamed_to_avoid_compiler_warning.c
D   src/libsds/external/liblfds711/build/wdk_7.1/liblfds711.def
D   
src/libsds/external/liblfds711/build/wdk_7.1/readme_before_win_kernel_build.txt
D   
src/libsds/external/liblfds711/build/wdk_7.1/runme_before_win_kernel_dynamic_lib_build.bat
D   
src/libsds/external/liblfds711/build/wdk_7.1/runme_before_win_kernel_static_lib_build.bat
D   src/libsds/external/liblfds711/build/wdk_7.1/sources.dynamic
D   src/libsds/external/liblfds711/build/wdk_7.1/sources.static
D   src/libsds/external/liblfds711/inc/liblfds711.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_btree_addonly_unbalanced.h
D   src/libsds/external/liblfds711/inc/liblfds711/lfds711_freelist.h
D   src/libsds/external/liblfds711/inc/liblfds711/lfds711_hash_addonly.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_list_addonly_singlylinked_ordered.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_list_addonly_singlylinked_unordered.h
D   src/libsds/external/liblfds711/inc/liblfds711/lfds711_misc.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_porting_abstraction_layer_compiler.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_porting_abstraction_layer_operating_system.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_porting_abstraction_layer_processor.h
D   src/libsds/external/liblfds711/inc/liblfds711/lfds711_prng.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_queue_bounded_manyproducer_manyconsumer.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_queue_bounded_singleproducer_singleconsumer.h
D   
src/libsds/external/liblfds711/inc/liblfds711/lfds711_queue_unbounded_manyproducer_manyconsumer.h
D   src/libsds/external/liblfds711/inc/liblfds711/lfds711_ringbuffer.h
D   src/libsds/external/liblfds711/inc/liblfds711/lfds711_stack.h
D   
src/libsds/external/liblfds711/src/lfds711_btree_addonly_unbalanced/lfds711_btree_addonly_unbalanced_cleanup.c
D   
src/libsds/external/liblfds711/src/lfds711_btree_addonly_unbalanced/lfds711_btree_addonly_unbalanced_get.c
D   
src/libsds/external/liblfds711/src/lfds711_btree_addonly_unbalanced/lfds711_btree_addonly_unbalanced_init.c
D   
src/libsds/external/liblfds711/src/lfds711_btree_addonly_unbalanced/lfds711_btree_addonly_unbalanced_insert.c
D   
src/libsds/external/liblfds711/src/lfds711_btree_addonly_unbalanced/lfds711_btree_addonly_unbalanced_internal.h
D   
src/libsds/external/liblfds711/src/lfds711_btree_addonly_unbalanced/lfds711_btree_addonly_unbalanced_query.c
D   
src/libsds/external/liblfds711/src/lfds711_freelist/lfds711_freelist_cleanup.c
D   
src/libsds/external/liblfds711/src/lfds711_freelist/lfds711_freelist_init.c
D   
src/libsds/external/liblfds711/src/lfds711_freelist/lfds711_freelist_internal.h
D   
src/libsds/external/liblfds711/src/lfds711_freelist/lfds711_freelist_pop.c
D   
src/libsds/external/liblfds711/src/lfds711_fr

[389-devel] Please review: 49403 ns logging

2017-10-13 Thread William Brown
https://pagure.io/389-ds-base/issue/49403

https://pagure.io/389-ds-base/issue/raw/files/9ebc339b7d75ab4142fe09258646ee1a38dda7ef9c750f1b49f4659caa5465e9-0001-Ticket-49403-tidy-ns-logging.patch


-- 
Sincerely,

William Brown
Software Engineer
Red Hat, Australia/Brisbane



signature.asc
Description: This is a digitally signed message part
___
389-devel mailing list -- 389-devel@lists.fedoraproject.org
To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org


[389-devel] Build failed in Jenkins: COMMIT_SANITY_TEST #69

2017-10-13 Thread mareynol
TY_TEST/ws/source/389-ds-base/rpmbuild/BUILDROOT/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64/usr/share/doc/python3-389-ds-base-tests>
+ export DOCDIR
+ /usr/bin/mkdir -p 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/BUILDROOT/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64/usr/share/doc/python3-389-ds-base-tests>
+ cp -pr LICENSE 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/BUILDROOT/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64/usr/share/doc/python3-389-ds-base-tests>
+ cp -pr LICENSE.GPLv3+ 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/BUILDROOT/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64/usr/share/doc/python3-389-ds-base-tests>
+ exit 0
Provides: python3-389-ds-base-tests = 1.4.0.1-20171013gitdf4492b.fc25 
python3.5dist(dirsrvtests) = 1.4.0.1 python3dist(dirsrvtests) = 1.4.0.1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 
4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 3.5
Processing files: 389-ds-base-debuginfo-1.4.0.1-20171013gitdf4492b.fc25.x86_64
Provides: 389-ds-base-debuginfo = 1.4.0.1-20171013gitdf4492b.fc25 
389-ds-base-debuginfo(x86-64) = 1.4.0.1-20171013gitdf4492b.fc25
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 
4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/BUILDROOT/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/SRPMS/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.src.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/x86_64/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/x86_64/389-ds-base-libs-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/x86_64/389-ds-base-devel-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/x86_64/389-ds-base-snmp-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/noarch/python3-lib389-1.4.0.1-20171013gitdf4492b.fc25.noarch.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/noarch/python3-389-ds-base-tests-1.4.0.1-20171013gitdf4492b.fc25.noarch.rpm>
Wrote: 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/x86_64/389-ds-base-debuginfo-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm>
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.YzXiNP
+ umask 022
+ cd 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/BUILD>
+ cd 389-ds-base-1.4.0.1.20171013gitdf4492b
+ rm -rf 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/BUILDROOT/389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64>
+ exit 0
cp 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/*/389-ds-base-1.4.0.1-20171013gitdf4492b*.rpm>
 dist/rpms/
cp 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/RPMS/*/389-ds-base-*-1.4.0.1*.rpm>
 dist/rpms/
cp 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild/SRPMS/389-ds-base-1.4.0.1-20171013gitdf4492b*.src.rpm>
 dist/srpms/
rm -rf 
<http://vm-166.abc.idm.lab.eng.brq.redhat.com:8080/job/COMMIT_SANITY_TEST/ws/source/389-ds-base/rpmbuild>
+ cd dist/rpms/
+ sudo rpm -iUvh 389-ds-base-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm 
389-ds-base-libs-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm 
389-ds-base-debuginfo-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm 
389-ds-base-devel-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm 
389-ds-base-snmp-1.4.0.1-20171013gitdf4492b.fc25.x86_64.rpm
Preparing...  ####
Updating / installing...
389-ds-base-libs-1.4.0.1-20171013gitdf
389-ds-base-1.4.0.1-20171013gitdf4492b
389-ds-base-snmp-1.4.0.1-20171013gitd

[389-devel] Re: attn: lib389 python 3 only and merge

2017-10-13 Thread William Brown
On Tue, 2017-10-10 at 23:35 +1000, William Brown wrote:
> Hi,
> 
> As a team we've decide to conduct the merge of the lib389 source tree
> with the 389-ds-base source code. In addition, we are in a position
> where we will only support python 3 for the usage of lib389.
> 
> 
> Given that most people have not packaged or shipped python-lib389 in
> most forms, this should be a relatively easy transition - we only need
> to add and support the python 3 module build steps following the make
> steps.
> 
> This merger will happen in the next week, and we will notify when this
> process is complete. We will update our build documentation on
> port389.org to reflect this change,
> 
> Thanks, 
> 
> ___


Hi all,

The merge is now complete. Some patches may need some work to apply to
the new tree, however it should be easier to manage,

For new build instructions, please see our specfile and our contributing
guide for reference,

http://www.port389.org/docs/389ds/contributing.html

-- 
Sincerely,

William Brown
Software Engineer
Red Hat, Australia/Brisbane



signature.asc
Description: This is a digitally signed message part
___
389-devel mailing list -- 389-devel@lists.fedoraproject.org
To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org


[389-devel] Re: csiphash on Sparc

2017-10-13 Thread William Brown
On Wed, 2017-10-11 at 13:36 +0200, Lukas Slebodnik wrote:
> On (11/10/17 12:42), Carsten Grzemba wrote:
> >
> 
> >
> 
> >On 11.10.17 10:54, William Brown   wrote: 
> 
> >> 
> 
> >> On Tue, 2017-10-10 at 16:28 +0200, Carsten Grzemba wrote:
> 
> >> > 
> 
> >> > On 10.10.17 16:10, William Brown  wrote: 
> 
> >> > > 
> 
> >> > > On Fri, 2017-10-06 at 10:21 +0200, Carsten Grzemba wrote:
> 
> >> > > > Currently the code src/libsds/external/csiphash/csiphash.c do not 
> >> > > > work on Sparc. 
> 
> >> > > > The casting void* or char* to unit64_t* throws Bus-Error.
> 
> >> > > > 
> 
> >> > > > The solution would be to copy the content of the void and char 
> >> > > > pointer so that the variabeles are suitably aligned.
> 
> >> > > > To prevent have to use malloc: do we know the max of src_sz?
> 
> >> > > > 
> 
> >> > > 
> 
> >> > > 
> 
> >> > > What line is this? I assume you are refering to:
> 
> >> > > 
> 
> >> > > https://pagure.io/389-ds-base/blob/master/f/src/libsds/external/csiphash/csiphash.c#_82
> 
> >> > > 
> 
> >> > yes!
> 
> >> > 
> 
> >> > > 
> 
> >> > > (https://pagure.io/389-ds-base/blob/master/f/src/libsds/external/csiphash/csiphash.c#_82)
> 
> >> > > 
> 
> >> > > No, we can't know the max of src_sz, in theory it could be uint64_t 
> >> > > max.
> 
> >> > > So this may not be an option.
> 
> >> > > 
> 
> >> > So is malloc for uint64 alignment of the src variable the only option?
> 
> >> > 
> 
> >> > > 
> 
> >> > > 
> 
> >> > > 
> 
> >> > > Are you trying this on a 32bit platform perhaps? What's the arch of the
> 
> >> > > machine with the issue?
> 
> >> > > 
> 
> >> > 64bit, Fujitsu M4000
> 
> >> > $ isainfo -v
> 
> >> > 64-bit sparcv9 applications
> 
> >> > fmaf vis2 vis popc 
> 
> >> 
> 
> >> I feel like there is something I'm missing here in the problem. What is
> 
> >> sizeof(void *) on this platform? I'm assuming 4 or 16 rather than 8
> 
> >> bytes? Is this correct? 
> 
> >> 
> 
> >no it is 8.
> 
> >
> 
> >The following programm works on x86 but dumps on Sparc:
> 
> >
> 
> >
> 
> >
> 
> >#include 
> 
> >#include 
> 
> >
> 
> >int func(const void *str, size_t sz, const char key[16]){
> 
> > uint64_t *ip = (uint64_t*) str;
> 
> > printf ("str: %lx:%lx\n", ip, *ip);
> 
> >}
> 
> >
> 
> >int main()
> 
> >{
> 
> > char str[25] = "ABCDEFGH12345678";
> 
> > char key[16];
> 
> >
> 
> But following code should work. Please correct me if I am wrong. I didn't 
> test.
>   char *str = strdup("ABCDEFGH12345678");
>   char *key = malloc(16);
> 
> yes, function sds_siphash13 is not ideal because it rely on properly alligned
> input data.
> 

We are free to change the signature of the function, it's just that I
used this from another open source component (thus why it's slightly
different style wise)

What would you suggest here Lukas? 


-- 
Sincerely,

William Brown
Software Engineer
Red Hat, Australia/Brisbane



signature.asc
Description: This is a digitally signed message part
___
389-devel mailing list -- 389-devel@lists.fedoraproject.org
To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org