226 Commits

Author SHA1 Message Date
Jenkins
062388fca9 Merge "Make variables in OVS container configurable" 2015-07-28 21:41:41 +00:00
Jenkins
521a671ef9 Merge "Implement kolla-compose script" 2015-07-27 10:54:35 +00:00
Jenkins
9219cefbaf Merge "Update init-runonce" 2015-07-27 10:50:58 +00:00
Swapnil Kulkarni
dd2e2ad8e2 Make variables in OVS container configurable
Change-Id: I8d216ca20c97428e3b27d48d0a5249282dcb8c18
Closes-Bug: #1468509
2015-07-27 07:47:39 +00:00
digambar
e245eb2ff5 Implement kolla-compose script
Renamed kolla script to kolla-compose
Update change in the dev guide also

Change-Id: I6cae3d13752ecb4bb3deeb91c5e0f827fde80c2a
Implements: blueprint kolla-compose-script
2015-07-27 12:18:56 +05:30
Jenkins
0718429344 Merge "Add Gnocchi service to kolla" 2015-07-24 12:02:06 +00:00
Sam Yaple
005ec9ee70 Update init-runonce
This makes some changes to init-runonce to allow using Ansible as well as
updating it to use the openstack-client where applicable since the
keystone-client is not usable with keystone v3 api at all.

Change-Id: I6b9d6beb04df7724b1967638e98042ab03221cd1
Closes-Bug: #1477725
2015-07-23 21:05:11 +00:00
Daneyon Hansen
171a64bcd8 Removes Host Cleanup from Container Cleanup Script
Split the content of cleanup-containers into containers cleanup and host
cleanup. This allows to run the cleanup-containers from OSX clients,
while keeping needed code to delete host artifacts left behind by the
neutron agents container.

In addition, cleanup-containers may disappear in the future, replaced by
a docker-compose wrapper.

Co-Authored-By: Martin André <martin.andre@kvhasia.com>
Co-Authored-By: Swapnil Kulkarni <me@coolsvap.net>
Change-Id: I3aa731e7e0f9eb3dad9c363bb5d4a575d84a2fae
Closes-Bug: #1477383
2015-07-23 04:24:05 +00:00
Swapnil Kulkarni
870ec615d6 Add Gnocchi service to kolla
Co-Authored-By: Swapnil Kulkarni <me@coolsvap.net"
Change-Id: I81e5e6bfde3323e6917e3d61e3db760e2fec2019
Implements: blueprint gnocchi-containers
2015-07-23 03:43:04 +00:00
Jenkins
e70b08b662 Merge "Fix checking out custom refs in gen-source-tar" 2015-07-17 21:05:38 +00:00
Jenkins
a6ccb90922 Merge "Start tgtd in cinder-volume container" 2015-07-17 15:32:42 +00:00
Jenkins
a5b6b2f0d7 Merge "Parttially implement ceilometer container code" 2015-07-17 11:33:45 +00:00
Paul Bourke
58678fb2b4 Fix checking out custom refs in gen-source-tar
It seems using --git-dir to execute commands on a repo different to
where you currently are also inexplicably requires --work-tree
(https://stackoverflow.com/questions/1386291/git-git-dir-not-working-as-expected)

Change-Id: I42806e7d8a169ad9fc1878a0f4e0c03c57beb88b
Closes-Bug: #1475385
2015-07-17 11:28:32 +00:00
Christian Berendt
57093e8dfe Only use default values for MY_IP/MY_DEV in genenv if not set
This way it is possible to manually specify MY_IP/MY_DEV when running
the genenv script.

Closes-bug: #1475572

Change-Id: I291815a4ed1ea15adbddf94905706c77c8bb5a09
2015-07-17 10:14:19 +00:00
Swapnil Kulkarni
08a1414738 Parttially implement ceilometer container code
Added the compose yaml file
Added the genenv
Added fixes to run the containter

Change-Id: Ied3ea92e495fc0fc0274a0da736394d2ab52a754
Partially Implements: blueprint ceilometer-container
2015-07-16 15:27:19 +00:00
Steven Dake
4008ca8619 Start tgtd in cinder-volume container
The tgtd process was not being started in the cinder-volume container.
This results in iSCSI not being avialable for Cinder to operate
against.  Unfortunately cinder doesn't report the problem because LVM
is responsible for the iSCSI mapping.

Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>

Closes-Bug: 1473090
Closes-Bug: 1469323
Change-Id: Ie3403c5c3f81beb48960e838b4274e0c5796e387
2015-07-15 10:35:31 -04:00
Jenkins
1699910851 Merge "Improve build.py" 2015-07-15 11:20:54 +00:00
Sam Yaple
2a6437efdd Improve build.py
Fixed docker client to use ENV if exists to support boot2docker.

Fixed booleans not working as thought with argParser.

Change-Id: I232ed78443199ce20f4b38e12c861c0f97d55c99
Partially-Implements: blueprint build-script
2015-07-14 12:20:04 +00:00
Swapnil Kulkarni
1f0acbd0cd Update scripts to check if docker is usable for $USER
Added new script for checking user permissions on
docker command execution

Change-Id: I3b727590d9a29f416f5b847912b7250c555c2333
Closes-Bug: #1473554
2015-07-14 09:38:49 +00:00
Jenkins
69338a94ba Merge "Remove requirement for root user in scripts" 2015-07-13 04:08:36 +00:00
Jenkins
9b9923fa71 Merge "Fixed additional OpenStack pep8 issues" 2015-07-10 21:01:22 +00:00
Jenkins
61a5d91f5b Merge "Properly wait for Openstack services to be ready" 2015-07-10 20:47:01 +00:00
Swapnil Kulkarni
aff8e49af6 Remove requirement for root user in scripts
The following files had requirement for root user
which can be removed as long as as the the user
executing script is part of docker group

Scripts updated
tools/kolla
tools/cleanup-containers

Closes-Bug: #1473551
Change-Id: Ia4aea205f5da20fb1ded4f7a5d11eeebe5f40aa9
2015-07-10 20:33:18 +00:00
Borne Mace
fa63119f96 Fixes the last of the hacking based pep8 errors
Change-Id: I628c6cd493c112b00d8202725456c3fb863f5446
Partially-Implements: blueprint enable-flake8
2015-07-10 12:56:56 -07:00
Borne Mace
30a1988f0a Fixed additional OpenStack pep8 issues
The "hacking" package used in most OpenStack repos pulls in
additional pep8 rules.  This commit should fix all of them
other than a hand full in the build.py file which will
be fixed in a separate commit

Change-Id: I40a0a30d338592ad64123e3da5523b9ad95a7a9c
Partially-Implements: blueprint enable-flake8
2015-07-10 12:01:28 -07:00
Harm Weites
aef25bbaa8 Properly wait for Openstack services to be ready
Just checking for an account in keystone is pointless since nova and
neutron take way more time before they are fully operational. If the user
would continue as tools/kolla suggests, the init-runonce script would
fail because either nova or neutron would not be ready for service.

Change-Id: I8fbfaa16d961b418b9ac6a34d311adb8e41b61e9
Closes-bug: #1471331
2015-07-10 20:47:08 +02:00
Swapnil Kulkarni
ba1901de65 Add config-internal/config-external for barbican
Partially Implements: Blueprint standard-start

Change-Id: I34b4d96515b4c68d42319b477504abdfe9581bad
2015-07-09 12:08:47 -04:00
Alicja Kwasniewska
fcda6a06d8 Keystone installation from source
Makes use of new gen-source-tar script to provide a source based
keystone image.

This patch introduces a new concept of a .buildinfo file, which provides
variables specific to the image being built which cannot be defaulted in
a generic way, at least until the build script is overhauled. This file
is sourced before the .buildconf which still leaves everything
customisable by the user.

Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
Change-Id: I0ec6b9cfe6d4173f3192e4ae5833fb0f6d333f1c
Implements: blueprint install-from-source
2015-07-09 11:06:58 +00:00
Borne Mace
42c2419353 Fixed pep8 failures in all tools/ scripts
Change-Id: Ie6e77a4d45210122746b544a1aa8da563833e395
Partially-Implements: blueprint enable-flake8
2015-07-07 08:34:43 -07:00
Jenkins
b65892310a Merge "Add new build script" 2015-07-07 08:22:09 +00:00
Sam Yaple
0e0b7e77ab Add new build script
This new build script is written entirely in python and supports
multithreading to speed up the builds.

Partially-Implements: blueprint build-script
Change-Id: Ia630e5a83951ec37706a9596427024f3b7c10ba7
2015-07-07 07:19:49 +00:00
Jenkins
d5a9040f70 Merge "Sort variables and remove duplicates for min env doc" 2015-07-06 15:12:21 +00:00
Jenkins
a13e52d4e8 Merge "Make tools/min-env.sh portable" 2015-07-06 15:12:15 +00:00
Jenkins
5992cb86f2 Merge "Add validation script for min env vars documentation" 2015-07-06 15:11:50 +00:00
Jenkins
cb7115241b Merge "Fix CONFIG_STRATEGY var in bash scripts" 2015-07-05 03:12:04 +00:00
Martin André
36eab6a1c3 Sort variables and remove duplicates for min env doc
The script generating docs/minimal-environment-vars.md now sorts
variables alphabetically per service and remove duplicates.

Update minimal-environment-vars.md.

Change-Id: I30cc674b6e9834f2a6c771bd30539a21af39b228
Closes-Bug: #1470504
2015-07-05 09:07:46 +09:00
Martin André
a082d38b97 Make tools/min-env.sh portable
We had different issues here.

First, sort command used to sort variables and services names is
dependent on the local, so fix it to C to have consistent
results. C local is available on all systems.

Second, awk doesn't recognize \s escape char for space on OSX. This
resulted in indented check_required_vars calls being ignored. In fact,
all variables checked via indented check_required_vars calls (i.e. in
a fuction or conditional block) are actually *optional* variables, so
I changed the behavior to ignore those.

Change-Id: I6fc4cca9567cb712609d0fe0a20dfe21ed6df151
Closes-Bug: #1470683
2015-07-05 08:48:41 +09:00
Martin André
97e8dc5e20 Add validation script for min env vars documentation
Change-Id: I46ffa01d0097916055857c3f968e716e0229795f
Partially-implements: blueprint add-min-env-vars-gate
2015-07-05 08:36:21 +09:00
Jenkins
1054ccbb8c Merge "Add new script to fetch tarballs for source installation" 2015-07-04 20:11:00 +00:00
Jenkins
0d26ed0a0a Merge "Add validation script for broken symlinks" 2015-07-04 03:26:25 +00:00
Harm Weites
2c8ca64856 Fix CONFIG_STRATEGY var in bash scripts
It should read KOLLA_CONFIG_STRATEGY.

Change-Id: I1819b4b1b6e28e8f83ad01c078d4c6e4c502587e
Partial-bug: #1471326
2015-07-03 21:16:35 +02:00
Paul Bourke
7b4eedb563 Add new script to fetch tarballs for source installation
This script will be sourced from the build scripts to provide alternate
ways to fetch/generate a source tarball. This tarball can then be
provided to a Dockerfile for source installation.

Change-Id: I0212a83d098b8d83446f69b92c2b07ef39a93c10
Partially-Implements: blueprint install-from-source
2015-07-03 17:20:57 +00:00
Jenkins
0dbf3e2e11 Merge "Remove duplicate PUBLIC_IP entry from tools/genenv" 2015-07-02 21:27:10 +00:00
Martin André
e6ef6218da Add validation script for broken symlinks
Change-Id: Iae6d9f26e1a8dd7d565e9dbd815816c26cb92b74
Partially-implements: blueprint add-broken-symlink-check
2015-07-02 09:09:41 +09:00
Paul Bourke
5afdab4787 Remove duplicate PUBLIC_IP entry from tools/genenv
Change-Id: I385638f4b633aa74fa617f66ab0329556fa314ea
Closes-Bug: #1470456
2015-07-01 11:36:44 +01:00
Sam Yaple
3ac7da64d1 Add initial config function and keystone support
Add set_configs function that implements the flow from the proposed
ansible-multi spec. Move start.sh to config-internal.sh to preserve existing
behaviour.

config-externall.sh copies the appropriate configs in from the bind'd
location and sets permissions and ownership appropriately.

Partially Implements: blueprint ansible-multi

Change-Id: I53fca0660451087f273fefc3c63e0d8cf1a2c096
2015-06-30 17:26:23 +00:00
Harm Weites
73a6ba90c4 Properly set MAGNUM_API_SERVICE_PORT
While at it, place this var in the same place as the other MAGNUM scoped vars.

Change-Id: I7f142415d7fb1874d77778d3d1301956f9799a83
Closes-bug: #1469561
2015-06-28 21:27:32 +02:00
Sam Yaple
62e02fdbf4 Partially revert thin neutron containers
Due to a revert in the Docker code, thin neutron containers do not work
at this time. The neutron plugin agents do not need to exist in the same
container as the other agents however. This allows for using either
linuxbridge or openvswitch

The docker commit that did the revert:
ff770d33cd

Closes-Bug: 1469307
Change-Id: Idf79c31c74c34b93f5a9bac49730aca49bbdb861
2015-06-27 16:39:34 +00:00
Jenkins
a48900bc1c Merge "Liberty requires Cinder to use the v2 API" 2015-06-26 22:13:55 +00:00
Ryan Hallisey
3935cbafa3 Liberty requires Cinder to use the v2 API
The Liberty release of Cinder will remove the v1 api so we
need to disable it in the cinder_api container and use v2.

Change-Id: I5dab7214d4d39afdf92555e3ffbd7f4a6194cd45
Closes-bug: #1469177
2015-06-26 17:17:34 -04:00