summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-12-17 10:51:14 -0800
committerGary Wu <gary.i.wu@huawei.com>2018-12-17 10:51:14 -0800
commit5c701dcdfc0d9d99dcfcca0bebe6e0dfe69a8dca (patch)
tree468a0860e72c2a6b31bd0a83ea411d7f7080e42f
parent93d9f376bfbd11f7583ac75eff409967aee049ec (diff)
Workaround for vPKG honeycomb file handle leak
The vPKG for vFWCL leaks file handles for each netconf request received. This is to add a workaround script to reboot honeycomb within the vPKG VM daily. Change-Id: Ie2d09ea9dfc9e994890666e0488afa938c42e34f Issue-ID: INT-780 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rwxr-xr-xvnfs/vFW/scripts/v_packetgen_install.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/vnfs/vFW/scripts/v_packetgen_install.sh b/vnfs/vFW/scripts/v_packetgen_install.sh
index 7559024a..19976b0c 100755
--- a/vnfs/vFW/scripts/v_packetgen_install.sh
+++ b/vnfs/vFW/scripts/v_packetgen_install.sh
@@ -82,8 +82,17 @@ apt-get update
apt-get install -y vpp vpp-dpdk-dkms vpp-lib vpp-dbg vpp-plugins vpp-dev
sleep 1
+# Install honeycomb daily reboot script (workaround due to honeycomb file handle leak)
+cat > /etc/cron.daily/honeycomb <<EOF
+#!/bin/bash
+VERSION=$(cat /opt/config/demo_artifacts_version.txt)
+pkill java
+/opt/honeycomb/sample-distribution-$VERSION/honeycomb &>/dev/null &disown
+EOF
+chmod +x /etc/cron.daily/honeycomb
+
# Run instantiation script
cd /opt
mv vpacketgen.sh /etc/init.d
update-rc.d vpacketgen.sh defaults
-./v_packetgen_init.sh \ No newline at end of file
+./v_packetgen_init.sh