568 Commits

Author SHA1 Message Date
Jenkins
f5be229ae6 Merge "Update Docker to 1.13.1" 2017-03-30 14:24:02 +00:00
Mohammed Naser
f5a9c8c71c Gate fixes: disable bifrost-base, fix ubuntu base image
At the moment, Bifrost has caused a few failures which have
blocked the gate, the latest of which is documented in the
bug listed below (alongside with another one that caused another
gate failure).

In order to let patches flow though, we're disabling it
from the gate build checks as agreed on the Kolla meeting on
the 22nd of March 2017.  Also, the Ubuntu base image seems
to have a missing /etc/protocols which is created by the
netbase package.  This has been added to the base images.

There are issues with subunit getting a very large log all
at once which causes failures that is causing issues.  We
also enable logging to a local folder which will make
troubleshooting image builds easier to read and avoid
sending a large blob of data to subunit.

Change-Id: Iee1f8b06ec1066015ea5c6a6a245723402e35a6a
Related-Bug: #1674483
Related-Bug: #1673776
Closes-Bug: #1675101
2017-03-22 20:26:28 -04: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
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
Jenkins
22faa6f44e Merge "Using CI mirror host" 2017-02-14 16:44:20 +00:00
Sayantani Goswami
f6cc5348df Fix pushing images to local registry
Adding -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io to the
docker run command in the start-registry script configures the local
registry as a pull through cache. However, pushing of images to the
local registry fails.

Pushing to a registry configured as a pull-through cache is unsupported.
For more information, reference the proxy section in Docker
Documentation (https://docs.docker.com/registry/configuration/)

Corresponding change to the documentation has been made to the
multinode.rst file in the Kolla-ansible repository
https://review.openstack.org/#/c/426858/

Change-Id: I636912f9958490bf751bfa0f449998c61d273241
Closes-Bug: #1659738
2017-02-08 17:40:07 +00:00
Jeffrey Zhang
5c5cc503bd Using CI mirror host
Depends-On: Ib83ed5e437ca868f0e42ce740ad1125d2fa48ff4
Change-Id: I9af17fac07b88badb5db498a940db9356e2e202f
Partially-Implements: blueprint mirrors
2017-02-07 14:24:00 +00:00
Sam Yaple
ab1d757a62 Revert "Removed percona from ubuntu repos"
This reverts commit af7a1da8076f7a253795c2a431b3eeec4cd348d7.

Co-Authored-By: Michal (inc0) Jastrzebski <inc007@gmail.com>

Change-Id: I81df3bf01f618dbc7f771ee2e188eaa562ffe9db
Closes-Bug: #1659981
2017-01-31 03:33:42 +00: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
Jenkins
536f57af2c Merge "Remove custom images" 2017-01-18 13:13:42 +00:00
zhuzeyu
803dbe2f2f Remove Ansible and Globals.yml in diag script
Ansible and Globals.yml have moved into kolla-ansible repo.

TrivialFix

Change-Id: Ie14af3659bf64cc04554ae1d1a74e86656802e0a
2017-01-17 16:55:15 +08:00
Eduardo Gonzalez
95607f162d Remove custom images
Allow remove custom images with a regex

Change-Id: I7f8bbd59509f543150e58165575ad7b530dc38ba
2017-01-16 16:56:48 +00:00
Jeffrey Zhang
08d3ff6f04 Use ZUUL_REFNAME to get branch info during pack registry
1. ZUUL_REFNAME is used in post and release pipeline.
2. change the tarball name to
   <base_distro>-<install_type>-registry-<branch>.tar.gz it is usefull
   in tag pipeline. we will get name like:
   centos-source-registry-4.0.0.tar.gz

Change-Id: I23b16983d02a5758cb251bed8b026ced992559fe
2017-01-13 00:17:00 +08:00
Jenkins
302658210e Merge "Configure local registries to proxy docker hub" 2017-01-11 13:54:31 +00:00
Jenkins
ae7a6f352d Merge "Remove kolla-genpwd from setup.cfg" 2017-01-06 19:57:00 +00:00
Matt McEuen
19b0defb92 Configure local registries to proxy docker hub
Added the REGISTRY_PROXY_REMOTEURL parameter to the registry
creation script, so that the registry will mirror images from
Docker Hub (while still being able to host custom-built images).
Updated the Multinode guide to reflect this.

Change-Id: Ib789241fd2947b06fb0dc5732a0bf28431e1403d
Closes-Bug: #1647436
2017-01-06 19:48:58 +00:00
Jenkins
faea5b9114 Merge "packing and uploading registry" 2017-01-06 18:16:36 +00:00
Paul Bourke
10e649a5f8 Remove kolla-genpwd from setup.cfg
This is now in kolla-ansible
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>

Change-Id: I787a8ba7053f55480125dda64737466300bf7357
2017-01-05 10:11:06 +08:00
Jenkins
52d8a71d48 Merge "Clean up kolla-ansible related files from Kolla" 2017-01-03 12:50:58 +00:00
Michal (inc0) Jastrzebski
cef39561ac packing and uploading registry
Partially-Implements: blueprint pack-registry
Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Change-Id: I6816c6d3fc2f4224553f8a22e2ebb87e8616db37
2017-01-02 13:19:47 +08: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
Jenkins
e5fb6173ea Merge "Removed percona from ubuntu repos" 2016-12-28 22:05:39 +00:00
Jeffrey Zhang
3533808904 Run sudo with -H parameter to set the proper home dir
Change-Id: Ib273f50bd7fb889e0025f58c11dd89f39ca8e4ca
Closes-Bug: #1652112
2016-12-23 01:09:36 +08:00
Sam Yaple
af7a1da807 Removed percona from ubuntu repos
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-20 16:41:36 +00:00
Jeffrey Zhang
bbe4c0d768 Fix syntax issue in gate_run.sh script
Change-Id: I98005ea6ac1457d89ef6636cf772155d7a7034d9
Closes-Bug: #1651388
2016-12-20 18:38:50 +08:00
Jenkins
95bb052fe7 Merge "Collect logs at the end of gate" 2016-12-19 14:45:38 +00: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
Jeffrey Zhang
0e07b7b998 Collect logs at the end of gate
Collecting more logs will be helpful for use to debug the gate.

Closes-Bug: #1650552
Change-Id: I5e243c4e5075215cbed57b65655c99f2ddcadaaf
2016-12-16 22:28:21 +08:00
jeckxie
6bde2f6839 Fix dir specs typo error
Change-Id: I9426b176a0d7af452c569590b771e4661b4652a2
2016-12-08 14:54:06 +08:00
Jeffrey Zhang
d01391fab2 Add run_gate.sh script for CI
Use single unified gate script will be helpful to works after the jobs
is done.

Change-Id: Ic0bbeef4b431132b4f992a696dc5e83c43821b91
Closes-Bug: #1647379
2016-12-05 22:29:48 +08:00
Jenkins
1e55bfae6a Merge "Run docker registry in gate" 2016-12-02 17:34:36 +00:00
Jenkins
5a9097a0dc Merge "Use Dockerfile customization instead of include_header" 2016-11-30 16:07:19 +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
Jeffrey Zhang
0099de4841 Use Dockerfile customization instead of include_header
include_header is marked deprecated and will be removed in the future

Change-Id: I170f7657bebe99f31b04c2c80f5a1c0dbd58000f
2016-11-29 15:09:39 +08:00
Jeffrey Zhang
cc6d491c39 Use kolla-ansible deploy_aio in gate
Change-Id: I5351b7a6ee480be78e26af42ca724b1b6b664b38
2016-11-24 12:28:48 +00:00
Jenkins
8584ec2bf5 Merge "Clean up docs around local registry" 2016-11-22 13:29: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
Jenkins
2118b7370d Merge "Remove init-runonce from docker repo" 2016-11-18 14:52:54 +00:00
Steven Dake
3a5a31e456 Clean up loc
LOC was broken and called out vagrant specifically.  This patch
makes LOC work and renames "Vagrant" to "devenv".

Change-Id: I29f930114d3cba17e870437c99eb3cbae6abb251
2016-11-18 08:02:19 -05:00
Steven Dake
b9c399d8dc Remove init-runonce from docker repo
init-runonce is should be part of kolla-ansible and was
missed in the original Ansible mass removal.

Change-Id: I7f02d86526f3be56be8960270100547512e7a494
2016-11-18 07:28:49 -05:00
Jeffrey Zhang
efa26ed741 Use kolla-ansible for deployment
Change-Id: I2eb821f88d47b665615ad56319dd40681f7d9967
2016-11-18 11:03:42 +08:00
Jenkins
25c5b082ec Merge "Remove Ansible from Kolla" 2016-11-16 19:10:41 +00:00
Jenkins
2933b9df75 Merge "Unmount Ceph OSD disks as part of destroy" 2016-11-16 12:20:09 +00:00
Steven Dake
3fcef82946 Remove Ansible from Kolla
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-15 21:34:17 -07:00
Paul Bourke
d8fec8ec0a Clean up docs around local registry
* Remove duplicated info between the 'image-building' and 'multinode'
  guides regarding deploying a local insecure registry.

* Add a helper script to easily start a local registry in a consistent
  way.

* Remove warnings around bugs in older registries, 2.3+ is now the
  default

* Remove references to running the local registry on port 4000, this
  causes confusion as Docker expects port 5000 by default unless
  specified, and registries are not required for all-in-one deployments
  anyhow.

TrivialFix

Change-Id: I89f231df09102e3f1d5f21c8a8ca938ea60ae95b
2016-11-15 12:52:37 +00:00
Jenkins
837b7d1b71 Merge "add new line in cleanup-containers" 2016-11-15 06:01:50 +00:00
zhubingbing
2b7dea2277 add new line in cleanup-containers
looks like any other script

TrivialFix

Change-Id: I00eef0657a4409719214092ca33730a058b9bb28
2016-11-15 01:02:03 +00:00
Jenkins
c9808a2e21 Merge "Use openstack_service_workers variable in gate" 2016-11-11 17:08:11 +00: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