diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-05-17 07:46:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-05-17 07:46:38 +0000 |
commit | 98095278d8f21271399a2a9c80d380fef65013e5 (patch) | |
tree | 70fac0b15d69138db2573d2a249fd5d928a0ed02 /yardstick/benchmark/scenarios/availability/serviceha.py | |
parent | 5a05730af35e6dfa5e623e3fa0a29c23ed704d71 (diff) | |
parent | b81e821dcdab06cac5b3ce3b543f02c2c2de0cc3 (diff) |
Merge "Fix log typos in benchmark/scenarios/availability" into stable/fraser
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 |