diff options
author | Miikka Koistinen <miikka.koistinen@nokia.com> | 2018-05-07 12:12:33 +0300 |
---|---|---|
committer | Emma Foley <emma.l.foley@intel.com> | 2018-05-16 11:07:46 +0000 |
commit | b81e821dcdab06cac5b3ce3b543f02c2c2de0cc3 (patch) | |
tree | e71c47dae28490dc5704856727f23fd16059d859 /yardstick/benchmark/scenarios/availability/serviceha.py | |
parent | a4c8f2a99f56dd4c9fbac4021706aa9186d23ed8 (diff) |
Fix log typos in benchmark/scenarios/availability
This commit fixes multiple log message typos and all the emerged pylint
errors.
MonitorProcess/MonitorOpenstackCmd.verify_SLA() repeat already logged
information, so these prints are removed.
JIRA: YARDSTICK-1145
Change-Id: Ifef26e4b4ff7766089caec24785511969c2d663e
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
(cherry picked from commit 6fa51bdcc7ad7e4d407f2803fc05b1cfaf66c115)
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/serviceha.py')
-rwxr-xr-x | yardstick/benchmark/scenarios/availability/serviceha.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yardstick/benchmark/scenarios/availability/serviceha.py b/yardstick/benchmark/scenarios/availability/serviceha.py index 6d0d812af..454ea593e 100755 --- a/yardstick/benchmark/scenarios/availability/serviceha.py +++ b/yardstick/benchmark/scenarios/availability/serviceha.py @@ -35,7 +35,7 @@ class ServiceHA(base.Scenario): """scenario setup""" nodes = self.context_cfg.get("nodes", None) if nodes is None: - LOG.error("the nodes info is none") + LOG.error("The nodes info is none") return self.attackers = [] @@ -58,20 +58,20 @@ class ServiceHA(base.Scenario): def run(self, result): """execute the benchmark""" if not self.setup_done: - LOG.error("The setup not finished!") + LOG.error("The setup is not finished!") return self.monitorMgr.start_monitors() - LOG.info("HA monitor start!") + LOG.info("Monitor '%s' start!", self.__scenario_type__) for attacker in self.attackers: attacker.inject_fault() self.monitorMgr.wait_monitors() - LOG.info("HA monitor stop!") + LOG.info("Monitor '%s' stop!", self.__scenario_type__) sla_pass = self.monitorMgr.verify_SLA() - for k, v in self.data.items(): + for _, v in self.data.items(): if v == 0: result['sla_pass'] = 0 self.pass_flag = False |