aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/client.py
AgeCommit message (Collapse)AuthorFilesLines
2018-07-02Add cluster_param in DHA fileHarry Huang1-0/+9
JIRA: COMPASS-603 Users may need some extra parameters to further customize the deployment. Change-Id: I64f7f39a49f17350d159b3733f34ffd816849174 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2018-01-19Support multi-cluster deployHarry Huang1-7/+10
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-08-31Support offline deployment for nosdn no feature scenarioYifei Xue1-0/+12
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-07-31Fix OS install bugHarry Huang1-1/+1
There is a missing indent in the judgement code block for OS installation complete which cause OS installation complete only affected by the state of host1 Change-Id: I5d470aef93b65ca77d290e596a4fefd62a82517b Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-28Add moonv4 into Compass4nfvchigang1-9/+29
JIRA:- To deploy moon master, export MOON_CFG env like below compass deploy: export MOON_CFG="master:flag=Disable,slave:flag=Enable,slave:name=slave1,slave:master_ip=master_ip" To deploy moon slave, export MOON_CFG env like below compass deploy: export MOON_CFG="master:flag=Enable,slave:flag=Disable,slave:name=slave1,slave:master_ip=master_ip" Change-Id: I21c0186a029c508d390c69112b43510d9c5b9c5c Signed-off-by: chigang <chigang@huawei.com>
2017-07-13Modify deploy/client.pyhuangxiangyu1-1/+4
Bug: 1. when ansible_print process encounter runtime error e.g. ansible.log doesn't exist, whole client.py process stucks. 2. cobbler status encounters error when deploy timeout happens. Solution: 1. add ansible_print process alive check in function get_installing_progress to exit parent process when child process encounter runtime error. 2. remove unnecessary code in calling cobbler status which cause error. Change-Id: Ie04d45fd612e7273a6d584e3efb69e1506cdd0f9 Signed-off-by: huangxiangyu <huangxiangyu5@huawei.com>
2017-07-11Utilize yaml.safe_loadlhinds1-2/+2
The patch changes instances of yaml.load with yaml.safe_load which is more secure at blocking arbitrary code execution. The following blog has a decent explaination: https://www.kevinlondon.com/2015/08/15/dangerous-python-functions-pt2.html Change-Id: I8201baab6cb31ab31228eca83134f87a57c2f5d2 Signed-off-by: lhinds <lhinds@redhat.com>
2017-07-10Add opendaylight switchHarry Huang1-0/+8
Add key plugins in DHA file and declare opendaylight as a plugin in odl scenario. Change-Id: Iefc07b691d5052a9980d8c87f23a9f82be61ed6e Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-06-09support Containerized compass-corehuangxiangyu1-18/+64
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>
2016-11-15Repair Flake8's warnings & errorsKingPoo1-18/+19
Change-Id: I67e71bc37c0464a0714e1e59b3402973786e4aa6 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-11-09autopep8 make py files more standardKingPoo1-164/+182
Change-Id: Ibaa74a1f508b28548668e764d1860393caa356d4 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-09-18Add a expansion functionalityliyuenan1-26/+64
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-09-12print cobbler status:Wutianwei1-0/+4
it will print cobbler status when deploying was timeout Change-Id: I22fa89c6170353884f561eadd4d0fda2406f915f Signed-off-by: Wutianwei <wutianwei1@huawei.com>
2016-08-04bugfix moon switchchenshuai@huawei.com1-1/+1
JIRA: COMPASS-465 Change-Id: I7161d8ec018819ac8497b6f323adeafccbc8dfd9 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-08-04add moon scenario in Compasschenshuai@huawei.com1-0/+4
JIRA: COMPASS-463 Change-Id: Ia51d7d592c0508c104ab42f62fa62693f85f4867 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-07-19COMPASS-440CNlucius1-0/+4
add config for onos_sfc ci job Change-Id: I2ae0e4339a8388de8b83b4f2e39edfc465892a20 Signed-off-by: CNlucius <lukai1@huawei.com>
2016-05-24Dump anslible log from defined pathQiLiang1-1/+2
JIRA: COMPASS-394 Change-Id: I40dd709e0f365af80c3a2dfb487073d925f2ea77 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-02-18support odl_l3_agent enable flag parambaigk1-0/+4
JIRA: COMPASS-318 Change-Id: I541cdb9c1b2f6873b1426b470a61af829d6bffce Signed-off-by: baigk <baiguoku@huawei.com>
2016-02-16bugfix: fix the mongodb oplog size to 10GBcarey.xu1-3/+3
JIRA: COMPASS-316 Change-Id: Ib7a6a0f9a8c06de19d0530157bbeaaf233ce169f Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2016-02-04bugfix: return success when ansible stuckcarey.xu1-11/+9
JIRA: COMPASS-304 Change-Id: Iad3de6582c522b75856421078a704bdf2e17c572 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2016-02-04bugfix: increase retry time when get cluster statecarey.xu1-9/+17
JIRA: COMPASS-301 Change-Id: I10dad32f1f1f7429d0081851042db7dbe204c71e Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2016-01-21bugfix: for sometimes installation hang upcarey.xu1-36/+37
Change-Id: Idd266cf986e0546b0b80d6486698d340c530ff37 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2016-01-05set nova default floating pool for functestcarey.xu1-2/+3
JIRA: COMPASS-241 Change-Id: I53528db5162aa8149e0edce88efc2aa158d175bd Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2016-01-04improve: display ansible install log on client sidecarey.xu1-8/+29
JIRA: COMPASS-219 Change-Id: Id134c312a25a48ee32ab8755def35b8041f47f62 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-12-28support redeploybaigk1-7/+49
JIRA: COMPASS-216 Change-Id: Ide78ac82c1615259eeb7093c7a4485fbe493c6d9 Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-12change compass-core repo to upstreambaigk1-6/+3
JIRA: COMPASS-197 Signed-off-by: baigk <baiguoku@huawei.com>
2015-11-19support FWaaS and VPNaaScarey.xu1-0/+8
JIRA: COMPASS-149 Change-Id: Ib523580fb7a7a2cd62e4fabb27fd710361cdeef3 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-11-08add option to disable security groupcarey.xu1-8/+5
JIRA: COMPASS-126 Change-Id: Ie9417be0e78690b5580d460b9c61f77ccc1d91c6 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-10-10bugfix: libvirt_type should be kvm when host is barebetal modebaigk1-0/+6
JIRA: COMPASS-81 Change-Id: Iba3cb182a3e461ab89eb40fdba7800b8b2a1fc3e Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-19support to assign ppa name when deploy openstackbaigk1-1/+6
JIRA: COMPASS-63 Change-Id: Ifdaa8a82e849291c1b5d5a48f9f678f5bb417a89 Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-08Build improvement for speedup and using public repobaigk1-0/+877
JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk <baiguoku@huawei.com>