Fix error messages in burnin code
Change-Id: Ib920b6f8da2c2c9d72dbb8bbd8915bde767bddd2
This commit is contained in:
parent
333ed70c94
commit
9a8c6a831a
@ -48,8 +48,7 @@ def stress_ng_cpu(node):
|
|||||||
# stress-ng reports on stderr only
|
# stress-ng reports on stderr only
|
||||||
LOG.info(err)
|
LOG.info(err)
|
||||||
except (processutils.ProcessExecutionError, OSError) as e:
|
except (processutils.ProcessExecutionError, OSError) as e:
|
||||||
error_msg = ("stress-ng (cpu) failed with error %(err)s",
|
error_msg = "stress-ng (cpu) failed with error %s" % e
|
||||||
{'err': e})
|
|
||||||
LOG.error(error_msg)
|
LOG.error(error_msg)
|
||||||
raise errors.CommandExecutionError(error_msg)
|
raise errors.CommandExecutionError(error_msg)
|
||||||
|
|
||||||
@ -80,8 +79,7 @@ def stress_ng_vm(node):
|
|||||||
# stress-ng reports on stderr only
|
# stress-ng reports on stderr only
|
||||||
LOG.info(err)
|
LOG.info(err)
|
||||||
except (processutils.ProcessExecutionError, OSError) as e:
|
except (processutils.ProcessExecutionError, OSError) as e:
|
||||||
error_msg = ("stress-ng (vm) failed with error %(err)s",
|
error_msg = "stress-ng (vm) failed with error %s" % e
|
||||||
{'err': e})
|
|
||||||
LOG.error(error_msg)
|
LOG.error(error_msg)
|
||||||
raise errors.CommandExecutionError(error_msg)
|
raise errors.CommandExecutionError(error_msg)
|
||||||
|
|
||||||
@ -116,8 +114,7 @@ def fio_disk(node):
|
|||||||
# fio reports on stdout
|
# fio reports on stdout
|
||||||
LOG.info(out)
|
LOG.info(out)
|
||||||
except (processutils.ProcessExecutionError, OSError) as e:
|
except (processutils.ProcessExecutionError, OSError) as e:
|
||||||
error_msg = ("fio (disk) failed with error %(err)s",
|
error_msg = "fio (disk) failed with error %s" % e
|
||||||
{'err': e})
|
|
||||||
LOG.error(error_msg)
|
LOG.error(error_msg)
|
||||||
raise errors.CommandExecutionError(error_msg)
|
raise errors.CommandExecutionError(error_msg)
|
||||||
|
|
||||||
@ -141,8 +138,7 @@ def _do_fio_network(writer, runtime, partner):
|
|||||||
LOG.info(out)
|
LOG.info(out)
|
||||||
break
|
break
|
||||||
except (processutils.ProcessExecutionError, OSError) as e:
|
except (processutils.ProcessExecutionError, OSError) as e:
|
||||||
error_msg = ("fio (network) failed with error %(err)s",
|
error_msg = "fio (network) failed with error %s" % e
|
||||||
{'err': e})
|
|
||||||
LOG.error(error_msg)
|
LOG.error(error_msg)
|
||||||
# while the writer blocks in fio, the reader fails with
|
# while the writer blocks in fio, the reader fails with
|
||||||
# 'Connection {refused, timeout}' errors if the partner
|
# 'Connection {refused, timeout}' errors if the partner
|
||||||
@ -186,7 +182,7 @@ def fio_network(node):
|
|||||||
|
|
||||||
role = config.get('role')
|
role = config.get('role')
|
||||||
if role not in NETWORK_BURNIN_ROLES:
|
if role not in NETWORK_BURNIN_ROLES:
|
||||||
error_msg = ("fio (network) found an unknown role: %s", role)
|
error_msg = "fio (network) found an unknown role: %s" % role
|
||||||
raise errors.CleaningError(error_msg)
|
raise errors.CleaningError(error_msg)
|
||||||
|
|
||||||
partner = config.get('partner')
|
partner = config.get('partner')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user