17 Commits

Author SHA1 Message Date
Jeffrey Zhang
b64198cce0 Moving jobs to kolla repo
This is zuulv3 migration patch. This patch only implement build jobs.
Deploy jobs will be pushed in another one.

Partial-Bug: #1720601
Change-Id: Ib9157ed132820d752ef1dbd7a53353ebd68b1934
2017-10-19 10:34:03 +08:00
Christian Berendt
9748226688 Create swapfile only on nodepool nodes
TrivialFix

Change-Id: I73d208d2a52c018ad6027f811c6b3a2eee802015
2017-09-11 09:30:41 +00:00
Eduardo Gonzalez
d0a5ff1050 Fix gates out of disk space
Sometimes gates fails due lack of space,
post merge jobs gates fails always for oraclelinux
binary, not being able create a tarball registry.

This change mounts a second disk in opt and moves
registry data to opt.
Disk format commands are excepts from devstack-gate:
dc49f9e6eb/functions.sh (L306)

Closes-Bug: #1713652
Change-Id: I883e51042841709eb9ab348cfdce9fecbd4fb890
2017-08-29 19:52:07 +00:00
Surya Prakash Singh
6566ace236 Changed as per the standard convention set to use "."
When we have to source a script file use . instead of source
For Reference follow below link:
https://docs.openstack.org/contributor-guide/writing-style/code-conventions

Change-Id: Icc6a692d37e8a5bc1146d803c873505cbf6cd03f
2017-08-28 09:27:45 +00:00
Jeffrey Zhang
cf58a12fb0 Use latest docker ce in gate
Change-Id: I1cb6189cec2704edfc461538ef593d38e81ca343
2017-07-18 09:29:02 +08:00
Mohammed Naser
3d373e9812 Update Docker to 1.13.1
There were a few issues blocking Kolla from going up to the
latest version of Docker which is 1.13.  Most of these issues
seem to have been addressed by 1.13.1.

This patch updates the version installed by Kolla to 1.13.1
for the testing infrastructure to prevent the following
bug which is causing gate failures:

https://github.com/docker/docker/issues/28336

Change-Id: I0d3569b589ee792c9aa6eaa7c539219fcc784271
2017-03-15 18:24:03 -04:00
Yao Lu
0bf3a99713 Fix spelling mistake in setup_Debian.sh
TrivialFix

Change-Id: I4782a64dc1ad97c089d1ceb8b43a06bca37c662f
Signed-off-by: Yao Lu <lu.yao135@zte.com.cn>
2017-01-23 06:11:39 +00:00
Jeffrey Zhang
85d218ec44 Fix the gate failure
* Push images all the time
* Pin docker-engine version

Change-Id: Ie778f719655c1136e563ede9e494b37817e247fa
2017-01-20 01:56:36 +08:00
Sam Yaple
a81d48e703 Switch Ubuntu to overlay2 docker driver
With 4.4 kernel we can use the improved overlay2 driver instead of
btrfs for significantly better performance when creating layers.

Change-Id: I3b0dfd6db5298dfb34ec160eed910ca76feeb423
2016-12-19 02:54:38 +00:00
Michal (inc0) Jastrzebski
069d1a2bfb Run docker registry in gate
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-29 20:45:17 +00:00
Christian Berendt
a0dc58e099 Use sudo to create loop device on gate nodes
TrivialFix

Change-Id: Iaa8ff2592d89a91081383e1f9c23c860bb73bba5
2016-09-30 12:30:32 +02:00
Jeffrey Zhang
5878757d26 Fix the Ubuntu Xenial build gate
Ubuntu xenial use systemd service manager. Change the setup_Debian.sh
script to handle this.

Change-Id: I1f6487b73b1635e6dce0c68d3d7e1a158b427797
Partial-Bug: #1612887
2016-08-15 10:07:35 +08:00
Dave Walker (Daviey)
334ef7d540 setup_{RedHat,Debian}.sh, make more idempotent
Previously, when either setup_{RedHat,Debian}.sh was ran
multiple times a mess was created due to multiple loop
devices being setup.

This change now looks to see if '/docker' or '/swapfile'
already exist, and not re-create them if they do.

*However*, /var/lib/docker (/docker) is still wiped - but it
means that the script can run and bring the system into a
constant vanilla state.

Change-Id: I169662fa04c2bf644672ca75c3ee579795943727
Closes-Bug: #1586563
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2016-06-07 11:10:07 +01:00
Swapnil Kulkarni (coolsvap)
435b21b90d Update ubuntu dockerfiles for formatting
Change-Id: If4be00b937e14ec93443dcb7249cf17099d57cbe
Closes-Bug: #1569417
2016-05-26 04:09:22 +00:00
SamYaple
74cd09a3fc Add retry function for Docker keyring
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-08 03:58:23 +00:00
SamYaple
e8d66766f0 Fix gate for docker 1.10
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-06 06:48:53 +00:00
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