Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-1348

Regression in Multicloud-k8s

XMLWordPrintable

      When testing the pnf-macro tests, we detected a regression in multicloud-k8s.

      In fact in Guilin, with the version 0.7.0 of multicloud, it is working.

      When using the honolulu version 0.8.1, the helm charts are not properly deployed.

      In our case we need to deploy a DB, a simulator and their associated service.

      With the 0.7.0, eveything is started and we can see them through the kubectl commands.

      In 0.8.1, only 1 is started, the mongo pod and the 2 services are not deployed.

      In the multicloud-k8s pod we can see the following logs

      2021/05/11 11:37:35 Error converting template to map

      {"gvk":\{"Group":"","Version":"v1","Kind":"Pod"}

      ,"level":"info","msg":"Created Kubernetes Resource","resource":"pnf-simulator","time":"2021-05-11T11:37:35Z"}
      10.233.67.231 - - [11/May/2021:11:37:34 +0000] "POST /v1/instance HTTP/1.1" 201 439

      and that is the end of the logs

       

      To validate our regression hypothesis, we edited the version of the multicloud-k8s to move back from 0.8.1 0.7.0, then we re run the test

      In this case, all the helm charts are properly deployed and the test can be executed properly.

      debian@control01-onap-honolulu:/tmp$ kubectl get pod -n onap |grep pnf
      pnf-simulator 0/1 Init:0/1 0 16s
      debian@control01-onap-honolulu:/tmp$ kubectl get svc -n onap |grep pnf
      pnf-simulator NodePort 10.233.18.113 <none> 5000:30999/TCP 54s

      debian@control01-onap-honolulu:/tmp$ kubectl get pod -n onap |grep mongo
      mongo-76847567f6-rpq7v 1/1 Running 0 20s
      onap-dcae-mongo-0 1/1 Running 0 12h
      onap-multicloud-k8s-mongo-0 1/1 Running 0 12h
      onap-nbi-mongo-0 1/1 Running 0 12h

      debian@control01-onap-honolulu:/tmp$ kubectl get svc -n onap |grep mongo
      dcae-mongohost ClusterIP None <none> 27017/TCP 12h
      dcae-mongohost-read ClusterIP 10.233.19.248 <none> 27017/TCP 12h
      mongo ClusterIP 10.233.33.250 <none> 27017/TCP 28s
      multicloud-k8s-mongo ClusterIP None <none> 27017/TCP 12h
      multicloud-k8s-mongo-read ClusterIP 10.233.48.251 <none> 27017/TCP 12h
      nbi-mongohost ClusterIP None <none> 27017/TCP 12h
      nbi-mongohost-read ClusterIP 10.233.35.103 <none> 27017/TCP 12h

       

            kbanka kbanka
            mrichomme mrichomme
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: