aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSharada Shiddibhavi <sharada.shiddibhavi@intel.com>2017-09-05 15:42:33 +0000
committerSharada Shiddibhavi <sharada.shiddibhavi@intel.com>2017-09-05 15:44:50 +0000
commit88e6ccad72bed9fb228540cd8050f9596d6eb1cd (patch)
tree8ae70d13095623c9f8f8a25ac6799435aec76087
parent40751018a8118e7c28ed93b98d04e41c78240bea (diff)
Adding different method to access compute and controllers
This patch is similar to previous patch in adding a different method to log into the controller and compute nodes. Change-Id: I75332fbb794605477a7c751b59016ffb1a8cf3f2 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
-rw-r--r--baro_tests/collectd.py7
-rw-r--r--baro_tests/config_server.py7
2 files changed, 9 insertions, 5 deletions
diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py
index 5c43bdf7..a002314e 100644
--- a/baro_tests/collectd.py
+++ b/baro_tests/collectd.py
@@ -503,7 +503,7 @@ def _exec_testcase(
'hugepages-mm-2048Kb', 'hugepages-node0-2048Kb',
'hugepages-node1-2048Kb', 'hugepages-mm-1048576Kb',
'hugepages-node0-1048576Kb', 'hugepages-node1-1048576Kb'],
- 'ipmi': ['ipmi'],
+ # 'ipmi': ['ipmi'],
'mcelog': [
'mcelog-SOCKET_0_CHANNEL_0_DIMM_any',
'mcelog-SOCKET_0_CHANNEL_any_DIMM_any'],
@@ -511,13 +511,14 @@ def _exec_testcase(
'ovs_stats-br0.br0'],
'ovs_events': [
'ovs_events-br0']}
- csv_meter_categories_ipmi = get_csv_categories_for_ipmi(conf, compute_node)
+ # csv_meter_categories_ipmi = get_csv_categories_for_ipmi(conf,
+ # compute_node)
csv_meter_categories = {
'intel_rdt': [
'bytes-llc', 'ipc', 'memory_bandwidth-local',
'memory_bandwidth-remote'],
'hugepages': ['vmpage_number-free', 'vmpage_number-used'],
- 'ipmi': csv_meter_categories_ipmi,
+ # 'ipmi': csv_meter_categories_ipmi,
'mcelog': [
'errors-corrected_memory_errors',
'errors-uncorrected_memory_errors',
diff --git a/baro_tests/config_server.py b/baro_tests/config_server.py
index d9c83ce8..f156fcf7 100644
--- a/baro_tests/config_server.py
+++ b/baro_tests/config_server.py
@@ -292,8 +292,11 @@ class ConfigServer(object):
for node in nodes:
if compute_name == node.get_dict()['name']:
stdout = node.run_cmd(
- 'yum list installed | grep {}'.format(package))
- return len(stdout) > 0
+ 'yum list installed | grep mcelog')
+ if 'mcelog' in stdout:
+ return 1
+ else:
+ return 0
def is_libpqos_on_node(self, compute):
"""Check whether libpqos is present on compute node"""