...
- Install Docker CE, an example tutorial can be found here.
Make local copies of the HAS and MUSIC repos
Code Block language bash title HAS and MUSIC install $ cd "your workspace" $ git clone https://gerrit.onap.org/r/music $ cd music $ git checkout 2.0.0-ONAP $ cd ../ $ git clone https://gerrit.onap.org/r/optf/has $ cd has $ git checkout 2.0.0-ONAP
- (Optional) Install Insomnia REST API client for handling REST requests. Some prepared requests and variables are available can be imported to Insomnia. Importable to Insomnia:
View file name vCPE-use-case-2.0.0-ONAP.json height 250 - (Optional) For advanced debugging of the inter-component communication use Wireshark
...
Send vCPE homing template to HAS, E.g.
$ curl -X POST --user admin1:plan.15 -H 'Content-Type: application/json' \
-d @homing.json localhost:8091/v1/plansHint: homing.json may be created by conjoining
Code Block { "name": "vCPE homing Beijing 2.0.0-ONAP", "template": <<HAS Homing Specification (R')>> }
where HAS Homing Specification (R') = https://wiki.onap.org/display/DW/vCPE+Homing+Use+Case
Hint: for username:password (--user above) see ~/conductor.conf, conductor_api section
ISSUE_1: At this point a request sent to the MUSIC fails with the error:
request to MUSIC sent by the controller: PUT /MUSIC/rest/v2/keyspaces/conductor_rpc/tables/controller/rows?id=<<Some UUID>>
MUSIC's reply: "Exception thrown while doing the critical put, check sanctity of the row/conditions:\nnull"
- The produced HTTP stream between `controller` and MUSIC captured with Wireshark:
View file name HAS-MUSIC consitency-atomic.txt height 250