Skip to content
Snippets Groups Projects
Commit cdc431ff authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipa[client,replica,server]: Make sure that installer logs are created

The installer logs have not been created using the ansible ipaclient,
ipareplica and ipaserver roles. This has been fixed and the installer
logs are created now. This is a new and fixed version of 2113c791 where
verbose mode is turned off.
parent 819bb570
No related branches found
No related tags found
No related merge requests found
...@@ -129,9 +129,6 @@ def main(): ...@@ -129,9 +129,6 @@ def main():
fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE) fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
statestore = sysrestore.StateFile(paths.IPA_CLIENT_SYSRESTORE) statestore = sysrestore.StateFile(paths.IPA_CLIENT_SYSRESTORE)
standard_logging_setup(
paths.IPACLIENT_INSTALL_LOG, verbose=True, debug=False,
filemode='a', console_format='%(message)s')
os.environ['KRB5CCNAME'] = paths.IPA_DNS_CCACHE os.environ['KRB5CCNAME'] = paths.IPA_DNS_CCACHE
......
...@@ -225,6 +225,9 @@ if NUM_VERSION >= 40400: ...@@ -225,6 +225,9 @@ if NUM_VERSION >= 40400:
sssd_enable_ifp = None sssd_enable_ifp = None
logger = logging.getLogger("ipa-client-install") logger = logging.getLogger("ipa-client-install")
standard_logging_setup(
paths.IPACLIENT_INSTALL_LOG, verbose=False, debug=False,
filemode='a', console_format='%(message)s')
root_logger = logger root_logger = logger
else: else:
......
...@@ -65,6 +65,7 @@ if NUM_VERSION >= 40600: ...@@ -65,6 +65,7 @@ if NUM_VERSION >= 40600:
from ipapython.certdb import IPA_CA_TRUST_FLAGS, EXTERNAL_CA_TRUST_FLAGS from ipapython.certdb import IPA_CA_TRUST_FLAGS, EXTERNAL_CA_TRUST_FLAGS
from ipapython.dn import DN from ipapython.dn import DN
from ipapython.admintool import ScriptError from ipapython.admintool import ScriptError
from ipapython.ipa_log_manager import standard_logging_setup
from ipaplatform import services from ipaplatform import services
from ipaplatform.tasks import tasks from ipaplatform.tasks import tasks
from ipaplatform.paths import paths from ipaplatform.paths import paths
...@@ -121,8 +122,10 @@ else: ...@@ -121,8 +122,10 @@ else:
logger = logging.getLogger("ipa-server-install") logger = logging.getLogger("ipa-server-install")
logger.setLevel(logging.DEBUG) #logger.setLevel(logging.DEBUG)
standard_logging_setup(
paths.IPAREPLICA_INSTALL_LOG, verbose=False, debug=False,
filemode='a', console_format='%(message)s')
@contextlib_contextmanager @contextlib_contextmanager
def redirect_stdout(f): def redirect_stdout(f):
...@@ -227,6 +230,10 @@ options.disable_dnssec_master = False ...@@ -227,6 +230,10 @@ options.disable_dnssec_master = False
options.kasp_db_file = None options.kasp_db_file = None
options.force = False options.force = False
# ServerReplicaInstall
options.subject_base = None
options.ca_subject = None
def api_Backend_ldap2(host_name, setup_ca, connect=False): def api_Backend_ldap2(host_name, setup_ca, connect=False):
# we are sure we have the configuration file ready. # we are sure we have the configuration file ready.
......
...@@ -56,6 +56,7 @@ if NUM_VERSION >= 40500: ...@@ -56,6 +56,7 @@ if NUM_VERSION >= 40500:
from ipaclient.install.ipachangeconf import IPAChangeConf from ipaclient.install.ipachangeconf import IPAChangeConf
from ipalib.install import certmonger, sysrestore from ipalib.install import certmonger, sysrestore
from ipapython import ipautil from ipapython import ipautil
from ipapython.ipa_log_manager import standard_logging_setup
if NUM_VERSION < 40600: if NUM_VERSION < 40600:
from ipapython.ipa_log_manager import root_logger from ipapython.ipa_log_manager import root_logger
from ipapython.ipautil import ( from ipapython.ipautil import (
...@@ -132,7 +133,10 @@ else: ...@@ -132,7 +133,10 @@ else:
logger = logging.getLogger("ipa-server-install") logger = logging.getLogger("ipa-server-install")
logger.setLevel(logging.DEBUG) #logger.setLevel(logging.DEBUG)
standard_logging_setup(
paths.IPASERVER_INSTALL_LOG, verbose=False, debug=False,
filemode='a', console_format='%(message)s')
@contextlib_contextmanager @contextlib_contextmanager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment