sodafoundation / api

SODA Terra Project API module : is an open source implementation of SODA API connecting storage to platforms like Kubernetes, OpenStack, and VMware
Apache License 2.0
827 stars 316 forks source link

OPENSDS_ROOT and OPENSDS_DIR is inconsistent in bootstrap script #1260

Closed thandayuthapani closed 4 years ago

thandayuthapani commented 4 years ago

/kind bug

What happened: Bootstrap script failed while trying to build

What you expected to happen: Expected successful execution of bootstrap.sh

How to reproduce it (as minimally and precisely as possible): Ran following script from File Share documentation

curl -sSL https://raw.githubusercontent.com/opensds/opensds/master/install/devsds/bootstrap.sh | sudo bash

Anything else we need to know?: Log:

root@HP-ENVY-x360:/home/thandayuthapani# bash bootstrap.sh 
2020-04-15 13:35:56 [INFO] OpenSDS bootstrap starting ...
2020-04-15 13:35:56 [INFO] Downloading the OpenSDS source code...
Cloning into 'api'...
remote: Enumerating objects: 237, done.
remote: Counting objects: 100% (237/237), done.
remote: Compressing objects: 100% (203/203), done.
remote: Total 32450 (delta 64), reused 93 (delta 17), pack-reused 32213
Receiving objects: 100% (32450/32450), 95.61 MiB | 436.00 KiB/s, done.
Resolving deltas: 100% (15684/15684), done.
bootstrap.sh: line 90: cd: /root/go/src/github.com/sodafoundation/api: No such file or directory
2020-04-15 13:39:44 [INFO] Building OpenSDS ...
make: *** No rule to make target 'ubuntu-dev-setup'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
2020-04-15 13:39:44 [INFO] OpenSDS bootstrapped successfully. you can execute source /etc/profile to load golang ENV.

Environment: