summaryrefslogtreecommitdiffstats
path: root/deploy/compass_vm.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-01-19Support multi-cluster deployHarry Huang1-0/+20
JIRA: COMPASS-566 1. set DEPLOY_HOST to "true "no longer refresh compass-core 2. patch depends on merged compass-tasks 3. support assign cluster name in scenario file Change-Id: I28d201c201cff5baefee9993d195be16ef1e830b Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-12-21Add compass-docker-composeHarry Huang1-9/+5
1. Add ansible for docker compose containerized compass 2. deploy/conf/compass.conf no longer specify image tags for runtime. build.yaml now is added into compass tarball to be the only place determine image tags 3. This patch is based on patch: https://gerrit.opnfv.org/gerrit/#/c/47393/ use merged compass-tasks 4. Tempoarily using private docker repo for compass-tasks. Switch to opnfv repo when patch https://gerrit.opnfv.org/gerrit/#/c/47329/ is merged 5. Modify ansible callback module accrodingly Change-Id: I0728a9002a1cc7804c9e8f13bd1afdccb684a159 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-08-31Support offline deployment for nosdn no feature scenarioYifei Xue1-0/+8
JIRA: - Add a repo docker which includes ubuntu PPA and python packages used for offline deployment. Change-Id: Iad9b0df7f33f5a7ab974c5deffb408fc93b3f3ad Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-08-11Adapt network.yml to OpenStack AnsibleHarry Huang1-0/+5
JIRA:COMPASS-557 1. modify sys_intf_mappings and ip_settings in network.yml to synchronize with OSA network. networks compass build will be mgmt, external, tenant, storage. 2. modify compass_conf to support new netwok.yml 3. fix some hard coding when transfer ip parameters 4. support heterogeneous network Change-Id: Ib4a8af1f96a40e6456242e3dc2b456e0c8c17c2e Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-24Dynamic InventoryHarry Huang1-0/+5
JIRA: COMPASS-556 1. using dynamic ansible inventory 2. modify Class AnsibleInstaller in compass-tasks 3. modify compass conf to support this behavior 4. specify docker image in /deploy/conf/compass.conf 5. remove clusterhost status update in playbook_done.py Change-Id: I04079547c8b251571ae4e5b165d3bf425b8913b7 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-15Adjust redeployHarry Huang1-0/+2
When deployment is interrupted (e.g. ctrl+c kill deploy.sh), ansible processes in compass-tasks are still running. Redeploy at this situation new ansible process will be affacted by remained ones which cause errors. Change-Id: I821445bd53397c7030145bf6dc925032cb42519c Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-06-09support Containerized compass-corehuangxiangyu1-90/+11
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-02-21add ntp for compass-coreqiwei-li-huawei1-0/+1
JIRA: COMPASS-514 add ntp for compass-core and set up timezone, make timezone in compass-core same as where hosts' are To set timezone of both compass-core and hosts, edit /deploy/conf/compass.conf TIMEZONE: Asia/Shanghai Change-Id: If60623dbff793e56e65c32f80addc5e1d956f3e1 Signed-off-by: qiwei-li-huawei <qiwei.li@huawei.com>
2016-12-22Change newton_xenial to newtonliyuenan1-32/+29
JIRA: COMPASS-513 Change-Id: I937a02bcd69f0df1f5d951dd6630ef2e76e8d386 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-12-15Merge "Print information about openstack deployed."Justin chi1-0/+7
2016-12-14Print information about openstack deployed.liyuenan1-0/+7
Change-Id: I80a379bcb5851ef2b29a52c8d45450dd1d36ade0 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-12-10Support compute node expansion with ceph-osdQiLiang1-0/+19
JIRA: COMPASS-481 - Use public_vip to fetch ceph related conf from controller nodes. - Add ceph-uuid for libvirt store and fetch for expansion. Change-Id: I9e93183ac108bd959a1226546fbb89706e3004c9 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-11-23Add refresh.sh exec on compass-coreQiLiang1-0/+5
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-28Workaround for random wait compass boot timeoutQiLiang1-1/+10
JIRA: - Sometimes compass-core already boot successfully, but wait_ok function retry to ssh login to compass-core vm failed. Add two more times retry before exit the deployment. Change-Id: I1ae7795b2196e9a24c24c2368402e560aba68339 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-24Edit the docker file and adjust HA ymlliyuenan1-12/+15
JIRA: COMPASS-491 Change-Id: Ibca46dca0ca614b9a6e7eb3fe5b9d5c8ca26c006 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-10-21Make openstack dashboard theme configurableQiLiang1-0/+23
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-0/+72
- 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-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/+1
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-3/+15
JIRA: COMPASS-216 Change-Id: Ide78ac82c1615259eeb7093c7a4485fbe493c6d9 Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-22install compass-core in centos7baigk1-0/+1
JIRA: COMPASS-208 Change-Id: Ie98615df37115beaa0ad8f744cc87162452af751 Signed-off-by: baigk <baiguoku@huawei.com>
2015-11-16suport installing openstack kilo on centos 7baigk1-0/+1
JIRA: COMPASS-141 Change-Id: I8b4eeacd802124cd05d17c7c24682254f0c567f7 Signed-off-by: baigk <baiguoku@huawei.com>
2015-11-03immediately return false when virsh start compass failedm001331421-1/+7
JIRA: COMPASS-129 Change-Id: Ie7c91314d1fa6b3845255534960849d5d314777b Signed-off-by: m00133142 <meimei@huawei.com>
2015-10-27should wait longer time for installing compassm001331421-1/+1
JIRA: COMPASS-122 Change-Id: I4c4b7d637d7629a750f36a00c1b2ba2ed55ec3eb Signed-off-by: m00133142 <meimei@huawei.com>
2015-10-21bug fix: support impi 2.0 and delete compass core default ip and gw when ↵baigk1-0/+1
baremetal deploy JIRA: COMPASS-107 Change-Id: Id1654a3551029be18e1884a488291eb3fa46d1ca Signed-off-by: baigk <baiguoku@huawei.com>
2015-10-14support connecting compass core and virtual machine by external ipcarey.xu1-2/+2
JIRA: COMPASS-86 Change-Id: I53ac86242088d5d6f22f6d692a7e60ce97e07f6e Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-10-10bugfix: libvirt_type should be kvm when host is barebetal modebaigk1-1/+21
JIRA: COMPASS-81 Change-Id: Iba3cb182a3e461ab89eb40fdba7800b8b2a1fc3e Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-19support to assign ppa name when deploy openstackbaigk1-1/+2
JIRA: COMPASS-63 Change-Id: Ifdaa8a82e849291c1b5d5a48f9f678f5bb417a89 Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-10adjust iso and ppa path in compass.isobaigk1-1/+1
JIRA: COMPASS-40 Change-Id: If10ec4be9613303584d5ca8bfdfe9b4790ac1d46 Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-08Build improvement for speedup and using public repobaigk1-1/+3
JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk <baiguoku@huawei.com>
2015-08-24bug fix:deploy failed at a new machine because of ansible-playbook's permissionchenshuai@huawei.com1-1/+1
JIRA: COMPASS-16 Change-Id: Ic410fa78521ef8c2b5de0f976963aeb7e0486f76 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2015-08-13Add deploy scripts for compasscarey.xu1-0/+100
JIRA: COMPASS-11 Change-Id: Id588912c73b424228b6f01cd47fd282d040f7b8f Signed-off-by: carey.xu <carey.xuhan@huawei.com>