aboutsummaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2016-02-14Merge "Fix non-root deploys"Jenkins1-3/+11
2016-02-14rabbitmq_data container is removedAllen Gao1-1/+1
TrivialFix Change-Id: I5168191182c249df68fd0b5c70a778f223326974
2016-02-12Fix detect_distroSamYaple1-5/+8
It was run before ansible was installed and did not properly fail. This prevented the mirrors for apt from being properly used. TrivialFix Change-Id: I5331020993b62c8635a4a97dc3a3d2e01e3d4360
2016-02-12Fix non-root deploysSamYaple1-3/+11
TrivialFix Change-Id: Id0e7cf9e1c0c4259b8a50c39e95214103256517b
2016-02-12Merge "Use Infra provided mirrors in gate"Jenkins1-1/+18
2016-02-10Trap error exit in deploy aio scriptJeffrey Zhang1-2/+2
This make sure the check_failure called whenever the script exits unexpectedly. TrivialFix Change-Id: If38e9ad42810deec48afd3f8b57387ae6ffd926c
2016-02-09Merge "Increase ansible verbosity during gate deploy"Jenkins2-4/+12
2016-02-09Add all neutron agents to cleanup-containers scriptMartin André1-1/+1
When breaking neutron-agents into thin containers, we forgot to update the cleanup-containers script. TrivialFix Change-Id: Idad2eb73a4de7c66109ad5bffcce3173970e2af9
2016-02-08Increase ansible verbosity during gate deployMartin André2-4/+12
The gate currently doesn't provide any context when ansible fails. This commit adds a new --verbose option to `kolla-ansible` that is passed to `ansible-playbook`, and sets the default to -vvv for `kolla-ansible deploy` in the gate. TrivialFix Change-Id: If248a4186b140e1ec0d2e787c27481cec7e81eec
2016-02-08Use Infra provided mirrors in gateSamYaple1-1/+18
Both apt and pip mirrors are added here Related-Id: I26f5fc5cec224cf4f4ea361e0f71cecbf320fbb0 TrivialFix Change-Id: Ib3cb1d2c6fb27887e3ea819d277e21ea3a530f56
2016-02-08Add retry function for Docker keyringSamYaple1-1/+17
Sometimes the keyserver has a mirror failure which results in a failed gate. Add a retry to help prevent that failure. TrivialFix Change-Id: I143626dd6d799b4ea0f82f6649d2155c2f45a115
2016-02-06Fix gate for docker 1.10SamYaple2-1/+3
Docker 1.10 has broken the gate and this patch will correct that breakage. The issue comes with rsyslog. Due to a commit in Docker 1.10 [1] we must change the way we get the log socket for rsyslog. The /dev/ folder will no longer populate as we used it. So instead we simply make a new socket in a path we control and share that to the correct location in the containers. Additionally, adjust the gate for new Docker daemon. [1] https://github.com/docker/docker/pull/16639 Partially-Implements: blueprint kolla-upgrade Change-Id: I881a2ecdf6d7b35991e1d38a3f3e60d022d6577f
2016-02-05Merge "Fix the ugly base directory path"Jenkins1-1/+1
2016-02-05Merge "Rename kolla_ansible to kolla_toolbox"Jenkins1-1/+1
2016-02-05Fix the ugly base directory pathAllen Gao1-1/+1
Remove the '..' in the path like: /home/jenkins/workspace/gate-kolla-dsvm-deploy-centos-binary/tools/../ansible/inventory/all-in-one TrivialFix Change-Id: I80724a9e876ed1826c65e08b55cfa08124d70eb9
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple1-1/+1
This change is needed for clarity. We have a kolla-ansible script. We have a kolla-mesos repo. We plan to have a kolla-ansible repo. Already we have had far too much confusion about whether we are talking about the container or the project. Naming this kolla-toolbox eliminates all of that confusion and its probably a bit more accurate of a name too. Closes-Bug: #1541053 Change-Id: I8fd1f49d5a22b36ede5b10f46b9fe02ddda9007e
2016-02-02Validate that all the containers are startedJeffrey Zhang1-8/+12
Container maybe exit after deployed. But the print_failure never runs if the kolla-ansible run success. This PS checks all the containers status after deploy and failed the test if the container status is exited TrivialFix Change-Id: Ia461b280855eda500e143ee1d6cfd5f215eaf6fe
2016-01-28Update cleanup-containers to remove manila containersMauricio Lima1-0/+1
Change-Id: Ie7a53396b03ce4e472b5e810a02ccdfc9bd8aacd Partially-Implements: blueprint enable-manila-containers
2016-01-27Add the keyfile option to decrypt the passwords.ymlAllen Gao1-2/+11
The passed keyfile path is used to decrypt the passwords.yml which encrypted by the ansible vault. Partially-Implements: blueprint encrypt-sensitive-info DocImpact Change-Id: Ifaebf464478cde99e896c13b375cfaf9282ee576
2016-01-27Add the missed long option tagsAllen Gao1-1/+3
And use variables for options. TrivialFix Change-Id: I6cf8612b4e15ef263d2f5b2dbacc186ccd16871b
2016-01-26Merge "Convert gate to file backend rather than partition"Jenkins6-0/+288
2016-01-25Expose the ansible-playout tags parameterJeffrey Zhang1-3/+7
we can deploy specific services by using tags feature. It is very useful, especially in develop/test stage. TrivaiFix Change-Id: I21cc55e6f1a32a5c57570bc2c2fb9b084e513af8
2016-01-21Convert gate to file backend rather than partitionSamYaple6-0/+288
The existing gate partitioned a disk for use with docker, depending on the gate it would use the swap disk (RAX) or a spare disk (HP). However, with the new gates (Bluebox + OVH) there is neither a spare disk nor a swap disk. This leaves us with one choice: File based loop device. This patch creates a file at /swapfile to ensure we have swap. It creates a file at /docker to ensure we have a loop device for Docker. Right now the /docker file is 10GB and the /swapfile is 4GB due to size limitations in the gate across all servers and types. This has proven to be enough space for all our current tests. Additionally, reduce the number of threads the gate uses to 4 to prevent the lockup and hour timeout we have been seeing as more recently in the gate. The scripts that setup the gate are moved to the tools directory rather than the tests directory to match the structure of the other projects. Partially-Implements: blueprint functional-testing-gate Change-Id: I3e370f2382b6df36103d8b2ceda9b21d9b4229d5
2016-01-21Merge "Delete __init__.py in tools"Jenkins1-0/+0
2016-01-21Delete __init__.py in toolsjing.liuqing1-0/+0
In general, the tools is some scripts, not a python module. TrivialFix Change-Id: I638e4d8a347dbe6e4faa395cae708b939ec4cc26
2016-01-21kolla-ansible: refactor the command optionsAllen Gao1-5/+6
TrivialFix Change-Id: I511f463250d1472c831aa3e5b126dafb36ce79c4
2016-01-20refactor the cleanup containersAllen Gao1-10/+10
TrivialFix Sort the containers, remove *_data ones, etc. Change-Id: Ic7923828517da954e7c8802d6cf5918e425df255
2016-01-20kolla-ansible: add prechecks subcommandAllen Gao1-0/+6
TrivialFix Change-Id: Ifb0ca3383cd04f5ff6baeb30ae6996d450d5c579
2016-01-19Merge "kolla-ansible: add post-deploy subcommand"Jenkins1-2/+8
2016-01-18Remove the not used setup_docker.sh fileJeffrey Zhang1-73/+0
TrivalFix Change-Id: I18a69d31c1b3442c79b7ffaab7259363600727e2
2016-01-15kolla-ansible: add post-deploy subcommandWanlong Gao1-2/+8
It is more convenient to add a subcommand instead of assigning playbook path manually. Change-Id: Ia2f27a0f44eb719b28d5e7f9762dc47186eeb0e6
2016-01-13Merge "Standardize bashate and add linters"Jenkins1-0/+7
2016-01-13Add kolla-ansible upgrade commandSamYaple1-0/+4
Change-Id: I432802fed979c9e42fb51703ce830f0fd8debc1e Partially-Implements: blueprint upgrade-kolla
2016-01-13Standardize bashate and add lintersSamYaple1-0/+7
The linters gate combindes pep8 and bashate (and then any other linters we want). This changes bashate to be a sript rather than doing a script inline. This matches the way other projects (and project-config themselves) uses bashate [1]. Once a change upstream merges we can remove the redundant pep8 and bashate gates. [1] https://github.com/openstack-infra/project-config/blob/master/tox.ini#L11 https://github.com/openstack-infra/project-config/blob/master/tools/run-bashate.sh Related-Id: I2afa7931bf3e18798b95a8af33ccf5ef761c4ad5 TrivialFix Change-Id: I2ea2c1156e1b4de008f19e333e2740795dc406de
2016-01-06make the kolla-ansible python3 compatibleJeffrey Zhang1-1/+1
* remove unused sys * user print() for python3 compatible TrivalFix Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374
2016-01-04Allow common role to pull imagesSamYaple1-2/+7
Change-Id: I3de01770eca6b7e681b7964a6d6e15564065aaea Partially-Implements: blueprint pre-pull-images
2015-12-14Remove ironic containers in the cleanup scriptArtur Zarzycki1-1/+2
TrivialFix Change-Id: Ia37369acf8bf7ca7f49fd647f40c6e98f40e93d8
2015-12-09Remove cinder containers in the cleanup scriptSidharth Surana1-1/+2
Change-Id: I29b788a71f30d133e66759a5de2ecd43222313a8 Closes-Bug: #1524557
2015-12-02adds tools/cleanup-containers regex supportSean Mooney1-20/+24
- this change extends the tools/cleanup-containers script to support a grep extended regex as a first paramater. - if tools/cleanup-containers is called with a grep extended regex string as a first paramater, only containers mataching that regex will be cleaned up. - e.g. tools/cleanup-containers "neutron|openvswitch" will cleanup all container whoes name contains either neutron or openvswitch. Change-Id: Iadb68c0a8de40e9ec2c0a27568e3a372ec0e8303 Closes-Bug: #1522168
2015-11-29Output unique admin id of user and project listHui Kang1-2/+2
Change-Id: I8983768b6fafdd70f4c8aa7bdcf91af4f50efe70 Closes-Bug: #1520982
2015-11-28Remove openvswitch_data container in the cleanup scriptHui Kang1-1/+1
Change-Id: Iec94e254e8df501005fd3660c80e3c2eefbb05bb Closes-bug: #1520833
2015-11-23Remove hardcoded MAINTAINER in DockerfilesSwapnil Kulkarni (coolsvap)1-1/+1
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
2015-11-13Merge "Add Ansible support for Magnum"Jenkins1-0/+1
2015-11-13Add Ansible support for MagnumMichal Rostecki1-0/+1
Change-Id: Idb25ac4d3148c9b9400cf675ac2e47d35cce6224 Implements: blueprint ansible-magnum
2015-11-09Fix validate-all-maintainer.sh to look for Dockerfile.j2Angus Salkeld1-2/+1
And fix the fallout. Change-Id: Iccad3f4fdb0a6a7c14246df3408cae0425b833a5
2015-11-06Merge "Few improvements in Kolla tools. Added Ubuntu support."Jenkins1-0/+2
2015-11-06Few improvements in Kolla tools. Added Ubuntu support.Kirill Proskurin1-0/+2
pip install default prefix in Ubuntu is /usr/local, and Kolla tools scripts didnt respect that. So I added few OS checks in this scripts. I improve config path check in build.py. Added more verbose error if we can't find config directory. Change-Id: Ide521ed205b0dc1fc27e237a9a8f4da0168e664f Closes-Bug: #1512302
2015-10-28Use kolla_internal_address in the example rc fileHui Kang1-1/+1
Change-Id: I4ec1b5208a347a45ff729e1d8bff6fe6e37b925e Closes-Bug: #1509865
2015-10-22Remove memcached container in cleanup-containers toolMichal Rostecki1-1/+2
Change-Id: Ic56b7b2fd6cd7d191cc364a37f3ebbc44950932e Closes-Bug: #1508780
2015-10-06put conatiner name to array in cleanup-containersKuo-tung Kao1-4/+5
The brace in string variable will not be expanded in some case. Put conatiner name into array. Change-Id: I2fb16e7352bd579f207efce0fb9b2565a1e7236d Closes-Bug: #1502467