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 bf042a470138e0a91e9f959ff7583bf7af43b8b0..e6d8c0d28d22085ed7fc7ed0a87694f22da83931 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 48b0a8ee6126dae694d44ba466b1e1484c1b144a..a05012f78635f831a6171a08b6673106383a0fe1 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: