Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-1749

Name becomes invalid when onap used as helm deployment name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • El Alto Release
    • El Alto Release
    • None

      If the helm deployment name in the command 

      helm deploy <name> local/onap --namespace onap

      is given as anything longer than 3 characters e.g. "onap" the helm deployment will fail in dcae

      The reason given by helm is

      [{"revision":1,"updated":"Wed Aug 28 17:40:49 2019","status":"FAILED","chart":"dcaegen2-5.0.0","description":"Release \"onap-dcaegen2\" failed: Deployment.apps \"onap-dcaegen2-dcae-config-binding-service\" is invalid: [spec.template.spec.volumes[4].name: Invalid value: \"onap-dcaegen2-dcae-config-binding-service-data-filebeat-insecure\": must be no more than 63 characters, spec.template.spec.containers[3].volumeMounts[1].name: Not found: \"onap-dcaegen2-dcae-config-binding-service-data-filebeat-insecure\"]"}]

       

      The core of the problem is in the deployment chart 

      oom/kubernetes/dcaegen2/charts/dcae-config-binding-service/templates/deployment.yaml

      ...

      • name: {{ include "common.fullname" . }}-filebeat-conf
        mountPath: /usr/share/filebeat/filebeat.yml
        subPath: filebeat.yml
      • name: {{ include "common.fullname" . }}-data-filebeat-insecure
        mountPath: /usr/share/filebeat/data
      • name: {{ include "common.fullname" . }}-logs-insecure
        mountPath: /var/log/onap

      ...

      and

      ...

      {{- if .Values.service.insecure.enabled }}

      • name: {{ include "common.fullname" . }}-data-filebeat-insecure
        emptyDir: {}
      • name: {{ include "common.fullname" . }}-logs-insecure
        emptyDir: {}
        {
        Unknown macro: { end }

        }

      ...

       

      the line - name: {{ include "common.fullname" . }}-data-filebeat-insecure adds up to be too long

       

      The problem is that the 

      common.fullname is 41 characters long so it is hard to manager

      suggested fix is to change the 

      file 

      oom/kubernetes/dcaegen2/charts/dcae-config-binding-service/Chart.yaml

      name: dcae-config-binding-service

      to be

      name: cbs

       

      The dcae could be removed from all the subcharts of dcaegen2 as the dcaegen2 is already in the name

       

       

       

            afenner afenner
            afenner afenner
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: