summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-03-23 16:48:42 +0000
committerEmma Foley <emma.l.foley@intel.com>2018-03-23 17:57:58 +0000
commita6e91f657433a83e7e625de99b002b65601b3259 (patch)
treea83646f07fda16731b2d4c94e0fc2ff59e1a827d
parent716df079c93e827677d701a987e06a8177247c8c (diff)
[functest] Update kernel version check for mcelog
Change-Id: I926d0d03781a98e3509d7f9c4f4eaffc1320919b Signed-off-by: Emma Foley <emma.l.foley@intel.com>
-rw-r--r--baro_tests/collectd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py
index 3d78762c..2723d320 100644
--- a/baro_tests/collectd.py
+++ b/baro_tests/collectd.py
@@ -23,6 +23,7 @@ import time
import logging
import config_server
import tests
+from distutils import version
from opnfv.deployment import factory
AODH_NAME = 'aodh'
@@ -649,7 +650,7 @@ def mcelog_install():
for node in nodes:
if node.is_compute():
centos_release = node.run_cmd('uname -r')
- if centos_release not in ('3.10.0-514.26.2.el7.x86_64', '3.10.0-693.17.1.el7.x86_64'):
+ if version.LooseVersion(centos_release) < version.LooseVersion('3.10.0-514.26.2.el7.x86_64'):
logger.info(
'Mcelog will NOT be enabled on node-{}.'
+ ' Unsupported CentOS release found ({}).'.format(