diff --git a/devstack/component.py b/devstack/component.py index 79de4f9f..b8ae0afa 100644 --- a/devstack/component.py +++ b/devstack/component.py @@ -367,7 +367,6 @@ class PkgUninstallComponent(ComponentBase): def _unconfigure_runners(self): if RUNNER_CLS_MAPPING: - LOG.info("Unconfiguring %s runners.", len(RUNNER_CLS_MAPPING)) for (_, cls) in RUNNER_CLS_MAPPING.items(): instance = cls(self.cfg, self.component_name, self.trace_dir) instance.unconfigure() @@ -505,10 +504,10 @@ class ProgramRuntime(ComponentBase): self._get_param_map(app_name), ) # Configure it with the given settings - LOG.info("Configuring runner for program [%s]", app_name) + LOG.debug("Configuring runner for program [%s]", app_name) cfg_am = instance.configure(app_name, (app_pth, app_dir, program_opts)) - LOG.info("Configured %s files for runner for program [%s]", + LOG.debug("Configured %s files for runner for program [%s]", cfg_am, app_name) tot_am += cfg_am return tot_am @@ -528,12 +527,12 @@ class ProgramRuntime(ComponentBase): self._get_param_map(app_name), ) # Start it with the given settings - LOG.info("Starting [%s] with options [%s]", + LOG.debug("Starting [%s] with options [%s]", app_name, ", ".join(program_opts)) info_fn = instance.start(app_name, (app_pth, app_dir, program_opts), ) - LOG.info("Started [%s] details are in [%s]", app_name, info_fn) + LOG.debug("Started [%s] details are in [%s]", app_name, info_fn) # This trace is used to locate details about what to stop self.tracewriter.started_info(app_name, info_fn) am_started += 1 diff --git a/devstack/runners/fork.py b/devstack/runners/fork.py index e0e62e18..0f60a23e 100644 --- a/devstack/runners/fork.py +++ b/devstack/runners/fork.py @@ -181,7 +181,7 @@ class ForkRunner(base.RunnerBase): trace_info[STDOUT_FN] = stdoutfn trace_info[ARGS] = json.dumps(program_args) tracefn = self._do_trace(fn_name, trace_info) - LOG.info("Forking [%s] by running command [%s]" % (app_name, program)) + LOG.debug("Forking [%s] by running command [%s]" % (app_name, program)) with sh.Rooted(ROOT_GO): self._fork_start(program, appdir, pidfile, stdoutfn, stderrfn, *program_args) return tracefn diff --git a/devstack/runners/screen.py b/devstack/runners/screen.py index fb8f6dda..205c040f 100644 --- a/devstack/runners/screen.py +++ b/devstack/runners/screen.py @@ -97,7 +97,7 @@ class ScreenRunner(base.RunnerBase): mp = dict() mp['SESSION_NAME'] = session_id mp['NAME'] = app_name - LOG.info("Stopping program running in session [%s] in window named [%s]." % (session_id, app_name)) + LOG.debug("Stopping program running in session [%s] in window named [%s]." % (session_id, app_name)) kill_cmd = self._gen_cmd(CMD_KILL, mp) sh.execute(*kill_cmd, shell=True, @@ -155,13 +155,13 @@ class ScreenRunner(base.RunnerBase): return sessions[0] def _do_screen_init(self): - LOG.info("Creating a new screen session named [%s]" % (SESSION_NAME)) + LOG.debug("Creating a new screen session named [%s]" % (SESSION_NAME)) session_init_cmd = self._gen_cmd(SESSION_INIT) sh.execute(*session_init_cmd, shell=True, run_as_root=ROOT_GO, env_overrides=self._get_env()) - LOG.info("Waiting %s seconds before we attempt to set the title bar for that session." % (WAIT_ONLINE_TO)) + LOG.debug("Waiting %s seconds before we attempt to set the title bar for that session." % (WAIT_ONLINE_TO)) time.sleep(WAIT_ONLINE_TO) bar_init_cmd = self._gen_cmd(BAR_INIT) sh.execute(*bar_init_cmd, @@ -177,12 +177,12 @@ class ScreenRunner(base.RunnerBase): mp['NAME'] = prog_name mp['CMD'] = run_cmd init_cmd = self._gen_cmd(CMD_INIT, mp) - LOG.info("Creating a new screen window named [%s] in session [%s]" % (prog_name, session)) + LOG.debug("Creating a new screen window named [%s] in session [%s]" % (prog_name, session)) sh.execute(*init_cmd, shell=True, run_as_root=ROOT_GO, env_overrides=self._get_env()) - LOG.info("Waiting %s seconds before we attempt to run command [%s] in that window." % (WAIT_ONLINE_TO, run_cmd)) + LOG.debug("Waiting %s seconds before we attempt to run command [%s] in that window." % (WAIT_ONLINE_TO, run_cmd)) time.sleep(WAIT_ONLINE_TO) start_cmd = self._gen_cmd(CMD_START, mp) sh.execute(*start_cmd, diff --git a/devstack/runners/upstart.py b/devstack/runners/upstart.py index 8f77aafd..c889a24d 100644 --- a/devstack/runners/upstart.py +++ b/devstack/runners/upstart.py @@ -63,7 +63,7 @@ class UpstartRunner(base.RunnerBase): if component_event in self.events: LOG.debug("Already emitted event: %s" % (component_event)) else: - LOG.info("About to emit event: %s" % (component_event)) + LOG.debug("About to emit event: %s" % (component_event)) cmd = EMIT_BASE_CMD + [component_event] sh.execute(*cmd, run_as_root=True) self.events.add(component_event) @@ -104,7 +104,7 @@ class UpstartRunner(base.RunnerBase): # https://bugs.launchpad.net/upstart/+bug/665022 cfg_fn = sh.joinpths(CONF_ROOT, app_name + CONF_EXT) if sh.isfile(cfg_fn): - LOG.info("Upstart config file already exists: %s" % (cfg_fn)) + LOG.debug("Upstart config file already exists: %s" % (cfg_fn)) return LOG.debug("Loading upstart template to be used by: %s" % (cfg_fn)) (_, contents) = utils.load_template('general', UPSTART_CONF_TMPL) @@ -125,7 +125,7 @@ class UpstartRunner(base.RunnerBase): if component_event in self.events: LOG.debug("Already emitted event: %s" % (component_event)) else: - LOG.info("About to emit event: %s" % (component_event)) + LOG.debug("About to emit event: %s" % (component_event)) cmd = EMIT_BASE_CMD + [component_event] sh.execute(*cmd, run_as_root=True) self.events.add(component_event)