summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleonwang <wanghui71@huawei.com>2018-08-10 11:55:18 +0800
committerleonwang <wanghui71@huawei.com>2018-08-10 11:55:29 +0800
commit401c7f3eae51c8bdf95fc8a2c4232969ac1f0b2f (patch)
tree1ba71978ef6c0e501e0475d516d7dd71e536fe2f
parent91a84330494b100ac9077652c910fb248f737717 (diff)
Add cindercompatibleapi binary file
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>
-rw-r--r--ci/bin/cindercompatibleapibin0 -> 15906567 bytes
-rw-r--r--tutorials/stor4nfv-only-scenario.md15
-rw-r--r--tutorials/stor4nfv-openstack-scenario.md28
3 files changed, 6 insertions, 37 deletions
diff --git a/ci/bin/cindercompatibleapi b/ci/bin/cindercompatibleapi
new file mode 100644
index 0000000..03bb234
--- /dev/null
+++ b/ci/bin/cindercompatibleapi
Binary files differ
diff --git a/tutorials/stor4nfv-only-scenario.md b/tutorials/stor4nfv-only-scenario.md
index 3b097ad..6301dec 100644
--- a/tutorials/stor4nfv-only-scenario.md
+++ b/tutorials/stor4nfv-only-scenario.md
@@ -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
diff --git a/tutorials/stor4nfv-openstack-scenario.md b/tutorials/stor4nfv-openstack-scenario.md
index 2b399ef..854070e 100644
--- a/tutorials/stor4nfv-openstack-scenario.md
+++ b/tutorials/stor4nfv-openstack-scenario.md
@@ -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,