2 system: centos7-64bit, 8GB RAM, 4 CPU
5 docker pull onapmulticloud/common-services-msb
6 docker pull onapmulticloud/common-services-extsys
7 docker pull onapmulticloud/common-services-drivermanager
8 docker pull onapmulticloud/gso-service-gateway
9 docker pull onapmulticloud/gso-service-manager
10 docker pull onapmulticloud/gso-gui-portal
12 # login onap and pull those two images
13 docker login -u docker -p docker nexus3.onap.org:10001
14 docker pull nexus3.onap.org:10001/onapmulticloud/multivim-broker:r1
15 docker pull nexus3.onap.org:10001/onapmulticloud/multivim-vio-driver:r1
20 docker run -t --name i-msb -p 80:80 onapmulticloud/common-services-msb
22 Run other docker server:
23 Assign the host ip to MSB_ADDR. If server cannot connect to msb server, please check iptables rule on host may block this connection.
25 docker run -t -e MSB_ADDR=$HOST_IP:80 onapmulticloud/gso-service-gateway
26 docker run -t -e MSB_ADDR=$HOST_IP:80 onapmulticloud/common-services-extsys
27 docker run -t -e MSB_ADDR=$HOST_IP:80 onapmulticloud/common-services-drivermanager
28 docker run -t -e MSB_ADDR=$HOST_IP:80 onapmulticloud/gso-gui-portal
29 docker run -t -e MSB_ADDR=$HOST_IP:80 onapmulticloud/gso-service-manage
30 docker run -t --name multivim-driver-vio-test -e MSB_ADDR=$HOST_IP:80 nexus3.onap.org:10001/onapmulticloud/multivim-vio-driver:r1
31 docker run -t --name multivim-broker-test -e MSB_ADDR= $HOST_IP:80 nexus3.onap.org:10001/onapmulticloud/multivim-broker:r1
36 Access: http://$HOST_IP/openoui/microservices/index.html
38 Register your openstack enviroment in extsys server
39 Choose 'extsys' —> 'vim Managent' —> 'post vim'
48 "description": "test",
49 "type": "vmware", # It must be ‘vmware’ so will use multvim-proxy service to execute requests
52 "url": "https://10.154.2.225:5000/v3", # keystone auth_url
66 "description": "test",
68 "createTime": "2017-08-14 21:28:05",
69 "vimId": "a5b17aaa-a142-4a50-b425-f1e6eab7136d", # vimid
82 you need to input <vimid> in url path.
84 curl -X POST -d @test.json -H 'Content-Type:application/json' http://$HOST_IP/api/multivim/v1/<vimid>/identity/auth/tokens
86 test.json content example:
91 "scope": {"project": {"id": “<project-id>”}},
94 "password": {"user": {"domain": {"name": “<doman-name>”}, "password": “<user-password>”, "name": “<user-name>”}}, "methods": ["password"]
101 There are a large amounts of data including service endpoint, user information, etc. For our testing We take nova and identity service endpoint address and auth token which is in response header named “X-Subject-Token”.
104 http://$HOST_IP/api/multivim-vio/v1/<vimid>/identity
107 http://$HOST_IP/api/multivim-vio/v1/<vimid>/compute/<user-tenantid>
112 Use identity’s endpoint: http://$HOST_IP/api/multivim-vio/v1/<vimid>/identity/
114 curl -X GET -H 'X-Auth-Token:<token>' http://$HOST_IP/api/multivim-vio/v1/<vimid>/identity/projects
117 2.3 Get os Hypervisor
119 Use nova’s endpoint: http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<user-tenantid>
122 curl -X GET -H 'X-Auth-Token:<token>' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/os-hypervisors/detail
125 2.4 List instance of user’s project
127 curl -X GET -H 'X-Auth-Token:<token>' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers
130 2.5 Show instance detail
132 you need to input <server-id> in url path.
134 curl -X GET -H 'X-Auth-Token:<token>' http://$HOST_IP/api/multivim-vio/v1/vimid/nova/tenantid/servers/<server-id>
137 2.6 Shutdown instance
139 you need to input <server-id> in url path
141 curl -X POST -d '{"os-stop":null}' -H 'X-Auth-Token:<token>' -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action
146 you need to input <server-id> in url path
148 curl -X POST -d '{"os-start":null}' -H 'X-Auth-Token:<token>' -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action
153 you need to input <server-id> in url path
155 curl -X POST -d '{"suspend":null}' -H 'X-Auth-Token:<token>' -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action
160 you need to input <server-id> in url path
162 curl -X POST -d '{"resume":null}' -H 'X-Auth-Token:<token>' -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action
167 you need to input <server-id> in url path
169 curl -X POST -d '{"pause":null}' -H 'X-Auth-Token:<token>' -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action
173 2.11 Unpasue instance
175 you need to input <server-id> in url path
177 curl -X POST -d '{"unpause":null}' -H 'X-Auth-Token:<token> -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action
182 you need to input <server-id> in url path
184 curl -X POST -d '{"reboot":{"type":"HARD"}}' -H 'X-Auth-Token:<token> -H 'Content-Type:application/json' http://$HOST_IP/api/multivim-vio/v1/<vimid>/nova/<tenantid>/servers/<server-id>/action