Commit Graph

43 Commits

Author SHA1 Message Date
Mark Goddard fdd2fb35cb Remove unused scripts
Removed various scripts which were part of previous CI configurations.

Change-Id: I674c3bb89e049638926fcb2ad6577123117b5d32
2019-03-25 11:44:15 +00:00
Ian Wienand d74df2fc11 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Ia4ad8d139eb5b37a9e661a789df13ec300eeee6f
2019-03-24 20:34:01 +00:00
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
Jenkins b1525533b3 Merge "Corrected tmp location of ansible prechecks command" 2017-07-27 07:43:35 +00:00
Surya Prakash Singh b38d6543b6 Corrected tmp location of ansible prechecks command
Just to avoid the confusion in reading the location, improved
the readability.

Change-Id: I2f2ce2f275674ab2dc686d5e4df2701880fbe4c0
2017-07-25 10:01:21 +05:30
Eduardo Gonzalez 8410edc50d Add openstack logs in deploy gates
Change-Id: I9195ecb2ab3d20714cb533496e914124c5933ad2
2017-07-21 09:33:44 +01:00
Michal (inc0) Jastrzebski 6ed623d74b Fix deploy gate
Enabling multiscenario gates broken deployment gates in Kolla.
Sorry:(

Change-Id: I46e6cea62555145d8e9d6962e9bb0f036077a305
2017-06-21 08:09:28 -07:00
Michal (inc0) Jastrzebski cac89f9f65 Fix kolla deploy gates
Since we changed kolla-ansible gating, we need to change logic in kolla
too

Change-Id: Ie9196d01b9ce1ca0199cd657cecd4ca33a1f050e
2017-06-08 20:48:06 -07:00
Mohammed Naser 4c7a4099ca Remove global privilege escalation for deploy_aio.sh
At the moment, deploy_aio.sh is called with sudo which results
in the environment being wiped.  This means that all Zuul
environment variables are removed and therefore when zuul-cloner
runs to checkout the branch of kolla-ansible, it will always
fallback to master as ZUUL_BRANCH is unset.

This patch removes the global usage of sudo in the tox.ini file
as there is existing usage of sudo in the bash script itself. This
will mean that we will only escalate privileges when needed rather
for the whole script and the environment variables should be passed
on properly resulting in the matching release of kolla-ansible being
checked out.

Closes-Bug: #1673756

Change-Id: I477a843e696be7136c020be6408afea01967879d
2017-03-18 14:13:53 -04:00
Sayantani Goswami c07d95e1af Clean up kolla-ansible related files from Kolla
- 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-29 04:58:44 +00:00
Jeffrey Zhang cc6d491c39 Use kolla-ansible deploy_aio in gate
Change-Id: I5351b7a6ee480be78e26af42ca724b1b6b664b38
2016-11-24 12:28:48 +00:00
Jeffrey Zhang 91f0ff1c91 Run init-once in kolla-ansible folder
init-once is removed in kolla project

Change-Id: I088c90a332a52520b17ca24cedf0ed0f710889d9
2016-11-20 10:01:30 +08:00
Jeffrey Zhang efa26ed741 Use kolla-ansible for deployment
Change-Id: I2eb821f88d47b665615ad56319dd40681f7d9967
2016-11-18 11:03:42 +08:00
Jeffrey Zhang c8f55a6d08 Use openstack_service_workers variable in gate
set openstack_service_workers to 1 in gate.

Closes-Bug: #1640416
Change-Id: I59560fd543f25e0b60b3f11f1c941adf595b3131
2016-11-09 08:42:51 +00:00
caoyuan ffa552b282 Update the way of loading the admin-openrc.sh file
TrivialFix

Change-Id: I3cfa94d9f6202664a06c24d691376eb8759b922a
2016-10-29 22:21:26 +08:00
Jeffrey Zhang 37f36af5f5 Print all docker images in gate
TrivialFix

Change-Id: I65ba1828fccee52194eb2b76c4055c922236d97b
2016-10-24 20:16:22 +08:00
Jeffrey Zhang cae4d364ad
Add ara to collect ansible playbook running statics
TrivialFix

Change-Id: Id2a13be9c04920b5326534005750286f842aa731
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-09-11 18:39:28 +08:00
Jeffrey Zhang a912b7909a
Use a local docker image namespace in gate
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-09-01 22:17:57 +08:00
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