2391 Commits

Author SHA1 Message Date
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
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
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
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
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
Kuo-tung Kao
6e1363ba17 create path, /var/lib/nova, in nova-base
Without root privileges, nova process can't create and access the path,
`/var/lib/nova`.
Create the path and change the permission.

Change-Id: I6e5650298041b672bf386c50ccb68a6a80f9de43
Closes-Bug: #1523753
2015-12-08 16:06:05 +08:00
Jenkins
bfa2ea6c1c Merge "Fix typos in kolla/doc" 2015-12-07 19:36:37 +00:00
Michal Rostecki
2e67b2790b Run libvirtd as root
Currently we are not creating any non-root user for running
libvirt daemon. That should be done in the future, but currently
when we don't have such a user, libvirtd should be runned by
root.

Change-Id: Ieb0d8bd068b591f522548628b0bfffbe206b749e
Related-Bug: #1523630
2015-12-07 19:46:26 +01:00
Jenkins
fdd920eac4 Merge "Add Python 3.x support in set_configs.py" 2015-12-07 15:23:36 +00:00
Diogo Monteiro
c7297e04c1 Update Vagrant's Ubuntu box provisioning script
Starting from Vivid Ubuntu uses systemd as the
default boot manager instead of upstart. Updating
the way the docker daemon is configured to follow
the systemd way.
Setting env variable GUNICORN_OPTS=[--preload]
to fix race condition and avoid IntegrityError
when pushing images to local registry

Change-Id: I841f85015c2c3683ef7e1e454ec1369263063c45
Related-bug: https://github.com/docker/docker-registry/issues/518
Closes-Bug: #1523336
2015-12-07 10:18:40 -05:00
Jenkins
0183dd9e61 Merge "add ubuntu dependency for vagrant" 2015-12-07 12:11:16 +00:00
Michal Rostecki
dab8cae9b2 Add Python 3.x support in set_configs.py
Change-Id: I348c69e5411135da8434e9278a48a5777ff2a72d
Partially-Implements: blueprint python3
2015-12-07 09:41:31 +01:00
Michal Rostecki
7670611aa4 Exclude .eggs from pep8 checks
Change-Id: I11f5af83fc602332f6c9ac39f4c22731f8e84161
Closes-Bug: #1523365
2015-12-07 08:25:57 +01:00
Kuo-tung Kao
09345bf127 add ubuntu dependency for vagrant
add ubuntu dependency for vagrant

Change-Id: I96161dd34b68795c2d78312f160579706a6bab86
Closes-Bug: #1515548
2015-12-07 11:13:19 +08:00
Jenkins
30b0439c65 Merge "Drop root for nova" 2015-12-05 10:48:25 +00:00
Jenkins
0c8956ecf3 Merge "Drop root for cinder" 2015-12-05 10:37:13 +00:00
Mitsuhiro SHIGEMATSU
897cdf900d Fix typos in kolla/doc
Change-Id: I17b4b40a6c49210faa535bdf3032c000daae0e2e
2015-12-05 17:06:58 +09:00
Jenkins
939b464d12 Merge "Add support for copying files from a "zk://" source" 2015-12-04 17:04:59 +00:00
Jenkins
7ace0155b8 Merge "configure ovs bridge in openvswitch-db container" 2015-12-04 01:39:50 +00:00
David Moreau Simard
271de22a73 Add Aodh and Tempest to the list of provided images
Aodh provided by I4daf2160fe6743d62e6874f9fe032d37c9db90b7
Tempest provided by I1877c03d0804e57d274044aecb1055f847025bec

TrivialFix
Change-Id: Idb25e5872d6546b5c59424d393275c9a1e8dc8c8
2015-12-03 16:02:49 -05:00
Sean Mooney
9ce814619a configure ovs bridge in openvswitch-db container
- this change moves the ovs_ensure_configured.sh  file to the
  openvswitch-db container.
- this change reorders the plays in ansible/roles/neutron/tasks/start.yml
  to configure the ovs bridges before starting the vswitchd container.

Change-Id: Ied1a82d48377534c15680406df9a96caf3b79515
Closes-Bug: #1522133
2015-12-03 20:13:21 +00:00
Jenkins
cb73c6b7c0 Merge "Sanity check for glance" 2015-12-03 17:03:11 +00:00
Jenkins
dcb88fa572 Merge "Sanity check for keystone" 2015-12-03 17:03:01 +00:00
Jenkins
af6c80db01 Merge "Drop root for murano" 2015-12-03 16:55:48 +00:00
Swapnil Kulkarni (coolsvap)
3ef57a9ed6 Drop root for nova
Updates to ensure commands run in the nova containers
are done as the 'nova' user rather than root.

Change-Id: I0dd0276c2848ad77d92d350dfa0f20161329ed55
Partially-Implements: blueprint drop-root
2015-12-03 20:01:41 +05:30
Swapnil Kulkarni (coolsvap)
6f2fbe933e Add support for Aodh
Aodh is replacement for OpenStack Ceilometer Alarming
service.

Change-Id: I4daf2160fe6743d62e6874f9fe032d37c9db90b7
Partially-Implements: blueprint add-aodh
2015-12-03 19:59:04 +05:30
Jenkins
c21ac63691 Merge "Set docker api version to auto" 2015-12-03 11:39:43 +00:00
Jenkins
c3906fabba Merge "Sanity check module" 2015-12-03 10:30:56 +00:00
Artur Zarzycki
dc2ad7d134 Set docker api version to auto
Change-Id: I25d957a2368fa4e52b5fa9253d7ea5ec4046d830
Closes-Bug: #1521949
2015-12-03 11:28:21 +01:00
Sean Mooney
2ffb35ee53 adds tools/cleanup-containers regex support
- this change extends the tools/cleanup-containers script to
  support a grep extended regex as a first paramater.
- if tools/cleanup-containers is called with a grep extended
  regex string as a first paramater, only containers mataching
  that regex will be cleaned up.
- e.g. tools/cleanup-containers "neutron|openvswitch"
  will cleanup all container whoes name contains either neutron
  or openvswitch.

Change-Id: Iadb68c0a8de40e9ec2c0a27568e3a372ec0e8303
Closes-Bug: #1522168
2015-12-02 23:01:42 +00:00
Michal Jastrzebski
aab1bd36c8 Sanity check for glance
This runs first sanity check for glance. After glance is deployed
it checks images.list(). Also consist few fixes for previous patches

Change-Id: I03d05d246302d8411b2e94c94ca7fe046c00d735
Partially-Implements: blueprint sanity-check-container
2015-12-02 14:19:01 -06:00
Michal Jastrzebski
f632cfe878 Sanity check for keystone
This runs first sanity check for keystone. After keystone is deployed
it checks tenants.list()

Change-Id: Ie919ffe6124eb70428309404a434d9b0eb0b9f70
Partially-Implements: blueprint sanity-check-container
2015-12-02 10:27:36 -06:00
Michal Jastrzebski
d6f78f0610 Sanity check module
This module will be collection of basic checks to ensure that module
is running. After deploying service (like keystone) we will run sanity
checks for given service.

Change-Id: If7dc7f8a1ce1c3f93fc51d8327a55ef655b0de00
Partially-Implements: blueprint sanity-check-container
2015-12-02 10:22:30 -06:00
Jeffrey Zhang
b3a695e934 Remove the meaningless comment line in base image Dockerfile
Use jinja2 comment syntax instead.

Closes-Bug: #1521932
Change-Id: Ida5a9204e7affe880ac6156d3fed3206b1eae7b9
2015-12-02 20:37:32 +08:00
Angus Salkeld
27c0ae0624 Add support for copying files from a "zk://" source
Co-Authored-By: Michal Rostecki <mrostecki@mirantis.com>
Implements: blueprint zookeeper

Change-Id: I176f063d3802716846b921e210c1569d28bd90d8
2015-12-02 10:25:43 +01:00
Swapnil Kulkarni (coolsvap)
a8661deac6 Drop root for cinder
Updates to ensure commands run in the cinder containers
are done as the 'cinder' user rather than root.

Change-Id: Ibbe04e3a92195dfb957fa56f762c60a80dbe30ca
Partially-Implements: blueprint drop-root
2015-12-01 09:20:46 +05:30
Jenkins
917b4df01e Merge "Fix the confused comment in the base image Dockerfile" 2015-11-30 10:42:07 +00:00