aboutsummaryrefslogtreecommitdiff
path: root/tools/setup_gate.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-01-03Merge "Clean up kolla-ansible related files from Kolla"Jenkins1-2/+0
2016-12-29Clean up kolla-ansible related files from KollaSayantani Goswami1-2/+0
- Remove globals.yml and passwords.yml files. - The gate was still using these files from the kolla directory. Modified the gate to prevent using these files from the kolla directory. - Modified the deploy_aio.sh file to populate passwords in passwords.yml using kolla-ansible. Change-Id: I1ed7849d54cab6d5a9217dced73327ea13f06636 Closes-Bug: #1653035
2016-12-28Merge "Removed percona from ubuntu repos"Jenkins1-1/+0
2016-12-23Run sudo with -H parameter to set the proper home dirJeffrey Zhang1-1/+1
Change-Id: Ib273f50bd7fb889e0025f58c11dd89f39ca8e4ca Closes-Bug: #1652112
2016-12-20Removed percona from ubuntu reposSam Yaple1-1/+0
16.04 provides the percona-xtrabackup scripts in the main repos, so the specific percona repo can be removed. Unfortunately, mariadb10.0 does not build with galera built-in. So until ubuntu packages mariadb10.1, we will be dependant on the external repos for mariadb with galera built in. Labels keys so they are easily identified in the future. In Jinja2 the comments cannot go inline while generating the list. Change-Id: I5e6c2f884c8d59bbc574b71ac731d1b4db18b68c
2016-12-08Fix dir specs typo errorjeckxie1-1/+1
Change-Id: I9426b176a0d7af452c569590b771e4661b4652a2
2016-12-02Merge "Run docker registry in gate"Jenkins1-0/+7
2016-11-29Run docker registry in gateMichal (inc0) Jastrzebski1-0/+7
Part of plan to have registry-like behavior in deploy gates. First part is to run docker registry locally. Next one will be pushing built images to it, tar.gz whole registry (separate per distro and type) and use publisher jobs to upload whole registry to tarballs.o.o Change-Id: I81f154fe6ef58ef93815f42496aef382d32f6774
2016-11-29Use Dockerfile customization instead of include_headerJeffrey Zhang1-3/+6
include_header is marked deprecated and will be removed in the future Change-Id: I170f7657bebe99f31b04c2c80f5a1c0dbd58000f
2016-11-04Merge "Improve playbook to setup gate nodes"Jenkins1-1/+1
2016-10-22Unpin ARA, update callback locationDavid Moreau-Simard1-2/+2
ARA 0.9.2 was released which deprecates the previous callback location in favor of a new one. The deprecated location still works but let's move to the new one right away. Change-Id: I8a10d5855ab6f813e52cc6efce5bcfe91d9c3f92
2016-10-20Pin ARA to 0.9.1 temporarilyDavid Moreau-Simard1-1/+1
The next release of ARA (0.10.0) contains a change to the callback plugin location that /should/ be backwards compatible but let's control the update to the newer version to be safe and avoid breaking the gate needlessly. Change-Id: I32176166e8ebcbfdf0baa8bd7ec30e5ec6d795a5
2016-10-20Merge "Use xenial repos for Ubuntu in the gate"Jenkins1-2/+2
2016-10-19Use xenial repos for Ubuntu in the gatePaul Bourke1-2/+2
The gate jobs are using Xenial as the base OS so it seems we should be using the same non-infra repos as our base image. TrivialFix Change-Id: I6e5d27364054c474c16120a3195cae819861c8a1
2016-10-17Use correct Kibana version on the gatesChristian Berendt1-1/+1
We bumped the Kibana version from 4.4 to 4.6 with Ia18cb89e0951359226add5cbd96d3a91c7fcfd8a. This version should be used on the gates as well. Change-Id: I21ccac9a12e4b604d3cf336c6263f2e4cd925524 Closes-bug: #1634049
2016-09-29Improve playbook to setup gate nodesChristian Berendt1-1/+1
* use become instead of sudo * use file instead of shell to change file modes * rename setup_nodes.yml to playbook-setup-nodes.yml Change-Id: I69eda1f034b97d13be76efc91458b6d762c76baf
2016-09-11Add ara to collect ansible playbook running staticsJeffrey Zhang1-0/+7
TrivialFix Change-Id: Id2a13be9c04920b5326534005750286f842aa731 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-09-09Change ceph version to JewelMichal (inc0) Jastrzebski1-1/+0
This patch changes version of ceph from hammer to jewel. Also removed versionlock as it seems we don't use it in ubuntu, and actually might be risky if we miss security patch on ceph. Change-Id: Ib8f88c2f914a4b635e59a509fa0194605eb73165 Implements: blueprint upgrade-ceph-to-jewel
2016-09-01Use a local docker image namespace in gateJeffrey Zhang1-0/+3
use different a docker namespace name in case it pull image from hub.docker.io when deplying in gate TrivialFix Change-Id: I643000e5d9e597a254a4f12c0c10186d4eb20429 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-20Fix Ubuntu source gate deploymentJeffrey Zhang1-2/+17
In CI environment, MySQL-python wheel package has a wrong _mysql.so file, which is not compatible with Ubuntu. Disable wheel index in the CI for pip. Closes-Bug: #1615231 Change-Id: I127ebb017e09a5bf245e0fdad9bf052203e68e55
2016-07-12Use local mirror of ceph and ucaSteven Dake1-2/+2
Change-Id: I75962ec416a8e4bedb0ad85c93b46cdcd80e8a72 Partially-Implements: blueprint mirrors
2016-05-26Merge "Bump the ansible to 2"Jenkins1-1/+1
2016-05-24Bump the ansible to 2Jeffrey Zhang1-1/+1
DocImpact Change-Id: I3cdfbf84919de80f535c030bd146787ecda40dec partial-Implements: blueprint ansible2
2016-05-23Merge "Fix the rabbitmq crash on CentOS binary and source deploy"Jenkins1-8/+7
2016-05-22Fix the rabbitmq crash on CentOS binary and source deployJeffrey Zhang1-8/+7
this is a wordround fix for the rabbitmq failed when deploy on CentOS in the CI gate. the ideal fix should set the hostname in setup_gate.sh script. But it do not work as expect with unknown reason Partial-Bug: #1581301 Change-Id: Ia692794aadf11d3ebe75e4e2bf6b42d9a5f3996f
2016-05-18Collect more info from the gate for debugJeffrey Zhang1-1/+1
* enable the openstack logging debug in the gate * copy the /etc/kolla files out * copy the /var/log files out TrivialFix Change-Id: I9cf5fa773ec5f41c6ea93325076a64dd24ce22da
2016-04-24Remove the eth1 up and down manually in the rax-ord nodeJeffrey Zhang1-8/+0
Change-Id: I8372df9869df6e83b7a176184ce93da633525cbd Closes-Bug: #1574134
2016-04-19Workaround broken nodepool to unblock gateSteven Dake1-0/+11
Sed and check the length of the IP addresses in the private list. If none found, copy the public to the private. Change-Id: I05e4798aa301e022de7d5097d503d8213f2b66a8 Closes-Bug: #1571275
2016-04-14Enable unbuffered output for ansiblePaul Belanger1-0/+3
This will allow ansible to output to the console log in realtime. Closes-Bug: #1569769 Change-Id: If4e4ccd9911d9fa9031eed8419bb5a1367c99e49 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-26Fix typos in KollaNguyen Hung Phuong1-1/+1
TrivialFix Change-Id: I21f51811ec4256d9b6b2e219de6201e4811dfc5a
2016-03-21Merge "Fix rax-ord commands"Jenkins1-2/+2
2016-03-21Merge "Add generate_passwords.py to generate passwords"Jenkins1-0/+2
2016-03-21Fix rax-ord commandsSamYaple1-2/+2
It isn't always possible to get a rax-ord gate. Last patch wasn't correct. TrivialFix Change-Id: Id94264166e0914f038f32f3f9b68e463aa15ccd3
2016-03-21Add generate_passwords.py to generate passwordsSamYaple1-0/+2
As with all tools, this is a first pass at the generation. Perhaps we even want to move this into kolla/kolla/cmd and be generated with tox itself in the future. This tool, when run, will only populate empty fields that have no values meaning that it is safe to run repeatedly on the same file. Of note, there is no way to preserve comments in the file after it has been processed by the yaml parser in python. Comments and sections will remain in the passwords.yml template for additional documentation if the user wishes to populate the file themselves. Use SystemRandom and clean up the docs a bit to not use pronouns. Co-Authored-By: Steven Dake <stdake@cisco.com> Closes-Bug: #1559266 Change-Id: I2932d592df8871f1b7811059206d0b4d0553a687
2016-03-21Fix rax-ord gateSamYaple1-0/+8
Change-Id: I169647999b313def30c0605172cf188ef4518cdb Related-Id: Id9ea8c5e402f3a06b9064a939ad4b2e168cd6223
2016-03-18Install Elasticsearch and Kibana packages using yum/apt-getVikram Hosakote1-0/+1
Test results of this patch set are at http://paste.openstack.org/show/490450/. Change-Id: I2957cc70fcca34706ec50a630d785f0630c3f5c0 Closes-Bug: #1553203
2016-03-14Use ubuntu Mitaka repoSamYaple1-1/+1
The rabbitmq-server package is upgraded to 3.5.7 in cloud-archive so we update centos to match The xen-utils package now needs an explict version, xen-utils-4.6 is what is provided by cloud-archive mitaka Libvirt 1.3 is in the ubuntu cloud-archive. This has a new daemon for logging that needs further implementation in newton. For now, it has been disabled within the qemu.conf Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net> TrivialFix Change-Id: I84217824817c484b6800a64cbd7767b127a3098e
2016-03-09Copy the logs out of the containerJeffrey Zhang1-1/+1
Heka logs almost done. When testing, The collected logs can copy to the /tmp/logs folder, which will be handle by the gate. This will be very useful for our gate debug. TrivialFix Change-Id: I06ca8ebd13933bfd15cb2fb5e53fc3038b17b8c3
2016-02-22Add elasticsearch repo to gateSamYaple1-0/+1
TrivialFix Change-Id: I0f083654df901fb765e9517308ac94316859d971
2016-02-18Launch VM in gateSamYaple1-1/+2
Change-Id: I18b1015ca62a352e193ef01bd49cd6d6f9372193 Partially-Implements: blueprint functional-testing-gate
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-08Use Infra provided mirrors in gateSamYaple1-1/+18
Both apt and pip mirrors are added here Related-Id: I26f5fc5cec224cf4f4ea361e0f71cecbf320fbb0 TrivialFix Change-Id: Ib3cb1d2c6fb27887e3ea819d277e21ea3a530f56
2016-01-21Convert gate to file backend rather than partitionSamYaple1-0/+92
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