25 Commits

Author SHA1 Message Date
Jenkins
c06ae5455c Merge "Fix publicURL endpoint not found issue in CI" 2016-07-05 12:03:41 +00:00
Jeffrey Zhang
186271dba4 Fix publicURL endpoint not found issue in CI
Partial-Bug: #1587226
Change-Id: I8cec44fdd9e6b00fcffe5dd59cbe8c69214b40b8
2016-06-29 23:21:03 +08:00
Jeffrey Zhang
4cc256d9d4 Remove the pull action in the deploy_aio CI
In the current CI, we have no regitry service. when running pull action,
it will pull image form docker.io where has no such image too.

The right direction is set up a local regitry service, then push and
pull image from there.

TrivialFix

Change-Id: I3ebea5cdb539cb700487a2dbffa894fcce8f8723
2016-06-15 16:02:49 +08:00
Jeffrey Zhang
b1f4c4ed79 Run more kolla-ansible task in the gate
Change-Id: I99871d3d86e5ab56be95dd9865f17f7d525704a5
Partially-Implements: blueprint functional-gating
2016-06-08 22:44:52 +08:00
Jeffrey Zhang
43abb15c25 Collect more info from the gate for debug
* 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-05-18 07:03:53 +08:00
Jeffrey Zhang
1e6c033adf Fix the virt_type in the gate
Change-Id: Iafa27677fc2ed2103c3ac8efeb0f0e13330a95f4
Closes-Bug: #1581021
2016-05-13 08:24:44 +08:00
Jeffrey Zhang
63145ab470 Fix the copy docker log typo
Change-Id: I86259d9b997cd10a11079c4834f135d58570968d
2016-05-07 14:21:36 +08:00
Jenkins
33ab6f8cc1 Merge "Fix the gate lying" 2016-05-06 14:58:51 +00:00
Jenkins
85134c9e4f Merge "Handle multi Ethernets case in the gate" 2016-05-02 14:28:51 +00:00
Jeffrey Zhang
6ffe08d76e Fix the gate lying
In some case, the gate is always green even when failure exist.

Closes-Bug: #1568389
Change-Id: I64116ba33ebf96268c28abb6a7091752a346f29b
2016-04-28 01:06:58 +00:00
Jeffrey Zhang
00720db254 Handle multi Ethernets case in the gate
rax-iad node has two Ethernets, but others not. Detect the private
Ethernet by using script.

Closes-Bug: #1561563
Change-Id: I7c5d241f2b1a21f97512e52c487d875dd270011b
2016-04-28 01:05:42 +00:00
Jeffrey Zhang
f93ed9a935 Use a random virtual_router_id in the keepalived
Use a random virtual_router_id in case there are multi keepalived
instances exist at the same time in the gate.

Closes-Bug: #1568818
Change-Id: Iebb3dec088a21820e641b63bb2a5f40586d1df8c
2016-04-11 20:14:13 +08:00
Jenkins
27a4268216 Merge "Check relevant logging mechanism in the gate" 2016-03-22 15:26:02 +00:00
Paul Bourke
c25002c3d8 Check relevant logging mechanism in the gate
Avoids errors about missing journalctl on Ubuntu and missing upstart on
redhat bases.

Closes-Bug: 1554724

Change-Id: I80bb55688398df85f9020d5cfe5dda757fc5a0ef
2016-03-22 14:43:07 +00:00
SamYaple
e9b9a84157 Fix permissions for log extraction in gate
Some gates are failing to properly pull all logs out resuling in an
UNSTABLE status.

This resets all logs to 777 perms to ensure readability by jenkins.

TrivialFix

Change-Id: Ib92c5bfea5fa8bcc6380ad8aa6001b13888717ac
2016-03-19 15:36:49 +00:00
Jeffrey Zhang
12d6eeceb5 Copy the logs out of the container
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-03-09 09:34:59 +08:00
SamYaple
d3cfb2052a Change kolla_internal_address variable
Due to poor planning on our variable names we have a situation where
we have "internal_address" which must be a VIP, but "external_address"
which should be a DNS name. Now with two vips "external_vip_address"
is a new variable.

This corrects that issue by deprecating kolla_internal_address and
replacing it with 4 nicely named variables.

kolla_internal_vip_address
kolla_internal_fqdn
kolla_external_vip_address
kolla_external_fqdn

The default behaviour will remain the same, and the way the variable
inheritance is setup the kolla_internal_address variable can still be
set in globals.yml and propogate out to these 4 new variables like it
normally would, but all reference to kolla_internal_address has been
completely removed.

Change-Id: I4556dcdbf4d91a8d2751981ef9c64bad44a719e5
Partially-Implements: blueprint ssl-kolla
2016-02-26 20:00:09 +00:00
Éric Lemoine
0417844b8d Remove Rsyslog entirely
Partially implements: blueprint heka

Change-Id: I1322d2dc870e6f8fe052926995d993e8a08a25db
2016-02-23 01:45:23 -08:00
SamYaple
0cb1d969f4 Quick gate fix
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-19 17:59:30 +00:00
SamYaple
ae4407a2ab Launch VM in gate
Change-Id: I18b1015ca62a352e193ef01bd49cd6d6f9372193
Partially-Implements: blueprint functional-testing-gate
2016-02-18 19:55:24 +00:00
SamYaple
2c45bef065 Reduce gate resource usage
Change-Id: Ic6cd45ec708efe4f573e19f3bc910717ac3b4fbb
Partially-Implements: blueprint functional-testing-gate
2016-02-16 15:12:38 +00:00
Jeffrey Zhang
7899d00c6f Trap error exit in deploy aio script
This make sure the check_failure called whenever the script exits
unexpectedly.

TrivialFix

Change-Id: If38e9ad42810deec48afd3f8b57387ae6ffd926c
2016-02-10 21:31:48 +08:00
Martin André
bda91649e8 Increase ansible verbosity during gate deploy
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-08 18:18:05 +09:00
Jeffrey Zhang
7ec170a9ff Validate that all the containers are started
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-02-02 19:47:38 +08: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