Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Connect to the SDNC container from the Rancher VM in the Kubernetes cluster, for example kubectl exec -it -n onap dev-sdnc-sdnc-0 bash
  • Install your favorite text editor, for example apt-get update; apt-get install vim -y
  • Open /opt/onap/sdnc/restapi/templates/lcm-dmaap-publish-template.json and replace "input" with "output" in the JSON object body

  • Save the changes

  • If SDNC is deployed in cluster mode (3 SDNC replicas, dev-sdnc-sdnc-0, dev-sdnc-sdnc-1, dev-sdnc-sdnc-2), apply the same change to all the replicas in the cluster


4) When using SDNC, the JSON template for DMaaP messages has an extra newline at the end of the file

Resolution: Delete the extra newline with VIM

  • Connect to the SDNC container from the Rancher VM in the Kubernetes cluster, for example kubectl exec -it -n onap dev-sdnc-sdnc-0 bash
  • Install your favorite text editor, for example apt-get update; apt-get install vim -y
  • Open /opt/onap/sdnc/restapi/templates/lcm-dmaap-publish-template.json  and execute the following operations:

    • :set binary

    • :set noeol
    • :wq
  • If SDNC is deployed in cluster mode (3 SDNC replicas, dev-sdnc-sdnc-0, dev-sdnc-sdnc-1, dev-sdnc-sdnc-2), apply the same change to all the replicas in the cluster


...