From b66d70f1f10236fa64deccfd54c8c711377c2fc3 Mon Sep 17 00:00:00 2001 From: bravof Date: Mon, 6 Jul 2020 19:53:47 -0400 Subject: [PATCH] fix(snmp): using alpine instead of busybox to run command Signed-off-by: bravof --- .../eechart/charts/snmpexporter/templates/deployment.yaml | 2 +- snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml index bf042a47..e6d8c0d2 100644 --- a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml @@ -16,7 +16,7 @@ spec: spec: initContainers: - name: cleanup - image: busybox:1.28 + image: "alpine:latest" command: ['sh', '-c', 'rm -f /etc/snmp_exporter/generator.yml'] volumeMounts: - name: config-volume diff --git a/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py b/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py index 48b0a8ee..a05012f7 100755 --- a/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py +++ b/snmp_ee_vnf/helm-charts/eechart/source/vnf_ee.py @@ -53,9 +53,7 @@ class VnfEE: commands = ("cp /app/vnf/generator/generator.yml ./", "snmp_generator generate --output-path=/etc/snmp_exporter/snmp.yml", - "touch /etc/snmp_exporter/generator.yml", - "chattr -i /etc/snmp_exporter/generator.yml", - "chmod 777 /etc/snmp_exporter/generator.yml") + "touch /etc/snmp_exporter/generator.yml") for command in commands: return_code, stdout, stderr = await util_ee.local_async_exec(command) if return_code != 0: -- GitLab