diff options
| author | Zuul <zuul@review.opendev.org> | 2021-10-26 19:50:15 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2021-10-26 19:50:15 +0000 |
| commit | c824dda7a506d38032831fcd20063a833445d0a3 (patch) | |
| tree | 9c0912b08621ddc97bfaa5894a297a1f2ddd6e20 /ironic_python_agent | |
| parent | 8a66978666ca207d8abf203d7dbde6bc69f6433d (diff) | |
| parent | 9a8c6a831aa1189a28e90537a03547af8c353eb3 (diff) | |
| download | ironic-python-agent-c824dda7a506d38032831fcd20063a833445d0a3.tar.gz | |
Merge "Fix error messages in burnin code"
Diffstat (limited to 'ironic_python_agent')
| -rw-r--r-- | ironic_python_agent/burnin.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/ironic_python_agent/burnin.py b/ironic_python_agent/burnin.py index f3918173..c97eea96 100644 --- a/ironic_python_agent/burnin.py +++ b/ironic_python_agent/burnin.py @@ -48,8 +48,7 @@ def stress_ng_cpu(node): # stress-ng reports on stderr only LOG.info(err) except (processutils.ProcessExecutionError, OSError) as e: - error_msg = ("stress-ng (cpu) failed with error %(err)s", - {'err': e}) + error_msg = "stress-ng (cpu) failed with error %s" % e LOG.error(error_msg) raise errors.CommandExecutionError(error_msg) @@ -80,8 +79,7 @@ def stress_ng_vm(node): # stress-ng reports on stderr only LOG.info(err) except (processutils.ProcessExecutionError, OSError) as e: - error_msg = ("stress-ng (vm) failed with error %(err)s", - {'err': e}) + error_msg = "stress-ng (vm) failed with error %s" % e LOG.error(error_msg) raise errors.CommandExecutionError(error_msg) @@ -116,8 +114,7 @@ def fio_disk(node): # fio reports on stdout LOG.info(out) except (processutils.ProcessExecutionError, OSError) as e: - error_msg = ("fio (disk) failed with error %(err)s", - {'err': e}) + error_msg = "fio (disk) failed with error %s" % e LOG.error(error_msg) raise errors.CommandExecutionError(error_msg) @@ -141,8 +138,7 @@ def _do_fio_network(writer, runtime, partner): LOG.info(out) break except (processutils.ProcessExecutionError, OSError) as e: - error_msg = ("fio (network) failed with error %(err)s", - {'err': e}) + error_msg = "fio (network) failed with error %s" % e LOG.error(error_msg) # while the writer blocks in fio, the reader fails with # 'Connection {refused, timeout}' errors if the partner @@ -186,7 +182,7 @@ def fio_network(node): role = config.get('role') 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) partner = config.get('partner') |
