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

Ingress Template Errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • Montreal Release
    • charts, templates
    • Affects master branch after Montreal.

    • Hide

      <!-- 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

      The current template has some issues that on deployment cause it to conflict with CRD's, resulting in deployment failures.

      1. The definition for gwpi.config.tls on line 515 sets the https name to HTTPS-443, which is not permitted by the CRD and requires it to be all lower case.
      2. The definition of gwapi.config.listener on line 540 sets a host name value.  The CRD does not permit a hostname value to be specified if the protocol is TCP so this needs to be rewritten with applicable conditional logic to prevent this from occurring.

      OS / ENVIRONMENT

      • Kubernetes version:
        1.27
      • Helm version:
        3.12.3
      • Kubernetes mode of installation:
        <!-- add also configuration file if relevant -->config
        <!-- 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 -->env-test.log
      • CNI Used for Kubernetes:
      • type of installation: Single VM Microk8s

      OOM VERSION

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

      CONFIGURATION

      <!-- please paste or upload override file used -->master_override.yaml

      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 -->

      Deploy command to successfully deploy ONAP.  Note that due to changes to the Cassandra deployment, we first have to helm install Cassandra which works, and the rest of the deployment for the rest of ONAP.

      ACTUAL RESULTS

      <!--- Describe what actually happened. -->

      Deployment fails and when doing helm install for cassandra and sdnc, error messages appear.

      For Cassandra;Error: INSTALLATION FAILED: 1 error occurred:
              * Gateway.gateway.networking.k8s.io "reaper-dc1-gateway" is invalid: spec.listeners[1].name: Invalid value: "HTTPS-443": spec.listeners[1].name in body should match '^[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*$'

       

      For sdnc

      nap@onap-microk8s:~$ helm install -n onap --create-namespace onap-sdnc local/sdnc -f ~/master_override.yaml
      2024-02-16T16:15:27.967Z        INFO    [1] Request served      {"path": "/charts/sdnc-13.0.1.tgz", "comment": "", "clientIP": "127.0.0.1", "method": "GET", "statusCode": 200, "latency": "6.074856ms", "reqID": "ae6bd8f8-efca-449e-a21f-2a1d4d3a8e18"}
      W0216 16:16:23.081832 2128023 warnings.go:70] unknown field "spec.listeners[0].allowedRoutes.namespaces.kinds"
      Error: INSTALLATION FAILED: failed to create resource: Gateway.gateway.networking.k8s.io "sdnc-callhome-gateway" is invalid: spec.listeners: Invalid value: "array": hostname must not be specified for protocols ['TCP', 'UDP']

      <!-- 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 --> manifest not found error
      <!-- 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) -->  Error:  BUILD_NUMBER:2413742 -d /share/logs/0000_ete_health -i health --display 90
      error: pod, type/name or --filename must be specified

      Show
      <!-- 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 The current template has some issues that on deployment cause it to conflict with CRD's, resulting in deployment failures. The definition for gwpi.config.tls on line 515 sets the https name to HTTPS-443, which is not permitted by the CRD and requires it to be all lower case. The definition of gwapi.config.listener on line 540 sets a host name value.  The CRD does not permit a hostname value to be specified if the protocol is TCP so this needs to be rewritten with applicable conditional logic to prevent this from occurring. OS / ENVIRONMENT Kubernetes version: 1.27 Helm version: 3.12.3 Kubernetes mode of installation: <!-- add also configuration file if relevant --> config <!-- 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 --> env-test.log CNI Used for Kubernetes: type of installation: Single VM Microk8s OOM VERSION <!--- which branch / tag did you use --> 13 Master CONFIGURATION <!-- please paste or upload override file used --> master_override.yaml 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 --> Deploy command to successfully deploy ONAP.  Note that due to changes to the Cassandra deployment, we first have to helm install Cassandra which works, and the rest of the deployment for the rest of ONAP. ACTUAL RESULTS <!--- Describe what actually happened. --> Deployment fails and when doing helm install for cassandra and sdnc, error messages appear. For Cassandra;Error: INSTALLATION FAILED: 1 error occurred:         * Gateway.gateway.networking.k8s.io "reaper-dc1-gateway" is invalid: spec.listeners [1] .name: Invalid value: "HTTPS-443": spec.listeners [1] .name in body should match '^ [a-z0-9] ( [-a-z0-9] [a-z0-9] )?(\. [a-z0-9] ( [-a-z0-9] [a-z0-9] )?)*$'   For sdnc nap@onap-microk8s:~$ helm install -n onap --create-namespace onap-sdnc local/sdnc -f ~/master_override.yaml 2024-02-16T16:15:27.967Z        INFO     [1] Request served      {"path": "/charts/sdnc-13.0.1.tgz", "comment": "", "clientIP": "127.0.0.1", "method": "GET", "statusCode": 200, "latency": "6.074856ms", "reqID": "ae6bd8f8-efca-449e-a21f-2a1d4d3a8e18"} W0216 16:16:23.081832 2128023 warnings.go:70] unknown field "spec.listeners [0] .allowedRoutes.namespaces.kinds" Error: INSTALLATION FAILED: failed to create resource: Gateway.gateway.networking.k8s.io "sdnc-callhome-gateway" is invalid: spec.listeners: Invalid value: "array": hostname must not be specified for protocols ['TCP', 'UDP'] <!-- 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 --> manifest not found error <!-- 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) -->  Error:  BUILD_NUMBER:2413742 -d /share/logs/0000_ete_health -i health --display 90 error: pod, type/name or --filename must be specified

      1. cass_so_sdc_sdnc_errors.txt
        5 kB
      2. config
        2 kB
      3. env-test.log
        5 kB
      4. master_override.yaml
        18 kB

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

            Created:
            Updated:
            Resolved: