From c73224d4aabb5d0a24f90574e99892f97a76dca3 Mon Sep 17 00:00:00 2001 From: "david.mcweeney" Date: Fri, 25 Aug 2023 16:24:30 +0100 Subject: [DMAAP-DR] Update DataRouter docs for removal of buscontroller Change-Id: I933896889e222a99054a082db84d59bffb15a311 Issue-ID: DMAAP-1893 Signed-off-by: david.mcweeney --- docs/architecture.rst | 36 ++++++++++++++++++++++++++++-------- docs/images/dr_bc_prov.png | Bin 46093 -> 0 bytes 2 files changed, 28 insertions(+), 8 deletions(-) delete mode 100644 docs/images/dr_bc_prov.png diff --git a/docs/architecture.rst b/docs/architecture.rst index e3acc46a..fa6d503a 100644 --- a/docs/architecture.rst +++ b/docs/architecture.rst @@ -17,22 +17,42 @@ Once created, DR sub clients can then subscribe to the feed to receive all data .. image:: images/dr_pub_flow.png +Previously, prospective publishers and subscribers would use the DMaaP Bus Controller API, which would call +the DR provisioning API to manage feeds and subscriptions. -The DR provisioning API is not meant to be used directly by DR end users (publishers and subscribers) -for feed / subscription CRUD (create, read, update, delete) operations. +However, with the deprecation of Message Router, the DMaaP Bus Controller API has also been deprecated and +DR provisioning has been brought into DR itself. This will be performed through the +Data Router (DR) provisioning client. -Instead, prospective publishers and subscribers should use the DMaaP Bus Controller API, which will call -the DR provisioning API to manage feeds and subscriptions. +The Data Router (DR) provisioning client runs as a Kubernetes initContainer for ONAP DCAE applications +that use DR feeds to transfer data between applications. The logic for the client is contained in a script +that makes requests to the DR provisioning node using the DR provisioning API. +(See the `API documentation `_ for details.) + +The DR provisioning client (drprov-client) replaces the DMaaP Bus Controller client (dbc-client). +The dbc-client used the DMaaP Bus Controller to provision data router feeds and subscribers and +DMaaP Message Router topics and clients. The Message Router provisioning functionality is no longer needed, +and Bus Controller will be deprecated and removed from the ONAP tree. - .. image:: images/dr_bc_prov.png +The provisioning logic is in a script called drprov-client.sh. This script is set as the +entrypoint for the initContainer. +The drprov-client performs two high-level tasks: -See DMaaP Bus Controller API docs for more information: +- Makes requests to the DR provisioning API to create feeds and subscriptions and captures the API's responses. +- Uses the API's response to update a component's configuration file by replacing placeholders in the file + (in the form of environment variable names) with values from the API responses. -`Bus Controller Feeds API `_ +The drprov-client script queries the DR provisioning API to determine if a feed already exists (based on the feed +name and feed version) and does not attempt to create the feed again. Instead, it retrieves the feed information +for the existing feed and supplies that information to a component. -`Bus Controller Subs API `_ +Similarly, the drprov-client script queries the DR provisioning API to determine if a subscription already exists +(based on the username, password, and delivery URL for the subscription). If one exists, the script does not create +a new subscription. +Refer to `README file `_ +in drprov-client in the datarouter repo for full details. High level Architecture ----------------------- diff --git a/docs/images/dr_bc_prov.png b/docs/images/dr_bc_prov.png deleted file mode 100644 index 932c6556..00000000 Binary files a/docs/images/dr_bc_prov.png and /dev/null differ -- cgit 1.2.3-korg