summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2016-02-22Make cleanup-containers remove Heka volumesÉric Lemoine1-1/+3
TrivialFix Partially implements: blueprint heka Change-Id: Ie8f393515c464020f079db41c05d023319920136
2016-02-22Make cleanup-containers remove bootstrap_hekaÉric Lemoine1-1/+1
TrivialFix Partially implements: blueprint heka Change-Id: I5f91056590250f2a477018c1773905b412536f24
2016-02-19Add Heka to common roleÉric Lemoine1-0/+1
Partially implements: blueprint heka Change-Id: I9ddad09b3f16b323c7ed535243458b0de6620cdb
2016-02-19Quick gate fixSamYaple1-6/+9
I accidentally merged a patch with +W that does not work on all gates that infra uses. Specifically it breaks on RAX for unknown reasons. This is a quick patch to not fully revert, but allow the gate to stay green while I work out the issue Change-Id: I02fc66bbc53103f2d71c648d5e2959f10f0130c0 Partially-Implements: blueprint functional-testing-gate
2016-02-19Merge "Keep consistent with others for ironic containers"Jenkins1-2/+2
2016-02-19Keep consistent with others for ironic containersAllen Gao1-2/+2
Make the containers and volumes names of ironic to be consistent with others. Partially-implements: blueprint ironic-container Change-Id: If78b020c81157a948c5c3283f1410bcb6e5c1e61
2016-02-18Launch VM in gateSamYaple2-8/+35
Change-Id: I18b1015ca62a352e193ef01bd49cd6d6f9372193 Partially-Implements: blueprint functional-testing-gate
2016-02-18Also remove the volumes when cleaning up containersJeffrey Zhang1-0/+18
TrivialFix Change-Id: Ia52451d2c0de09ee9dcf79211389a3b1ce4ae738
2016-02-18Merge "Adds support for cleaning up bootstrap containers in the ↵Jenkins1-1/+4
toos/cleanup-containers script."
2016-02-17Fix the mistral services name typoJeffrey Zhang1-1/+1
missing a "_" TrivialFix Change-Id: Id7624f4f35c3c53c068d7c6646b363332363c3d5
2016-02-17Adds support for cleaning up bootstrap containers in theShaun Smekel1-2/+5
toos/cleanup-containers script. Dynamic Ceph OSD bootstrap containers also included. Change-Id: Ifb5b54c5b78a894ed6e8b9980a6eb9919e52364c Closes-Bug: #1515544 Signed-off-by: Shaun Smekel <shaun.smekel@theorem.net.au>
2016-02-16Reduce gate resource usageSamYaple1-5/+37
Change-Id: Ic6cd45ec708efe4f573e19f3bc910717ac3b4fbb Partially-Implements: blueprint functional-testing-gate
2016-02-14Merge "Fix detect_distro"Jenkins1-5/+8
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