From 401c7f3eae51c8bdf95fc8a2c4232969ac1f0b2f Mon Sep 17 00:00:00 2001 From: leonwang Date: Fri, 10 Aug 2018 11:55:18 +0800 Subject: 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 --- ci/bin/cindercompatibleapi | Bin 0 -> 15906567 bytes tutorials/stor4nfv-only-scenario.md | 15 --------------- tutorials/stor4nfv-openstack-scenario.md | 28 ++++++---------------------- 3 files changed, 6 insertions(+), 37 deletions(-) create mode 100644 ci/bin/cindercompatibleapi diff --git a/ci/bin/cindercompatibleapi b/ci/bin/cindercompatibleapi new file mode 100644 index 0000000..03bb234 Binary files /dev/null and b/ci/bin/cindercompatibleapi 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, -- cgit 1.2.3-korg