Commit Graph

13 Commits

Author SHA1 Message Date
SamYaple
6adb5c0aa5 Convert gate to file backend rather than partition
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-21 22:59:13 +00:00
Allen Gao
cf47e7708c Update docker-py reqs in gate setup
TrivialFix

Change-Id: Idb0447a94a730fbcd822a855c865074817dd11b3
2016-01-20 16:39:58 +08:00
SamYaple
8c5cd011a7 Add some additional debug to gate
This info won't affect gate output as all info is logged to a file.

TrivialFix

Change-Id: Id92c1ebc60937fb376c69541d2f308a9d711c85e
2016-01-12 20:52:58 +00:00
Jeffrey Zhang
781eefeccf Remove the kolla-build.conf
use tox -e genconfig to generate this file

DocImpact

Closes-Bug: #1531202
Change-Id: I3a6e57c3cc48aeb3a45a055b173207ea6e214960
2016-01-07 21:06:22 +08:00
yangyapeng
ff721bb764 Fix grammatical mistake, Changed character from "an" to "a"
Change-Id: I407793db93ce002cb88bb04193b46869e26d63bc
2016-01-04 13:00:25 -05:00
SamYaple
6ca65aba6c Unblock Docker pinning in gate
Docker and docker-py can now be unpinned since Kolla has been
converted to using the kolla_docker module and we no longer rely on
upstream to unblock us.

Change-Id: I6ee2b78c31ef0447da6154b75db381d5cdd55ab6
Partially-Implements: blueprint kolla-docker-module
2016-01-03 16:44:44 +00:00
Artur Zarzycki
dc2ad7d134 Set docker api version to auto
Change-Id: I25d957a2368fa4e52b5fa9253d7ea5ec4046d830
Closes-Bug: #1521949
2015-12-03 11:28:21 +01:00
Sam Yaple
f9ee96f216 Convert gate to Ansible setup
To support multinode we must now distribute our setup to multiple
hosts. Instead of making special rules for this, we are going to
convert our existing setup to Ansible. This way both setup proceedures
take place in the exact same fashion.

Partially-Implements: blueprint multinode-gate
Change-Id: I43ece298bba994e9b5083403ef3cf6d4245cda6d
2015-11-22 18:34:35 +00:00
Sam Yaple
4a7cd7063f We now have a logs publisher
We need to create a directory to allow publishing of logs.

Change-Id: Ieeac5d236b698bedaccb8b5f0bb16f0de9df9386
Backport: Liberty
Partially-Implements: blueprint multinode-gate
2015-11-09 10:59:15 +00:00
Sam Yaple
8e1b0f817a Setup the gate for cross-distro support
Split the gate into two specific scripts to support multiple distros

Add ubuntu script.

Co-Authored-By: Steven Dake <stdake@cisco.com>
Change-Id: I23b9dee409b9e678422cd58525e1836541eb64da
Partially-Implements: blueprint gate-source-builds
2015-08-26 14:17:26 +00:00
Steven Dake
4d85d9d016 Use docker-engine in setup_gate
The fedora version of docker is hacked by Red Hat to have specific
features which we don't want in the gating.  Use the pristine
upstream version from Docker Inc.

Change-Id: Ied219bc3868176f541083e9d42cde7d6cdeeb71d
Partially-Implements: blueprint gate-source-builds
2015-08-10 12:36:09 -07:00
Jeff Peeler
2207f45d9d Disable ipv6 in gate
Saw the error below in gerrit logs:

"Failed to connect to 2610:28:3090:3001:5054:ff:feb9:6ae0: Network is
unreachable" when trying to access fedorapeople.org.

Change-Id: I96603948560bc7ea259235cf3b304b2e64ceb5ab
2015-07-13 13:56:35 -04:00
Jeff Peeler
78b27e3e60 Clean up the image functional test
1. Move setup_docker.sh to tools directory

2. Make a setup_gate.sh that installs necessary packages including
   docker and starts docker.

3. Add logging output.

4. Add default test timeout of 2 hours.

5. Add user to the docker group before running test cases.

6. Run image build as dockerroot group.

This patch has to be one commit to fix the gate in one go.

Co-Authored-By: Steven Dake <stdake@cisco.com>

Change-Id: I83f3cdb1dabf0dfface589c581cb22c155467acc
2015-05-26 15:01:28 -04:00