VOL-4857 - add debugging

vars/installVoltctl.groovy
--------------------------
   o Display release vars in a single statement to avoid jenkins inserting 'echo' between each.

vars/setOnosLogLevels.groovy
vars/volthaDeploy.groovy
vars/volthaInfraDeploy.groovy
vars/volthaStackDeploy.groovy
-----------------------------
   o Added an ENTER/LEAVE printf to identify running script.
   o Consistent use of a shebang path.
   o Use pgrep to display port forwarding prior to termination
     + command pipeline can be shorted, let pgrep/pkill do heavy lifting.
   o Inlined temporary debugging to view output pipelines are acting on.
     + Debugging etcd:port=null and a few other anomolies.

Change-Id: I40d6b87519cd0fc84406a8a8a76f244da0096496
diff --git a/vars/volthaStackDeploy.groovy b/vars/volthaStackDeploy.groovy
index c63850b..eb6ab0b 100644
--- a/vars/volthaStackDeploy.groovy
+++ b/vars/volthaStackDeploy.groovy
@@ -1,5 +1,10 @@
+#!/usr/bin/env groovy
 
 def call(Map config) {
+
+    String iam = 'vars/volthaStackDeploy.groovy'
+    println("** ${iam}: ENTER")
+
     // note that I can't define this outside the function as there's no global scope in Groovy
     def defaultConfig = [
       bbsimReplica: 1,
@@ -84,6 +89,10 @@
 
     sh """
         set +x
+
+        # [joey]: debug
+        kubectl get pods -n ${cfg.volthaNamespace} -l app.kubernetes.io/part-of=voltha --no-headers
+
         voltha=\$(kubectl get pods -n ${cfg.volthaNamespace} -l app.kubernetes.io/part-of=voltha --no-headers | grep "0/" | wc -l)
         while [[ \$voltha != 0 ]]; do
           sleep 5
@@ -116,4 +125,6 @@
           config=\$(kubectl get pods -l app=onos-config-loader -n ${cfg.infraNamespace} --no-headers --field-selector=status.phase=Running | grep "0/" | wc -l)
         done
     """
+
+    println("** ${iam}: LEAVE")
 }