X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=stor4nfv.git;a=blobdiff_plain;f=tutorials%2Fstor4nfv-openstack-scenario.md;fp=tutorials%2Fstor4nfv-openstack-scenario.md;h=854070eb38c60c54bc525d0bb901ed29ab6b1b6f;hp=2b399ef1762dcfc6b76d90a2b7482abcc5913be1;hb=401c7f3eae51c8bdf95fc8a2c4232969ac1f0b2f;hpb=91a84330494b100ac9077652c910fb248f737717 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,