Add cindercompatibleapi binary file 17/60817/1
authorleonwang <wanghui71@huawei.com>
Fri, 10 Aug 2018 03:55:18 +0000 (11:55 +0800)
committerleonwang <wanghui71@huawei.com>
Fri, 10 Aug 2018 03:55:29 +0000 (11:55 +0800)
This patch is proposed for adding cindercompatibleapi
binary file in ci/bin folder, so that downstream
projects can directly download this file in OpenStack
scenario.
Besides, some installation docs are also updated
according to these changes.

Change-Id: I92a341978379078216c220a9e84d47461d5a13d5
Signed-off-by: leonwang <wanghui71@huawei.com>
ci/bin/cindercompatibleapi [new file with mode: 0644]
tutorials/stor4nfv-only-scenario.md
tutorials/stor4nfv-openstack-scenario.md

diff --git a/ci/bin/cindercompatibleapi b/ci/bin/cindercompatibleapi
new file mode 100644 (file)
index 0000000..03bb234
Binary files /dev/null and b/ci/bin/cindercompatibleapi differ
index 3b097ad..6301dec 100644 (file)
@@ -15,21 +15,6 @@ Install docker:
 wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.03.1~ce-0~ubuntu_amd64.deb
 dpkg -i docker-ce_18.03.1~ce-0~ubuntu_amd64.deb 
 ```
-* golang
-
-Check golang version information:
-```bash
-root@proxy:~# go version
-go version go1.9.2 linux/amd64
-```
-You can install golang by executing commands below:
-```bash
-wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
-tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz
-echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
-echo 'export GOPATH=$HOME/gopath' >> /etc/profile
-source /etc/profile
-```
 
 ### Download opensds-installer code
 ```bash
index 2b399ef..854070e 100644 (file)
@@ -23,21 +23,6 @@ Install docker:
 wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.03.1~ce-0~ubuntu_amd64.deb
 dpkg -i docker-ce_18.03.1~ce-0~ubuntu_amd64.deb 
 ```
-* golang
-
-Check golang version information:
-```bash
-root@proxy:~# go version
-go version go1.9.2 linux/amd64
-```
-You can install golang by executing commands below:
-```bash
-wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
-tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz
-echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
-echo 'export GOPATH=$HOME/gopath' >> /etc/profile
-source /etc/profile
-```
 
 ## Start deployment
 ### Download opensds-installer code
@@ -98,18 +83,17 @@ ansible all -m ping -i local.hosts
 ansible-playbook site.yml -i local.hosts
 ```
 
-And next build and run cindercompatibleapi module:
-```shell
-cd $GOPATH/src/github.com/opensds/opensds
-go build -o ./build/out/bin/cindercompatibleapi github.com/opensds/opensds/contrib/cindercompatibleapi
-```
-
 ## Test
 ```shell
 export CINDER_ENDPOINT=http://10.10.3.173:8776/v3 # Use endpoint shown above
 export OPENSDS_ENDPOINT=http://127.0.0.1:50040
 
-./build/out/bin/cindercompatibleapi
+chmod +x ../bin/cindercompatibleapi && ../bin/cindercompatibleapi
+```
+
+Please create a default opensds profile after initializing opensds cluster:
+```shell
+osdsctl profile create '{"name": "default", "description": "default policy"}'
 ```
 
 Then you can execute some cinder cli commands to see if the result is correct,