ipatests: set default 389-ds log level to 0

During integration tests, the log level of 8192 (replication debugging)
was excessive and made reading 389-ds logs very hard without providing
any useful information.

Part of: https://pagure.io/freeipa/issue/7162
Signed-off-by: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Tomas Krizek 2017-09-20 17:48:28 +02:00
parent be66eadb62
commit be6f1a67cb
No known key found for this signature in database
GPG Key ID: 22A2A94B5E49415A

View File

@ -236,14 +236,14 @@ def restore_hostname(host):
host.run_command(['rm', backupname])
def enable_replication_debugging(host):
logger.info('Enable LDAP replication logging')
def enable_replication_debugging(host, log_level=0):
logger.info('Set LDAP debug level')
logging_ldif = textwrap.dedent("""
dn: cn=config
changetype: modify
replace: nsslapd-errorlog-level
nsslapd-errorlog-level: 8192
""")
nsslapd-errorlog-level: {log_level}
""".format(log_level=log_level))
host.run_command(['ldapmodify', '-x',
'-D', str(host.config.dirman_dn),
'-w', host.config.dirman_password,