Hi there,





Since MSB is the infrastructure service for ONAP microservice architecture to 
provide service registration/discovery,routing, load  balancing, api gateway 
and governance, every component is supposed to leverage it and to be integrated 
with it.  Given the tight development timeframe, to minimize the risk, MSB team 
have worked out an MVP MSB version so it can be provided earlier to other 
projects for integration testing. Currently, the docker images are hosted on 
the dockerhub, you can test and use it to integrate the ONAP components in your 
local development environment. After MSB repository is ready, we will move the 
MSB dockers to ONAP docker image host server.





1. MSB service discovery is built on top of Consul, so we need to pull and run 
the consul docker image first. Then pull and run the MSB dockers.





sudo docker run -d --net=host --name msb_consul consul agent -dev


sudo docker run -d --net=host --name msb_discovery zhaohuabing/msb_discovery


sudo docker run -d --net=host -e "ROUTE_LABELS=visualRange:1" --name 
internal_msb_apigateway zhaohuabing/msb_apigateway 





2. Register the A&AI rest service to MSB.


For testing, we can register the services via curl. MSB will work with OOM team 
to register the services automatically when deploying the ONAP components.





 curl -X POST \


  -H "Content-Type: application/json" \


  -d '{"serviceName": "aai", "version": "v8", "url": "/aai/v8/","protocol": 
"REST", "path": "/aai/v8", "nodes": [ {"ip": "10.74.215.65","port": "8443"}]}' \


  "http://127.0.0.1:10081/api/microservices/v1/services";





3.Access the a&ai rest service via internal api gateway.


curl http://127.0.0.1/aai/v8/cloud-infrastructure/cloud-regions





MSB API documentation: 
https://wiki.onap.org/display/DW/Microservice+Bus+API+Documentation


How ONAP can leverage MSB: 
https://wiki.onap.org/display/DW/ONAP@ONS2017?preview=%2F3245268%2F3245309%2FMicroservice+Powered+Orchestration+Architecture.pdf





Enjoy and feel free to contact me if you have any problem when using it.





Thanks,


Huabing
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to