3053 Commits

Author SHA1 Message Date
Jeffrey Zhang
a692718c00 Ensuring the openvswitch_db is ready before creating bridges
Change-Id: I42550c57222de4ad5556e95d40bb96528bc1d085
Closes-Bug: #1533942
2016-02-12 02:02:34 +08:00
Andreas Jaeger
8ad0b11065 Make pep8 *the* linting interface
According to the PTI (=Python Test Interface,
http://governance.openstack.org/reference/cti/python_cti.html), pep8
is the interface for codestyle checks. Move all tests from linters to
pep8.

This change will be followed by a change to project-config to use pep8
for testing in the gate.

Change-Id: I1a48f4b1e0b0950640192bcfc55121619a844b50
2016-02-11 09:55:28 +00:00
Jenkins
571f4b97f6 Merge "Add missing upgrade stubs for kibana/mongodb" 2016-02-10 19:19:31 +00:00
Jenkins
d3731eb99f Merge "Remove data docker image" 2016-02-10 19:19:24 +00:00
Jenkins
e94c67749a Merge "Trap error exit in deploy aio script" 2016-02-10 19:15:43 +00:00
Jenkins
6267192c4b Merge "Safely create directories" 2016-02-10 18:41:15 +00:00
Jeffrey Zhang
ce5e8a8257 Remove data docker image
we have moved to named volume, the old data container should be removed

TrivialFix

Change-Id: Ib73205de6566509492568381179814baa7af2d22
2016-02-10 22:46:22 +08: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
MD NADEEM
7a6edb5797 Ceilometer ubuntu binary container
Change-Id: I653b6b994de2f4d374d90a831d7a56eaff667404
Partially-Implements: blueprint binary-ubuntu
2016-02-10 05:32:48 +00:00
Jenkins
b479d8db03 Merge "Remove unnecessary patch for oslo.log" 2016-02-10 04:29:03 +00:00
Martin André
e6571c0203 Safely create directories
This prevents failure when the directory already exists.

This commit fixes a failure in centos-binary because of a change in the
RDO packaging, where the required directory is now created for us.

Change-Id: Idd3e15802c3e3fd363e1295111ec12948d566781
Closes-Bug: #1543417
2016-02-10 08:25:23 +09:00
Paul Bourke
be0aa14d86 Add missing upgrade stubs for kibana/mongodb
TrivialFix
Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>

Change-Id: Ia83f642d3817116e2ba99285efc12b583f07bbd1
2016-02-09 17:26:14 -05:00
Jenkins
1fdae5b9d0 Merge "Increase ansible verbosity during gate deploy" 2016-02-09 17:37:06 +00:00
Jenkins
c5aaad31dd Merge "Cleanup dependencies for cinder-base" 2016-02-09 17:36:59 +00:00
Jenkins
063fcc41e9 Merge "Cleanup dependencies for nova-base" 2016-02-09 17:36:51 +00:00
Jenkins
48279a3e7a Merge "Cleanup dependencies for neutron-base" 2016-02-09 17:36:27 +00:00
Jenkins
43bbaf7603 Merge "Fix Vagrant provisioning with docker 1.10" 2016-02-09 14:47:12 +00:00
Jenkins
f489768e89 Merge "Add all neutron agents to cleanup-containers script" 2016-02-09 14:30:16 +00:00
Hui Kang
bed9ed97a4 Remove unnecessary patch for oslo.log
Ubuntu binary package includes the fix

TrivialFix

Change-Id: Iaeff250e75565b1f447d97acfffc1b1a3a76c250
2016-02-09 02:35:43 -05:00
Martin André
fd7b431069 Add all neutron agents to cleanup-containers script
When breaking neutron-agents into thin containers, we forgot to update
the cleanup-containers script.

TrivialFix

Change-Id: Idad2eb73a4de7c66109ad5bffcce3173970e2af9
2016-02-09 14:49:39 +09:00
Martin André
ef9aca2f63 Switch to docker registry v2
With docker 1.10, the v2 registry finally has decent performances.

TrivialFix

Change-Id: I85fde385dba3579abad497e327170d30b8b9fc7c
2016-02-09 14:26:10 +09:00
Martin André
e715856f52 Fetching IP addresses for vagrant-hostmanager from libvirt
To fetch the IP address from the interface other than eth0 for
vagrant-hostmanager plugin, it must be fetched from the DHCP
leases from libvirt network. The previously used one-liner,
which was using virsh with awk, returns multiple addresses
when VM was destroyed before expiration of its DHCP lease.

This script solved this problem by getting only the newest
DHCP lease and gives a possibility to destroy Vagrant
environment and set up again without worrying about hosts
resolving.

Co-Authored-By: Michal Rostecki <mrostecki@mirantis.com>
Partially-Implements: blueprint vagrant
Related-Id: Ic469b46f4d02d873c27114cbd268b86521eef32b
Related-Id: I81f07b7e4a202af68fd3cf9fdb308c3734c40a83

Change-Id: I408415e95483c1b8988d0f67c654212de63bece2
2016-02-09 14:25:22 +09:00
Allen Gao
0ef2a3691f Fix the required min docker version
We are using the mount propagation in Docker 1.10.

TrivialFix

Change-Id: Ic2ef1fbce9dba217eac75f3743cef7f6ac702b00
2016-02-09 13:20:35 +08:00
Martin André
31e0b3454c Fix Vagrant provisioning with docker 1.10
docker 1.10 removed the -d flag in favor of "daemon". Also adjust
docker config to enable shared mount namespace.

Closes-Bug: #1543201

Change-Id: I14cb497e0e02d90cdf74de8a09cca346f68254ab
2016-02-09 11:23:24 +09:00
Martin André
e9a64b589e Cleanup dependencies for cinder-base
The python-cinder package now pulls the required dependency on
python-oslo-policy:

a22f32c619/openstack-cinder.spec (L143)

TrivialFix

Change-Id: I504546e75b5a237fc4aac89bd9a5c34f09570817
2016-02-09 09:23:12 +09:00
Martin André
1f280adebe Cleanup dependencies for nova-base
The python-nova package now pulls the required dependency on
python-oslo-policy:

036149e93f/openstack-nova.spec (L389)

TrivialFix

Change-Id: I472f600710cb743ef6ede01e722a79b1451cf295
2016-02-09 09:23:12 +09:00
Martin André
ed8d911881 Cleanup dependencies for neutron-base
The python-neutron package now pulls the required dependency on
python-oslo-reports:

774036f7f9/openstack-neutron.spec (L125)

TrivialFix

Change-Id: I6cb4d0d9601c910cf631dddcf715a7f4fc9754e3
2016-02-09 09:23:01 +09:00
Jenkins
815f040ee8 Merge "Add retry function for Docker keyring" 2016-02-08 21:27:21 +00:00
Sean Mooney
6f80ed2219 elevates privileges and grants access to /dev/mapper to cinder backup
- sets privileged: true on cinder backup container
- adds /dev/mapper to cinder-backup mounts
- this change allows the cinder backup manager to access the
  cinder-volumes lvm volume group via the kernel device mapper.

Change-Id: I252ee9cadb5f06c383ac9f48d0b1b16d83037a41
Closes-Bug: #1542574
2016-02-08 16:32:03 +00: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
MD NADEEM
79b9e0d302 Designate ubuntu binary container
Change-Id: I546d25249527d7f1f7dfa2059ae38e7cc0e0a765
Partially-Implements: blueprint binary-ubuntu
2016-02-08 04:01:29 +00:00
SamYaple
0921308a97 Use Infra provided mirrors in gate
Both apt and pip mirrors are added here

Related-Id: I26f5fc5cec224cf4f4ea361e0f71cecbf320fbb0
TrivialFix

Change-Id: Ib3cb1d2c6fb27887e3ea819d277e21ea3a530f56
2016-02-08 03:58:23 +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
ddb7cd88c5 Convert Neutron to thin containers
*** Requires Docker 1.10 which is released ***

Documentation will be in the next patch. You must set the following
in your docker.service daemon control file for propogation to work:

    [Service]
    MountFlags=shared

======================================================================

Thanks to mount propagation in Docker 1.10 we can use thin containers
finally! This is extremely useful to operators since now they can
access the network namespaces from the hosts (outside the neutron
container). But additionally it allows us to implement the VPN agent
and other services easier.

Neutron containers and the neutron role are brought into the standards
of the new Kolla. Completely with drop-root and ansible formating
updates.

The ip_wrapper.py script was (thankfully) not needed so it has been
removed from the repo.

Partially-Implements: blueprint upgrade-neutron
Change-Id: Iaf5555283240457e1912459f397a6393d886fba1
2016-02-06 07:13:47 +00:00
SamYaple
2514bcf0c3 Correct issue with virtualenv rootwrap
Because we use rootwrap in a venv we need to update the exec_dirs.
Without doing this *some* commands will break for various reasons that
I won't get into in this review in detail. But this is required for
neutron-l3-agent in a container + drop-root.

Change-Id: I1a09f7188fdd501b7ce251d9f2fb0e5b10222142
Partially-Implements: blueprint drop-root
2016-02-06 06:48:59 +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
Jenkins
fbc650e009 Merge "Fix two missing toolbox references" 2016-02-05 20:14:52 +00:00
Jenkins
5d642f1ad1 Merge "Fix manila perms" 2016-02-05 17:53:24 +00:00
Jenkins
1b3480edca Merge "Fix the ugly base directory path" 2016-02-05 17:52:38 +00:00
SamYaple
508f3863cc Fix two missing toolbox references
Two patches merged that did not have teh correct name for
kolla_toolbox

TrivialFix

Change-Id: I09e230e29cff496247c32bf227715bfb7caa0a95
2016-02-05 17:24:39 +00:00
Jenkins
b891afd64c Merge "Rename kolla_ansible to kolla_toolbox" 2016-02-05 15:04:37 +00:00
Allen Gao
343e736e62 Fix the ugly base directory path
Remove the '..' in the path like:
/home/jenkins/workspace/gate-kolla-dsvm-deploy-centos-binary/tools/../ansible/inventory/all-in-one

TrivialFix

Change-Id: I80724a9e876ed1826c65e08b55cfa08124d70eb9
2016-02-05 16:59:01 +08:00
Jenkins
16630340c7 Merge "Ubuntu custom apt repos" 2016-02-05 08:28:53 +00:00
Jenkins
28ebe4d0a2 Merge "Remove unexisting data_files in setup.cfg" 2016-02-05 07:54:41 +00:00
Jenkins
fd78648393 Merge "Update kernel version in ubuntu-bootstrap.sh" 2016-02-05 06:39:21 +00:00
Jenkins
29833b67e1 Merge "Make libvirt reestablish connection with qemu" 2016-02-04 16:38:02 +00:00
Jenkins
3e586c9bcb Merge "Revert "fix miss rabbitmq config when hostname include special character"" 2016-02-04 16:33:49 +00:00
MD NADEEM
354e674ded Update kernel version in ubuntu-bootstrap.sh
Ubuntu-bootstrap.sh script rebooted my server
with message of re-run the script and at re-run
it again do the same thing.

I find this behavior is due to the below check

if [[ $(uname -r) != *"3.19"* ]]

As latest ubuntu kernel version is 4.2.0-27-generic,
so we should update the script for kernel version
4.2.0-27-generic.

This patch fixes the issue.
Closes-Bug: #1541797
Change-Id: I01e98d80df60fe8c5f6ac6e644d42261fdd2921c
2016-02-04 12:41:26 +00:00
SamYaple
1ca35e688f Make libvirt reestablish connection with qemu
Libvirt stores some information in /run at runtime that is needed to
automatically reestablish a connection with the VM when a new
container is created. Without this information a long (and manual)
process is needed to redefine the running vms and reattach to the
running qemu process.

This mountpoint was removed as "unneeded" in the past, but it does
exist in Liberty branch enabling a no-vm-downtime upgrade.

TrivialFix

Change-Id: I2eb31c602d8d17cbd6a8e405daf4123070794843
2016-02-04 12:15:36 +00:00
Sam Yaple
84540a0632 Revert "fix miss rabbitmq config when hostname include special character"
This change breaks ubuntu

This reverts commit 04992a3de0a181a658cae2561a3a1adce313bbf1.

Change-Id: I5e38d4c4a37ee90603ad04ab4b9d03298b6b2eb2
2016-02-04 11:47:28 +00:00