Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-3202

Policy A1PMS ConfigMap has duplicate entries

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • London Release
    • London Release
    • charts
    • Hide

      Generating the helm template shows an error:

      yaml: unmarshal errors: line 118: mapping key "A1pmsParticipantParameters.yaml" already defined at line 13 line 119: mapping key "logback.xml" already defined at line 14

      This is caused by duplication during ConfigMap Generation:

      https://git.onap.org/oom/tree/kubernetes/policy/components/policy-clamp-ac-a1pms-ppnt/templates/configmap.yaml
      https://git.onap.org/oom/tree/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/configmap.yaml

      data:
      {{ tpl (.Files.Glob "resources/config/*.{xml,yaml}").AsConfig . | indent 2 }}
      {{- if .Values.a1pmsconfig }}
      {{ tpl (.Files.Glob "resources/config/A1pmsParticipantParameters.yaml").AsConfig . | indent 2 }}
      {{ toYaml .Values.a1pmsconfig | indent 4 }}
      {{ tpl (.Files.Glob "resources/config/*.{json,xml,sh}").AsConfig . | indent 2 }}
      {{- end }} 

      both files (A1pmsParticipantParameters.yaml, logback.xml) are imported 2 times

      <!-- Thank you for creating a Bug on OOM. -->
      <!-- remove all lines by doing what's expected and not expected when started by <!-- -->
      <!-- Please fill the following template so we can efficiently move on: -->

      SUMMARY

      <!--- Explain the problem briefly below -->

      OS / ENVIRONMENT

      • Kubernetes version:
        <!-- output of `kubernetes version` -->
      • Helm version:
        <!-- output of `helm version` -->
      • Kubernetes mode of installation:
        <!-- add also configuration file if relevant -->
        <!-- please run:
        docker run -e DEPLOY_SCENARIO=k8s-test \
        -v <the kube config>:/root/.kube/config \
        opnfv/functest-kubernetes-healthcheck:latest
        -->
        <!-- and upload the result directory as a zip file -->
      • CNI Used for Kubernetes:
      • type of installation: <!-- number of control, number of nodes -->

      OOM VERSION

      <!--- which branch / tag did you use -->

      CONFIGURATION

      <!-- please paste or upload override file used -->

      STEPS TO REPRODUCE

      <!-- please show line used to create helm charts -->
      <!-- please show line used to deploy ONAP -->
      <!-- add any necessary relevant command done -->

      EXPECTED RESULTS

      <!--- Describe what you expected to happen when running the steps above -->

      ACTUAL RESULTS

      <!--- Describe what actually happened. -->
      <!-- please run: docker run -v <the kube config>:/root/.kube/config -v \
      <result directory>:/var/lib/xtesting/results \ registry.gitlab.com/orange-opensource/lfn/onap/integration/xtesting/infra-healthcheck:latest
      -->
      <!-- and upload the result directory as a zip file -->
      <!-- cd where/your/oom/install is -->
      <!-- launch healthchecks: ./kubernetes/robot/ete-k8s.sh YOUR_DEPLOYMENT_NAME health -->
      <!-- and upload the result directory as a zip file -->
      <!-- it should be /dockerdata-nfs/onap/robot/logs/0000_ete_health/ (0000 must be the biggest number) -->

      Show
      Generating the helm template shows an error: yaml: unmarshal errors: line 118: mapping key "A1pmsParticipantParameters.yaml" already defined at line 13 line 119: mapping key "logback.xml" already defined at line 14 This is caused by duplication during ConfigMap Generation: https://git.onap.org/oom/tree/kubernetes/policy/components/policy-clamp-ac-a1pms-ppnt/templates/configmap.yaml https://git.onap.org/oom/tree/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/configmap.yaml data: {{ tpl (.Files.Glob "resources/config/*.{xml,yaml}" ).AsConfig . | indent 2 }} {{- if .Values.a1pmsconfig }} {{ tpl (.Files.Glob "resources/config/A1pmsParticipantParameters.yaml" ).AsConfig . | indent 2 }} {{ toYaml .Values.a1pmsconfig | indent 4 }} {{ tpl (.Files.Glob "resources/config/*.{json,xml,sh}" ).AsConfig . | indent 2 }} {{- end }} both files (A1pmsParticipantParameters.yaml, logback.xml) are imported 2 times <!-- Thank you for creating a Bug on OOM. --> <!-- remove all lines by doing what's expected and not expected when started by <!-- --> <!-- Please fill the following template so we can efficiently move on: --> SUMMARY <!--- Explain the problem briefly below --> OS / ENVIRONMENT Kubernetes version: <!-- output of `kubernetes version` --> Helm version: <!-- output of `helm version` --> Kubernetes mode of installation: <!-- add also configuration file if relevant --> <!-- please run: docker run -e DEPLOY_SCENARIO=k8s-test \ -v <the kube config>:/root/.kube/config \ opnfv/functest-kubernetes-healthcheck:latest --> <!-- and upload the result directory as a zip file --> CNI Used for Kubernetes: type of installation: <!-- number of control, number of nodes --> OOM VERSION <!--- which branch / tag did you use --> CONFIGURATION <!-- please paste or upload override file used --> STEPS TO REPRODUCE <!-- please show line used to create helm charts --> <!-- please show line used to deploy ONAP --> <!-- add any necessary relevant command done --> EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ACTUAL RESULTS <!--- Describe what actually happened. --> <!-- please run: docker run -v <the kube config>:/root/.kube/config -v \ <result directory>:/var/lib/xtesting/results \ registry.gitlab.com/orange-opensource/lfn/onap/integration/xtesting/infra-healthcheck:latest --> <!-- and upload the result directory as a zip file --> <!-- cd where/your/oom/install is --> <!-- launch healthchecks: ./kubernetes/robot/ete-k8s.sh YOUR_DEPLOYMENT_NAME health --> <!-- and upload the result directory as a zip file --> <!-- it should be /dockerdata-nfs/onap/robot/logs/0000_ete_health/ (0000 must be the biggest number) -->

    Attachments

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

      Activity

        People

          andreasgeissler Andreas Geissler
          andreasgeissler Andreas Geissler
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: