Temporary fix for ETCDCTL_ENDPOINT

manually exporting ETCDCTL_ENDPOINT before checking
etcd cluster-health

Change-Id: I7dcc32495f94f7246490b8e118368d9c890b074b
This commit is contained in:
Artem Grechanichenko 2016-11-28 16:36:53 +02:00
parent 27e62c6f13
commit a68c71fe9d
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ class SystemBaseTest(object):
def check_etcd_health(self, underlay):
node_names = underlay.node_names()
cmd = "etcdctl cluster-health | grep -c 'got healthy result'"
# TODO remove export after that issue will be fixed in KARGO
cmd = "export ETCDCTL_ENDPOINT=https://127.0.0.1:2379;" \
"etcdctl cluster-health | grep -c 'got healthy result'"
etcd_nodes = underlay.sudo_check_call(
cmd, node_name=node_names[0])['stdout'][0]