NOTE: Originally, the 5G Edge Use Case was planned for Dublin. But that was deferred because an ONAP-wide multi-site (routing) solution was not implemented. So, this page represents notes for the Work In Progress...as DMaaP team experiments with various approaches.
The The Dublin 5G Use Case has dependencies on DMaaP services. The 5G components (Data File Collector and 3GPP PM Mapper) will be deployed at the Edge, so DMaaP services should be made available to them to avoid a data flow path through the Central Kubernetes cluster. This 5G Use Case relies on both Data Router and Message Router.
...
- A Central-deployed DMaaP component muse be able to route to an Edge-deployed component, and distinguish between the same component deployed at different Edge sites. Examples include:
- dr-prov periodically sends provisioning info to each dr-node
- A centrally-deployed dr-node may transfer a file to an Edge-deployed dr-node for delivery to a subscriber in that Edge, based on an egress rule
- A central mirrormaker subscribes to an Edge-deployed message-router kafka
- An Edge-deployed DMaaP component must be able to route to a central-deployed service. Examples include:
- dr-node periodically syncs with dr-prov
- dr-node authenticates publish requests using aaf
- message-router authenticates client requests using aaf
- dbc-client makes request to dmaap-bc API during post-install provisioning
- Edge mirrormaker subscribes to central message-router kafka
- Localized DR Routing between a Data File Collector (DFC) and a PM Mapper deployed in the same Edge X.
- Localized DR Routing means DR Node is deployed in the same Edge site so data doesn't need to leave the site.
- DFC will be a publisher to a feed provisioned at deployment time.
- PM Mapper will be a subscriber provisioned at deployment time.
- The feed should be unique per site so that when there are multiple sites, PM Mapper only receives its locally produced data.
- Localized messaging from PM Mapper and DFC. This will signal DFC that a file was processed.
- Localized messaging implies a Message Router instance in the same edge location.
- PM Mapper will a publisher provisioned at deployment time
- DFC will be a subscriber provisioned at deployment time.
- Communication will utilize an authenticated topic in the MR deployed in the same edge site.
- PM Mapper and DFC will use AAF credentials to authenticate.
- PM Mapper identity will be authorized to publish on the topic
- DFC identity will be authorized to subscribe on the topic
- Inter-site messaging from PM Mapper to VES perf3gpp
- Inter-site messaging means sending a message from an edge location publisher to a central location subscriber.
- PM Mapper, deployed at Edge, will be a publisher using AAF credentials
- VES perf3gpp, deployed in Central, will be a subscriber using AAF credentials
- Communication will utilize an authenticated topic on the MR deployed in the same edge site.
- PM Mapper and DFC will use AAF credentials to authenticate.
- PM Mapper identity will be authorized to publish on the topic
- VES perf3gpp identity will be authorized to subscribe on the topic
- Furthermore, messages on this topic will be replicated to the central MR instance.
- Are there any other subscribers? (esp, are there any other at edge?)
Solution Options for DublinOptions for Dublin
NOTE: planning for Dublin assumed that the AAI component would provide an API that served as a registry of each ONAP site. This did not happen.
This section is based on a discussion with Jack Lucas about possible approaches that we might consider within the Dublin feature set.
...
- Extend the configuration of the Jack's proxy to include DMaaP services. Note: Current capability will route from edge to central. (See Jack's demo from ~ 0:29:40)
- Include central deployed DMaaP services with existing node ports in proxy config: dr-prov, message-router, dmaap-bcbc (Completed: see https://gerrit.onap.org/r/#/c/87710/)
- Expose central deployed DMaaP service on node port and add to proxy configuration: dr-nodenode (Completed: see https://gerrit.onap.org/r/#/c/87710/)
- NOTE: proxy can subsequently route by FQDN (for HTTP only).
- K8S External Service. Deploy services at Edge which map to central services.
- Add entries for central services into /etc/hosts on Edge pods so they can route properly
- Provision some external DNS service that is able to resolve to required IP addresses in other k8s cluster
- Will require establishing a convention for FQDN. eg. <Release>-<service>.<namespace>
- Convention should leverage assumptions of using same value for Release and k8s cluster name.
- Determine how clients can specify FQDN (service name) but designate IP address to use.
- See --resolve option in curl for example of how this might work.
- Apply k8s thinking to DMaaP component design:
- Abandon the DR publish redirect protocol and simply use dr-node service instead.
- if dr-node is local to the cluster, then client will route to local dr-node pod for publishing (which is desired)
- if dr-node isn't local to cluster, then client will route to central dr-node via proxy (fallback)
- Change dr-prov algorithm for distributing prov data to dr-node so dr-prov doesn't need to know how to address every pod
- consider simple periodic polling by dr-node
- consider using an MR topic to trigger dr-node to poll for prov data
- migrate to ELK design for logging, removes need for dr-prov to gather logs from each dr-node. (already in progress)
- Abandon the DR publish redirect protocol and simply use dr-node service instead.
...
- Central K8S Deployment
- Central DMaaP Deployment
- Use k8s cluster name as the Release. e.g. "central"
- Deploy aaf
Deploy aai- Deploy dmaap
- Deploy dcae
- Deploy VES perf3gpp via dcae
- Edge K8S Deployment
Register Edge K8S deployment in AAI (how?)- Add dcaeLocation (for new Edge K8S) to DMaaP Bus Controller
- Edge DMaaP Deployment
- Update dmaap-edge.yaml configuration override file with values from central
- Use k8s cluster name as the Release. e.g. "edge1"
- deploy dmaap
- deploy PM Mapper via dcae
...