Create unified service operations
[csit.git] / resources / libraries / python / KubernetesUtils.py
index ceeab0b..8d658c6 100644 (file)
@@ -320,7 +320,11 @@ class KubernetesUtils(object):
         cmd = "for p in $(kubectl get pods {nspace} -o jsonpath="\
             "'{{.items[*].metadata.name}}'); do echo $p; kubectl logs "\
             "{nspace} $p; done".format(nspace=nspace)
-        ssh.exec_command_sudo(cmd)
+        ssh.exec_command(cmd)
+
+        cmd = "kubectl exec {nspace} etcdv3 -- etcdctl --endpoints "\
+            "\"localhost:22379\" get \"/\" --prefix=true".format(nspace=nspace)
+        ssh.exec_command(cmd)
 
     @staticmethod
     def get_kubernetes_logs_on_all_duts(nodes, nspace):