aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Trautman <ctrautma@redhat.com>2018-10-09 13:29:11 -0400
committerChristian Trautman <ctrautma@redhat.com>2018-10-09 13:29:11 -0400
commitbc569ef41ec4120ee63bfa43c2b647cd96957ccb (patch)
tree20c1efdbe283b0567cd60808bd4c2000e718f243
parent80b86f4e073dc6c9ca53704adc6b22c665e9f953 (diff)
qemu_regex_fix: Regex change for future qemu versions info cpu
When running info cpus command on qemu newer versions of 2.12 the output has changed. This is causing the regex lookup for the thread match to affinitize the PID to the correct CPU. JIRA: VSPERF-592 Change-Id: Ie3a4490f3f8da1e4df00c7095cf1f05fdd939e07 Signed-off-by: Christian Trautman <ctrautma@redhat.com>
-rw-r--r--vnfs/qemu/qemu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnfs/qemu/qemu.py b/vnfs/qemu/qemu.py
index 7ba58c05..d3e1b343 100644
--- a/vnfs/qemu/qemu.py
+++ b/vnfs/qemu/qemu.py
@@ -210,7 +210,7 @@ class IVnfQemu(IVnf):
:returns: None
"""
- thread_id = (r'.* CPU #%d: .* thread_id=(\d+)')
+ thread_id = (r'.* CPU #%d:.*? thread_id=(\d+)')
self._logger.info('Affinitizing guest...')