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/setOnosLogLevels.groovy b/vars/setOnosLogLevels.groovy
index 5b1bd45..5471938 100644
--- a/vars/setOnosLogLevels.groovy
+++ b/vars/setOnosLogLevels.groovy
@@ -1,5 +1,10 @@
+#!/usr/bin/env groovy
+
def call(Map config) {
+ String iam = 'vars/setOnosLogLevels.groovy'
+ println("** ${iam}: ENTER")
+
def defaultConfig = [
onosNamespace: "infra",
apps: ['org.opencord.dhcpl2relay', 'org.opencord.olt', 'org.opencord.aaa'],
@@ -32,8 +37,12 @@
"""
}
sh """
+ pgrep --list-all port-forw
+
ps e -ww -A | grep _TAG="onos-pf" | grep -v grep | awk '{print \$1}' | xargs --no-run-if-empty kill -9
ps aux | grep port-forward
"""
}
+
+ println("** ${iam}: LEAVE")
}