diff options
author | juanvallejo <jvallejo@redhat.com> | 2018-01-16 15:24:50 -0500 |
---|---|---|
committer | juanvallejo <jvallejo@redhat.com> | 2018-01-16 15:25:41 -0500 |
commit | 08cf02f0abbcf75a04d005afa4784dd4ea0e6b06 (patch) | |
tree | 39fd772006d962d85cb65daa708d616f11ff3c1f | |
parent | c933a61030a882e3d33834390e82a9e196e0f654 (diff) | |
download | openshift-08cf02f0abbcf75a04d005afa4784dd4ea0e6b06.tar.gz openshift-08cf02f0abbcf75a04d005afa4784dd4ea0e6b06.tar.bz2 openshift-08cf02f0abbcf75a04d005afa4784dd4ea0e6b06.tar.xz openshift-08cf02f0abbcf75a04d005afa4784dd4ea0e6b06.zip |
include elasticsearch container name
-rw-r--r-- | roles/openshift_health_checker/openshift_checks/logging/elasticsearch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/logging/elasticsearch.py b/roles/openshift_health_checker/openshift_checks/logging/elasticsearch.py index 986a01f38..7f8c6ebdc 100644 --- a/roles/openshift_health_checker/openshift_checks/logging/elasticsearch.py +++ b/roles/openshift_health_checker/openshift_checks/logging/elasticsearch.py @@ -170,7 +170,7 @@ class Elasticsearch(LoggingCheck): """ errors = [] for pod_name in pods_by_name.keys(): - df_cmd = 'exec {} -- df --output=ipcent,pcent /elasticsearch/persistent'.format(pod_name) + df_cmd = '-c elasticsearch exec {} -- df --output=ipcent,pcent /elasticsearch/persistent'.format(pod_name) disk_output = self.exec_oc(df_cmd, [], save_as_name='get_pv_diskspace.json') lines = disk_output.splitlines() # expecting one header looking like 'IUse% Use%' and one body line |