2423 Commits

Author SHA1 Message Date
Jeffrey Zhang
cbb7f0503e Create empty file by using os.mknod
it is more safe and pythonic.

Change-Id: I728649af37cee8d1e255bb0a389cbc532e551c74
2015-12-18 14:14:48 +08:00
Jenkins
03fd08d867 Merge "Add setup.cfg to kolla tools pip data dir" 2015-12-16 10:36:47 +00:00
Jenkins
e30fb74554 Merge "import the rpm gpg key" 2015-12-16 08:33:57 +00:00
Jeffrey Zhang
551c0fa2ce import the rpm gpg key
this will purge the package pgp key warning

Closes-Bug: #1525276
Change-Id: I956c8b0b6f1e1bfbceaa6abc06da16a980f023c1
2015-12-16 14:17:16 +08:00
Jeffrey Zhang
7479df9d71 Bump the ansible version to v2.0.0-0.7.rc2
The keystone_user is deprecated and the os_user module is added since
v2.0.0-0.4.beta2[0], which should be used for keystone user creation.

[0]
cdf7117f7e

Closes-Bug: #1526589
Change-Id: Ibe791913af52df5eb22eecdfc0f0156e2d0019a4
2015-12-16 13:09:05 +08:00
Jeffrey Zhang
b35ba2b1b1 do not replace the systemd-container with systemd
Systemd-container no longer exist in centos latest docker image.

Change-Id: Icbfc7fce99885551f7f4caa707a600b20db849ae
Closes-Bug: #1526606
2015-12-16 12:41:59 +08:00
Jenkins
6c4ba7e7e5 Merge "Alphabetically sort long list of parameters/arguments" 2015-12-16 00:32:38 +00:00
Jenkins
8cf1563a76 Merge "Fast fail unsupported murano-base install types" 2015-12-15 16:41:05 +00:00
David Moreau Simard
70223bb59d Alphabetically sort long list of parameters/arguments
TrivialFix
Change-Id: I39ad214d6a8e1fbdba799076d6a5371cc47824a1
2015-12-15 10:26:51 -05:00
Jenkins
7f22109d06 Merge "Fix MySQL-python build on Centos" 2015-12-15 10:52:12 +00:00
Martin André
9a2e0e84e4 Fast fail unsupported murano-base install types
The centos-binary murano image will still fail to build, but at least
it will fail with a relevant error message.

Change-Id: I9870f3437fbfad5820eb014173d9ec49813e60d0
Closes-Bug: #1526202
2015-12-15 17:49:42 +09:00
Martin André
b5878b2449 Fix MySQL-python build on Centos
The build of MySQL-python started to fail after the update to
Percona-Server-devel-56-5.6.27-rel76.0.el7.x86_64 with:

  /usr/bin/ld: cannot find -lmysqlclient

It appears Percona-Server-devel package provides a broken
/usr/lib64/libmysqlclient.so that points to nonexistent
libmysqlclient.so.18.

Fix the build by installing MariaDB-shared package from the mariadb
repo that contains the missing file.

Change-Id: Ia95fddfe44f54bd355c6f3d0ac895fdc05cecff9
Closes-Bug: #1526129
2015-12-15 17:35:48 +09:00
Jenkins
5d762a117a Merge "Do not purge yum-plugin-fastestmirror package" 2015-12-15 03:57:55 +00:00
Jenkins
09b14eb2a8 Merge "Remove ironic containers in the cleanup script" 2015-12-14 17:52:59 +00:00
Artur Zarzycki
95c1d7380f Remove ironic containers in the cleanup script
TrivialFix

Change-Id: Ia37369acf8bf7ca7f49fd647f40c6e98f40e93d8
2015-12-14 16:57:04 +01:00
Jenkins
d4224a0dea Merge "Fetch ceph gpg key from more reliable mirror" 2015-12-14 15:37:46 +00:00
Proskurin Kirill
8b5afbf295 Add setup.cfg to kolla tools pip data dir
kolla-build requires setup.cfg to fetch its version and right now it's not
installed to pip data dir.

Change-Id: Id1df6aab72314710d436cd7584c89bcda5d2b1a0
Closes-Bug: 1525949
2015-12-14 18:17:52 +03:00
Jenkins
ba01401a1b Merge "Add ZooKeeper module to kolla-ansible" 2015-12-14 13:32:18 +00:00
Jenkins
1cd8aab94c Merge "Record version on container build" 2015-12-14 13:30:46 +00:00
Michal Rostecki
77593f4c25 Add ZooKeeper module to kolla-ansible
ZooKeeper module already existed, but was not added to the
container.

Closes-Bug: #1525820
TrivialFix

Change-Id: I4de6aea4d4b209c94ed33205b0ec3c339e9ab692
2015-12-14 11:05:15 +01:00
Jenkins
987ae1af77 Merge "Skip gate FS optimization if no secondary disk" 2015-12-14 09:42:33 +00:00
Jeffrey Zhang
aabafd343b Do not purge yum-plugin-fastestmirror package
It will be helpful for speed up the package installation.

Closes-Bug: #1525514
Change-Id: Id40a0afa30dd0a142bee3b13f7622cb0d42d9298
2015-12-12 21:04:12 +08:00
Martin André
ae8b402b4d Fetch ceph gpg key from more reliable mirror
The ceph master repository is slow and the centos build often fails due
to timeouts fetching the ceph repo GPG key.

Switching to a more reliable mirror should improve things.

Change-Id: I7eef31fa9d83413a7c12134d285b3d20d95805e8
Closes-Bug: 1525505
2015-12-12 21:02:43 +09:00
Martin André
de7293833e Add workaround to fix centos-binary-deploy gate
The RDO nova package is missing a dependency on oslo-policy and this is
breaking our centos-binary-deploy gate. Install the missing package in
nova-base until the issue is fixed upstream.

Change-Id: Iece7edd754c6f173635b0e0c437a998f3b9492d3
Closes-Bug: #1525502
2015-12-12 20:47:10 +09:00
Jenkins
265de22e63 Merge "Fix owner of horizon docroot" 2015-12-11 21:33:54 +00:00
Jenkins
335c739a0a Merge "Change nova-compute upgrade level to auto" 2015-12-11 21:25:18 +00:00
Jenkins
431e0f9ff2 Merge "Pass environment variables of proxy to tox" 2015-12-11 19:36:40 +00:00
Jenkins
b2ba81bbdb Merge "Improve ansible deployment failure reporting" 2015-12-11 18:20:11 +00:00
Michal Jastrzebski
3f2a4f2c06 Record version on container build
This changes default behaviour of build.py to instad of putting latest
tag on it, it puts current kolla version as found in setup.cfg

Change-Id: I4d6e9a0159c6a5598abd58072594df4204427308
Partially-Implements: blueprint upgrade-nova
Partially-Implements: blueprint record-version
2015-12-11 11:02:46 -06:00
Michal Jastrzebski
a02bcdcacc Change nova-compute upgrade level to auto
As part of upgrade process we need new services to detect what is the oldest
version running on compute nodes.

Change-Id: Id65f2bc765828054bf5d5562de27255031254821
Partially-Implements: blueprint upgrade-nova
2015-12-11 11:02:46 -06:00
Proskurin Kirill
9f604456be Fix owner of horizon docroot
Horizon starts WSGI deamon from user "horizon", its docroot has "root" user.

Change-Id: Iac424a88a747772a37b2ff2ae94f302a988f7201
Closes-Bug: 1525296
2015-12-11 19:16:25 +03:00
Jenkins
395dce522a Merge "add python-kazoo and python-six when using centos source install type" 2015-12-11 14:46:50 +00:00
Jenkins
6360723586 Merge "install python-cephlibs in venv for glance-base" 2015-12-11 14:44:18 +00:00
Martin André
06794fdc6b Catch exception when directory creation fails
The build script now creates now creates a plugins directory for source
builds to store plugins required for the container, and creates a tar
of all plugins that is extracted at runtime.

However, the creation of the 'plugins' directory is not handled
correctly and generate an exception in the running thread if the
directory exists. This is the case for example if the build script
retries a failing image.

This commit fixes the timeout issues we've experienced with the gate.

Change-Id: Ic5d4fd1ddf71f01c547130518e311fded911c445
Closes-Bug: 1524897
2015-12-11 20:07:02 +09:00
Martin André
6190411d19 Improve ansible deployment failure reporting
Change-Id: I73395afa2a2d8f3dc835e010e3b1959ec725da2a
Closes-Bug: #1525102
Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
2015-12-11 16:48:14 +09:00
Kuo-tung Kao
a9bd9a1a65 install python-cephlibs in venv for glance-base
install python-cephlibs in venv for glance-base

Change-Id: I2055bbc608c35604bbb727e83d9b74295e643a7d
Closes-Bug: #1524684
2015-12-11 14:32:26 +08:00
Martin André
40b8a0243e Skip gate FS optimization if no secondary disk
This commit removes the assumption that all gate nodes have a secondary
disk, and skip tuning the filesystem if the node doesn't have one.

This fixes gate failures on OVH nodes.

Closes-Bug: #1525047

Change-Id: Ief22f34b32caf7a8b446df888fc5cc1964ad272e
2015-12-11 15:31:35 +09:00
Jeffrey Zhang
0932a0f7b2 add python-kazoo and python-six when using centos source install type
Closes-Bug: #1525055
Change-Id: Id800da1a0cce4db20c32e8daf09c5f0f2c9f8929
2015-12-11 13:24:35 +08:00
hparekh
c3c7ee429a Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This patch fixes this problem.

Change-Id: I685ddbc6bb6e0fe25c308c35a7581785eebe3629
2015-12-11 09:18:08 +09:00
Paul Bourke
a98628453b Allow murano on a dedicated node in a HA setup
Without this the haproxy role doesn't have the facts it needs to
render it's template, resulting in the following error:

TASK: [haproxy | Copying over config(s)]
************************************** fatal: [control01] => {'msg':
"AnsibleUndefinedVariable: One or more undefined variables: 'dict
object' has no attribute u'ansible_eno1'", 'failed': True}

This is similar to the fix applied previously for other services in
I99b7dbebd5a6193e192ee258ddf576d18db90ed7.

Change-Id: Idb7fa8763cff64ad761c5b8a1a3bf92a27f4f501
Closes-Bug: 1524738
2015-12-10 17:01:58 +00:00
Jenkins
d2e20dd885 Merge "Allow heat on a dedicated node in a HA setup" 2015-12-10 16:14:17 +00:00
Paul Bourke
58bc097ff2 Allow heat on a dedicated node in a HA setup
Without this the haproxy role doesn't have the facts it needs to
render it's template, resulting in the following error:

TASK: [haproxy | Copying over config(s)]
************************************** fatal: [control01] => {'msg':
"AnsibleUndefinedVariable: One or more undefined variables: 'dict
object' has no attribute u'ansible_eno1'", 'failed': True}

This is similar to the fix applied previously for other services in
I99b7dbebd5a6193e192ee258ddf576d18db90ed7.

Change-Id: I279374e8861c02e3aa12988b885be7361e0cf2f5
Closes-Bug: 1524739
2015-12-10 11:20:25 +00:00
Jenkins
8a78f541ce Merge "restart firewalld to apply firewall changes" 2015-12-10 09:54:25 +00:00
Sidharth Surana
a3b7b866b7 Remove cinder containers in the cleanup script
Change-Id: I29b788a71f30d133e66759a5de2ecd43222313a8
Closes-Bug: #1524557
2015-12-09 16:25:44 -08:00
Jason Brooks
2b381a6b17 restart firewalld to apply firewall changes
In order for the firewalld changes to apply, we must either restart
firewalld (as in this commit), or issue the four add-port commands
listed in the doc again w/o the "--permanent".

Change-Id: I09a12024085c315117bc27d095bae91af9c00d5e
2015-12-09 10:38:08 -08:00
Jenkins
6316279278 Merge "create path, /var/lib/nova, in nova-base" 2015-12-08 15:19:40 +00:00
Jenkins
be571bb4cb Merge "Run libvirtd as root" 2015-12-08 15:19:09 +00:00
Jenkins
f35bdeeb2b Merge "Install plugins in neutron-server if available" 2015-12-08 10:18:38 +00:00
Jenkins
b121d3cf3b Merge "Allow fetching plugins as part of the build" 2015-12-08 10:17:46 +00:00
Jenkins
8ee78949ff Merge "Update Vagrant's Ubuntu box provisioning script" 2015-12-08 10:00:14 +00:00