aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/launch.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-06-09support Containerized compass-corehuangxiangyu1-6/+1
JIRA: COMPASS-534 1. rm compass vm and add ansible to bring up 5 compass containers 2. use tar package instead of compass.iso which contains compass docker images, OS ISO, PPA, pip packages. 3. modify client.py to communicate with containerized compass-core 4. modify cobbler files and ansible callback files to adapt with containerized compass-core 5. upgrade openstack version to ocata 6. use the openstack-ansible to deploy openstack 7. virtual deploy external use nat Change-Id: Ifa2a3f5b8c7c32224ac4276fd3d4cc2b0d270a26 Signed-off-by: huangxiangyu <huangxiangyu5@huawei.com>
2017-03-27opera adapter fix2Harry Huang1-0/+2
* opera_adapter need sshpass which may cause deploy fail * compass log redirection is the last command which always return 0 and thus cover deploy error 1. add installation of sshpass in prepare.sh 2. echo a string at the end of deploy/launch.sh into log file to judge if deployment is complete 3. fix typing error in util/check_valid.py Change-Id: Ic4bca50b2c316bf46cace45b9b3317ef9452a0ba Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-03-22Opera adapter fix 1Harry Huang1-1/+2
After adding sudo opera_adapter can't get $COMPASS_DIR and still has the issue returning 0 when launch opera fail. Changing the way opera_adapter gets $COMPASS_DIR and add judgement inside opera_adapter to get opera launch error. Change-Id: I59d0d496f47b38e474de3dfc1277877dbe8ed840 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-03-21Opera adapter fixHarry Huang1-1/+4
* CI return 0 when opera_adapter fails which cover the error. * opera_adapter runs with no sudo will fail when generate ssh key. * opera_adapter.py use simple ip replacement for openrc file will lead to error when openrc file changed in compass. 1. add judgement to tell if opera_adapter fails 2. add sudo when run opera_adapter 3. pass data in openrc files to opera openrc instead of ip rewriting Change-Id: I681717947746b768791529975a5b0d2a23c6069a Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-02-04Add opera supportHarry Huang1-0/+3
JIRA: COMPASS-504 JIRA: OPERA-1 Function: support open-o deployment by calling opera project. open-o deployment will start at the end of normal compass4nfv deployment. Changes: 1. add scenario and network yaml for opera 2. add opera_adapter.py for calling opera Attention: The git URL for opera will change after opera patch OPERA-2 is meraged. This patch should be modifed before meraged. Change-Id: Id0afcece920c4107bb23f42b460c46eec3ca97e6 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2016-12-14Print information about openstack deployed.liyuenan1-3/+22
Change-Id: I80a379bcb5851ef2b29a52c8d45450dd1d36ade0 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-11-23Add refresh.sh exec on compass-coreQiLiang1-0/+2
Add refresh.sh exec on compass-core, so user don't need to manually execute the refresh.sh script when they what redeploy the openstack without redeploy the compass-core vm. Change-Id: I1a6b5ca84d4dd00a3f326b30b68e0ecac022d5ef Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-21Make openstack dashboard theme configurableQiLiang1-0/+4
Use flag ENABLE_UBUNTU_THEME to configure enable or disable ubuntu dashboard theme. Set default to use ubuntu theme. JIRA: - Change-Id: I454c69b0290084c244979bb86c733a03721481cb Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-15Add recovery scriptsQiLiang1-3/+9
- add recovery shell scripts - add boot-recovery role to stop services during system boot which could cause boot pending - configure nfs mount in /etc/fstab cause system boot pending, so mount nfs during ansible-playbook run. - kill mysqld before mysql recovery, running mysqld may cause mysql recover failure JIRA: COMPASS-474 Change-Id: I0f6f0ee935fbe3fbbe28a451a02decfb01a6165b Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-11Merge "Add ip and mac valid check functionality"Justin chi1-1/+2
2016-09-23Add ip and mac valid check functionalityHerry Huang1-1/+2
Add function check_input_para in /deploy/launch.sh to check whether there is invalid address in DHA and NETWORK file after function process_input_para is called. Check_input_para is defined in /deploy/deploy_parameter.sh and calls check_valid.py in /util. Exit installation when invalid address or format error is found. JIRA:COMPASS-480 Change-Id: Ib01c368db6b48cbded0045a2819d895c980c2b1b Signed-off-by: Herry Huang <huangxiangyu5@huawei.com>
2016-09-18Add a expansion functionalityliyuenan1-22/+35
Through modify the virtual_cluster_expansion.yml, include host's name and mac, you can decide to how many compute nodes you need to add. And you also need to modify network.yml. Note that external subnet's ip_range should be changed as the first 6 IPs are already taken by the first deployment. Edit ``add.sh``, check the environment variable. Note that the OS version and OpenStack version should be same as the first deployment. Run ``add.sh``. JIRA:COMPASS-481 Change-Id: Id85f02518667e0ff80c2475e70856cd30cf1b9b7 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-08-19Revert "Prepare the jump host offline"Yifei Xue1-10/+6
This reverts commit b7058b4b3f823cf4c95c38741dddc68b59b733cc. Change-Id: I77437a15a0a0c47f768de30eaf7f37cf73f028fb Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2016-08-17Prepare the jump host offlineYifei Xue1-6/+10
JIRA: COMPASS-456 Change-Id: Ieced8e30bde3d19623b5d2486a52f81c1cf295a3 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2016-08-04avoid needless package reinstallQiLiang1-0/+2
If you do not run deploy.sh for the first time, then export below env before run deploy.sh can avoid needless package reinstall. export DEPLOY_FIRST_TIME="false" JIRA: COMPASS-449 Change-Id: Ia3b51bd02f4a131d57bf5793900faad9e1acb09e Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-05-24ocl : add sudo for jerkinchenshuai@huawei.com1-1/+1
JIRA: COMPASS-398 Change-Id: If48fbdf9c6a1c2623fdbbea40963791c8fa4da78 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-05-16ocl: add vgw router on jump server for functest and yardstickchenshuai@huawei.com1-0/+5
JIRA: COMPASS-391 Change-Id: I99120617282a27ed8b2d811ad00ae4d10adff93b Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-02-17Improvement: reset compute nodes for opencontrailchenshuai@huawei.com1-0/+8
JIRA: COMPASS-317 Change-Id: I27b6bb3aa8707f02a51951eed83646a78dafc841 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-01-30add apache2 headers for shell scripts and ansible scriptscarey.xu1-0/+8
Change-Id: I34b66d76f59f4300c7ce4e7bd9dc7c1eaddfb384 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2016-01-27bugfix: prepare python venvcarey.xu1-1/+2
JIRA: bugfix_python_env Change-Id: Ie7f3e295c7c283ff3e805bed13029174c2dda258 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-12-30add Shebang for bash scriptscarey.xu1-0/+1
* Our bash scripts use some bash sepcific syntax, so them can not be started by other shell like zsh. Add shebang for them, so zsh can simplely execute './deploy.sh' Change-Id: Ic6e6afaa83c6de131e6ac4eda1601d11c5b22656 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-12-28support redeploybaigk1-43/+32
JIRA: COMPASS-216 Change-Id: Ide78ac82c1615259eeb7093c7a4485fbe493c6d9 Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-22clean all virutal host before deploycarey.xu1-0/+5
JIRA: COMPASS-212 Change-Id: If19bd069ae1fc8cfe565f1e1ed352f24b9fc3950 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-12-14deploy compass-core and hosts seperatelygrakiss1-3/+16
JIRA: COMPASS-194 - add two entry for seperate deployment Change-Id: I7ea964f7fc1ac7e9191b4c21032e24a1a70aa07d Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2015-11-03Create Deployment Hardware Adapter (DHA) file for compassbaigk1-1/+1
JIRA: COMPASS-132 Change-Id: I8e3f73b93acd8dae9f40dd43548679bc2eb1ea3c Signed-off-by: baigk <baiguoku@huawei.com>
2015-10-13make internal vip and public vip into one groupcarey.xu1-1/+1
JIRA: COMPASS-88 Change-Id: Ie40033b99d29e79c6a50b3073f4147109a02d7fa Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-10-10bugfix: libvirt_type should be kvm when host is barebetal modebaigk1-0/+1
JIRA: COMPASS-81 Change-Id: Iba3cb182a3e461ab89eb40fdba7800b8b2a1fc3e Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-08Build improvement for speedup and using public repobaigk1-0/+65
JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk <baiguoku@huawei.com>