commit | dfb5f170330b1dd82aa08b33376f40e51ec53908 | [log] [tgz] |
---|---|---|
author | david.mcweeney <david.mcweeney@est.tech> | Tue Jun 15 11:07:03 2021 +0100 |
committer | david.mcweeney <david.mcweeney@est.tech> | Tue Jun 22 11:14:00 2021 +0100 |
tree | 4cb7d7d7d2cacbe2a13593e7cd45e50a7993828d | |
parent | d71b4f9ac9c8ea6c5fbc93472eaf3222a7d6d4dd [diff] |
DMAAP-BC - Honolulu Release Notes Change-Id: Id3b646220a56f66072feea7530da9d1b9f4de60f Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: DMAAP-1547
Data Movement as a Platform (DMaaP) Bus Controller provides an API for other ONAP infrastructure components to provision DMaaP resources. A typical DMaaP resource is a Data Router Feed or a Message Router Topic, and their associated publishers and subscribers. Other infrastucture resources such as DR Nodes and MR Clusters are also provisioned through this API.
This project produces the following mvn modules in their respective sub-directories:
When this component is included in a Continuous Integration environment, such as structured by the Linux Foundation, the artifacts can be created and deployed via Jenkins. The following maven targets are currently supported in the Build step:
clean install
This project is organized as a mvn project for a docker image. After cloning from this git repo:
mvn clean install
We can utilize docker to build and register the buscontroller container in a local dev repository.
<assuming DOCKER_HOST is set appropriately for your environment> $ mvn -P docker
Two styles of deployment are supported for ONAP.
The default DMaaP charts for an OOM deployment should be able to be used without modification because the interdependencies between components rely on kubernetes service names. However, overrides can be made to the buscontroller values.yaml file (found in oom/kubernetes/dmaap/charts/dmaap-bus-controller/values.yaml) as needed.
Following a convention where Release is set to the component name (--name=dmaap) and using a dev namespace:
<clone oom> cd kubernetes <edit values.yaml if necessary> make dmaap helm install dmaap --debug --name=dmaap --namespace=dev
Prior to starting container, place environment specific vars in /tmp/docker-databus-controller.conf on the Docker host, and map that file to /opt/app/config/conf. Run the buscontroller image which starts execution of the dmaapbc deploy command, which will update the container runtime properties appropriately, and start the Bus Controller.
For example, in ONAP Future Lab environment, /tmp/docker-databus-controller.conf looks like:
# DMaaP Bus Controller OpenSource environment vars CONT_DOMAIN=demo.dmaap.onap.org DMAAPBC_INSTANCE_NAME=ONAPfuture # The https port # set to 0 if certificate is not ready DMAAPBC_INT_HTTPS_PORT=0 DMAAPBC_KSTOREFILE=/opt/app/dcae-certificates DMAAPBC_KSTOREPASS=foofoofoo DMAAPBC_PVTKEYPASS=barbarbar DMAAPBC_PG_ENABLED=true DMAAPBC_PGHOST=zldciad1vipstg00.simpledemo.openecomp.org DMAAPBC_PGCRED=test234-ftl DMAAPBC_DRPROV_FQDN=zldciad1vidrps00.simpledemo.openecomp.org DMAAPBC_AAF_URL=https://aafapi.${CONT_DOMAIN}:8100/proxy/ DMAAPBC_TOPICMGR_USER=m99751@dmaapBC.openecomp.org DMAAPBC_TOPICMGR_PWD=enc:zyRL9zbI0py3rJAjMS0dFOnYfEw_mJhO DMAAPBC_ADMIN_USER=m99501@dcae.openecomp.org DMAAPBC_ADMIN_PWD=enc:YEaHwOJrwhDY8a6usetlhbB9mEjUq9m DMAAPBC_PE_ENABLED=false DMAAPBC_PE_AAF_ENV=TBD
Then the following steps could be used to pull and run the Bus Controller. (onap-nexus is just an example)
$ $ docker pull nexus3.onap.org:10003/onap/dmaap/dmaap-bc:latest $ docker run -d -p 18080:8080 -p 18443:8443 -v /tmp/docker-databus-controller.conf:/opt/app/config/conf nexus3.onap.org:10003/onap/dmaap/dmaap-bc:latest
This section is intended to describe the behavior customization of Bus Controller that can be obtained via properties file used by the dbcapi library. By default, this file is located in etc/dmaapbc.properties. However, a java argument -DConfigFile can be set to a different path. (Our kubernetes deployment relies on this and points to a configmap, for example.)
Refer to dbcapi/README.md for a table describing all the properties.
The following environment variables can be set in the container environment to further effect behavior:
DMAAPBC_WAIT_TOEXIT=Y when set this will attempt to keep the dmaap-bc container running. Sometimes needed to get a better look at logs when the main proces is exiting for some reason.
CONFIGMAP_ROOT defaults to /opt/app/config/conf but can be overwritten if needed. This value serves as the root to where the buscontroller.env file is found.
CONFIGMAP_PROPS defaults to /opt/app/config/conf/dmaapbc.properties but can be overwritten if needed