summaryrefslogtreecommitdiffstats
path: root/util
AgeCommit message (Collapse)AuthorFilesLines
2018-05-08Upgrade OpenStack version from Pike to Queensramamani yeleswarapu1-4/+4
Change-Id: Ice7b3204ade23571df41fc4effb91bb5e125abac Signed-off-by: Ramamani Yeleswarapu <ramamani.yeleswarapu@intel.com>
2018-04-16cobbler: support deploying ubuntu on armYibo Cai2-5/+5
Deploy ubuntu by setting ADAPTER_OS_PATTERN='(?i)ubuntu-16.*arm.*' and OS_VERSION=xenial. Change-Id: I1035a2d45225fceab6eead35d77d98130def373b Signed-off-by: Yibo Cai <yibo.cai@arm.com>
2018-02-06Merge "Ansible callback support both V2.3 and V2.4"Yifei Xue2-10/+6
2018-02-01Ansible callback support both V2.3 and V2.4Harry Huang2-10/+6
JIRA: COMPASS-585 1. Add conditional branch to support both ansible versions 2. Keep callback in ansible_plugins directory which will contains all plugins upcoming in the future Change-Id: I11f3d9700e07ad5bd7f03ad56f4e0bc061df05ec Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2018-01-31Seperate compass-tasksHarry Huang1-1/+5
JIRA: - 1. Keep openstack-ansible in compass-tasks-osa. Keep kubespray in compass-tasks-k8s. Build different compass-tasks in one tar ball. Identify which one to use during docker-compose. 2. Temporarily using private docker repo. 3. COMPOSE_IMAGES is used to controll which components to form compass-core regardless of specific repo. Set default value for openstack and kubernetes when perform single cluster deploy. Change-Id: Ief52580e954c602575c9bf8abe5733c100876c7f Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2018-01-14docker-compose: support aarch64Yibo Cai4-13/+74
Change-Id: I4b1bce45f8412af7076dca90bbb4c1193057d110 Signed-off-by: Yibo Cai <yibo.cai@arm.com>
2017-12-21Add compass-docker-composeHarry Huang32-0/+4440
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-07-11Utilize yaml.safe_loadlhinds1-1/+1
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-03-27opera adapter fix2Harry Huang1-2/+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-02-27Add License header for files without itchigang1-0/+9
JIRA: - use the first author's company for license holder use the latest year for license year add license for yml,c,cpp,shell,python,java. don't add license for template files such as config and j2 patch for auto add license: https://github.com/Justin-chi/Lab/blob/master/add_license.sh delete the files with the Eclipse License Change-Id: I4f17da4ebb36a074c0b6722a2a4154e6c235d4bb Signed-off-by: chigang <chigang@huawei.com>
2016-11-22Improve compass ci verification--clear all flake8 warnings & errors of ↵KingPoo1-1/+1
compass4nfv JIRA: COMPASS-494 Change-Id: Iec4664a376100f2a0f5fe6c46c1a45360f9c2324 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-11-15Repair Flake8's warnings & errorsKingPoo1-1/+1
Change-Id: I67e71bc37c0464a0714e1e59b3402973786e4aa6 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-11-15make improvement about util/check_valid.pyHarry Huang1-46/+95
Change-Id: Ib1f22eb180e6df138b5891ef5ca070224ace219e Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2016-11-11Merge "autopep8 make py files more standard"Justin chi1-6/+16
2016-11-09autopep8 make py files more standardKingPoo1-6/+16
Change-Id: Ibaa74a1f508b28548668e764d1860393caa356d4 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-11-10Rename pip-ops to pip-openstackliyuenan1-1/+1
Change-Id: Ie806f15b75ce409fc9283d5c0c0bc6691b430b27 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-11-08Split the Openstack's pip from pipliyuenan1-0/+1
JIRA: COMPASS-491 Change-Id: Ief6df7da1b3729beb2ac56ff1cfd14a44c71ef21 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-10-13fix bugs in /util/check_valid.pyHarry1-1/+1
Change-Id: I0d3907a97dc3676a44653125eadb953336677c1c Signed-off-by: Harry <huangxiangyu5@huawei.com>
2016-09-23Add ip and mac valid check functionalityHerry Huang1-0/+96
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-02-27bugfix: nfs space is too small on compass core, need make it biggercarey.xu1-17/+14
JIRA: COMPASS-320 Change-Id: I54876943b4ff0a70cd7fac1e05f48aa06b0f1aa9 Signed-off-by: carey.xu <carey.xuhan@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>
2015-12-22install compass-core in centos7baigk2-82/+173
JIRA: COMPASS-208 Change-Id: Ie98615df37115beaa0ad8f744cc87162452af751 Signed-off-by: baigk <baiguoku@huawei.com>
2015-10-10bugfix: libvirt_type should be kvm when host is barebetal modebaigk2-3/+61
JIRA: COMPASS-81 Change-Id: Iba3cb182a3e461ab89eb40fdba7800b8b2a1fc3e Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-10adjust iso and ppa path in compass.isobaigk1-1/+2
JIRA: COMPASS-40 Change-Id: If10ec4be9613303584d5ca8bfdfe9b4790ac1d46 Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-08Build improvement for speedup and using public repobaigk2-0/+277
JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk <baiguoku@huawei.com>