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

Ingress template invalid for dcaemod

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Guilin Release, Honolulu Release
    • None
    • None
    • Hide

      SUMMARY

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

      OS / ENVIRONMENT

      • Kubernetes version:
        1.15
      • Helm version:
        2.16.6
      • 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

      Guilin

      CONFIGURATION

      onap-all with ingress:

      global:
        ingress:
          enabled: true
          virtualhost:
            enabled: false

      STEPS TO REPRODUCE

      on working lab:

      helm undeploy dev-dcaemod --purge

      remove dockerdata

      helm deploy dev-dcaemod local/onap --namespace onap -f ./onap/resources/overrides/onap-all.yaml -f ./ingress.yaml --verbose

      EXPECTED RESULTS

      DCAEMOD deployed with ingress

      ACTUAL RESULTS

      I get error when trying to run helm deploy:

      Use cache dir: /home/ubuntu/.helm/plugins/deploy/cache
      fetching local/onap
      Release "dev-dcaemod" does not exist. Installing it now.
      Error: release dev-dcaemod failed: Ingress.extensions "dev-dcaemod-distributor-api-ingress" is invalid: spec.rules[0].http.paths[0].path: Invalid value: "distributor.simpledemo.onap.org": must be an absolute path
      dev-dcaemod           	1       	Tue Dec  1 10:52:16 2020	FAILED  	dcaemod-6.0.0              	           	onap       
      

      with dry-run i inspected ingress yamls, example:

      # Source: dcaemod/charts/dcaemod-onboarding-api/templates/ingress.yaml
      apiVersion: networking.k8s.io/v1beta1
      kind: Ingress
      metadata:
        name: dev-dcaemod-onboarding-api-ingress
        annotations:
          nginx.ingress.kubernetes.io/ssl-redirect: "false"
        labels:
          app: dcaemod-onboarding-api
          chart: dcaemod-onboarding-api-6.0.0
          release: dev
          heritage: Tiller
      spec:
        rules:
        - http:
            paths:        
            - path: onboarding.simpledemo.onap.org
                backend:
                  serviceName: dcaemod-onboarding-api
                  servicePort: 8080
      
      

      I think the path would be configured as "/onboarding" prior to that commit: https://gerrit.onap.org/r/c/oom/+/114235

      Show
      SUMMARY <!--- Explain the problem briefly below --> OS / ENVIRONMENT Kubernetes version: 1.15 Helm version: 2.16.6 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 Guilin CONFIGURATION onap-all with ingress: global:   ingress:     enabled: true     virtualhost:       enabled: false STEPS TO REPRODUCE on working lab: helm undeploy dev-dcaemod --purge remove dockerdata helm deploy dev-dcaemod local/onap --namespace onap -f ./onap/resources/overrides/onap-all.yaml -f ./ingress.yaml --verbose EXPECTED RESULTS DCAEMOD deployed with ingress ACTUAL RESULTS I get error when trying to run helm deploy: Use cache dir: /home/ubuntu/.helm/plugins/deploy/cache fetching local/onap Release "dev-dcaemod" does not exist. Installing it now. Error: release dev-dcaemod failed: Ingress.extensions "dev-dcaemod-distributor-api-ingress" is invalid: spec.rules[0].http.paths[0].path: Invalid value: "distributor.simpledemo.onap.org" : must be an absolute path dev-dcaemod 1 Tue Dec 1 10:52:16 2020 FAILED dcaemod-6.0.0 onap with dry-run i inspected ingress yamls, example: # Source: dcaemod/charts/dcaemod-onboarding-api/templates/ingress.yaml apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: dev-dcaemod-onboarding-api-ingress annotations: nginx.ingress.kubernetes.io/ssl-redirect: " false " labels: app: dcaemod-onboarding-api chart: dcaemod-onboarding-api-6.0.0 release: dev heritage: Tiller spec: rules: - http: paths: - path: onboarding.simpledemo.onap.org backend: serviceName: dcaemod-onboarding-api servicePort: 8080 I think the path would be configured as "/onboarding" prior to that commit: https://gerrit.onap.org/r/c/oom/+/114235

          sdesbure sdesbure
          rjanecze rjanecze
          Votes:
          0 Vote for this issue
          Watchers:
          5 Start watching this issue

            Created:
            Updated:
            Resolved: