diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2018-11-02 11:07:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.host.prod.eng.bos.redhat.com> | 2018-11-02 11:07:09 +0000 |
commit | 384cb369f256162606190e4df4767500668d3a7c (patch) | |
tree | 67f163cce5a7f8618283ad31d78ccb75506dfef4 /cns-libs/cnslibs/common/cns_libs.py | |
parent | 8b5560e755a31c1b8821576ae5815093170440ab (diff) | |
parent | 3bf447cc241f31cb0a75fff2b389c3d5cc1b199b (diff) |
Merge "[CNS-544][CNS-545] Added test cases for storage class parameters"
Diffstat (limited to 'cns-libs/cnslibs/common/cns_libs.py')
-rw-r--r-- | cns-libs/cnslibs/common/cns_libs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cns-libs/cnslibs/common/cns_libs.py b/cns-libs/cnslibs/common/cns_libs.py index 5b9a3027..370e05e3 100644 --- a/cns-libs/cnslibs/common/cns_libs.py +++ b/cns-libs/cnslibs/common/cns_libs.py @@ -414,7 +414,7 @@ def validate_multipath_pod(hostname, podname, hacount): active_node_count = 1 enable_node_count = hacount - 1 cmd = "multipath -ll | grep 'status=active' | wc -l" - ret, out, err = g.run(hostname, cmd, "root") + ret, out, err = g.run(pod_nodename, cmd, "root") if ret != 0 or out == "": g.log.error("failed to exectute cmd %s on %s, err %s" % (cmd, pod_nodename, out)) @@ -425,7 +425,7 @@ def validate_multipath_pod(hostname, podname, hacount): % (pod_nodename, podname, active_count)) return False cmd = "multipath -ll | grep 'status=enabled' | wc -l" - ret, out, err = g.run(hostname, cmd, "root") + ret, out, err = g.run(pod_nodename, cmd, "root") if ret != 0 or out == "": g.log.error("failed to exectute cmd %s on %s, err %s" % (cmd, pod_nodename, out)) |