summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-19Fix validate-maintainer.sh scriptMartin André2-2/+2
The script wasn't reporting any errors due to a typo. Also fix MAINTAINER field for ceilometer-collector image. Change-Id: Idf1e2746ae395bb05ee679ca71a10a3f103ebfa8
2015-01-19Various fixes to pre-commit hookMartin André2-16/+6
Fix incorrect test in sh. Bash implements the new test with [[ that accepts the double equal, however, this is not a bash script. On Debian and derivates, this will be run by dash. Make the script portable by not using GNU extensions of xargs. Call `validate-all-*.sh` scripts whenever possible. Have bashate look for /usr/bin/env style shebang as well. Remove useless validate-json.sh file. Change-Id: Id2d697f2e9ddaa66e25f71f410200528c1e0cf6b
2015-01-19Cleanup required variables checks for all containersMartin André24-83/+84
This allows Kubernetes to reschedule containers in case a required variable is missing, for example when the Kubernetes pod is started before the service. The checks were cleaned using the following method: * remove duplicates * remove check for variables that get a default value in the same file * check for all variables used in the file * check for required services when it is obvious. Change-Id: Ib7e0530c410c61f828d36efe8925a20dc9781eab
2015-01-19Make scripts work on latest Atomic imagesMartin André12-36/+39
Remove git and jq dependency in most scripts, allowing to run them on latest atomic images, or even distribute Kolla in the form of tarball. The only remainings of git dependency are in the git pre-commit hook, and in the image build scripts. We can remove the latter one and have the scripts running in degraded mode if we really want to. I opted for a python based approach to finding the top-level directory for portability, ensuring consistent result on Linux and BSD, including OSX. Change-Id: I987174032d11b2e9d6a993c563b5dc877c15dd2d
2015-01-15Pass cleanup scripts arguments to dockerMartin André2-2/+2
This allows to maintain the default behavior unchanged while making it possible to force clean. Follow-up to https://review.openstack.org/#/c/145921/ Change-Id: Ie5733b22bda9cdd7d08f5c5ecc5a3d94b984a125
2015-01-14Improvements to build-all-docker-images scriptMartin André1-14/+27
Trap interrupt signal so that the build-all-docker-images script is stopped on Ctrl-C, and not only the current build. Additionally, the script now prints a summary of changes on exit. Change-Id: I3f6ef97d776c7799c73bc709070d97d37406637a
2015-01-08Merge "Cleanup of images and containers needs a '-f' flag to force shutdown"Jenkins2-2/+2
2015-01-08Cleanup of images and containers needs a '-f' flag to force shutdownRyan Hallisey2-2/+2
Change-Id: I0642dcd36fe5af261b8f35744e3e88460a13fc85
2015-01-08Rabbitmq service is looking for 'rabbitmq-master' instead of 'rabbitmq'Ryan Hallisey1-1/+1
Change-Id: Id28a15f1c0f54b4aa2ee1d49ee7f117eb84c977a
2015-01-06Merge "Add script to build all docker images in the correct order"Jenkins1-0/+162
2015-01-06Merge "Make build script respond to `-h` option"Jenkins1-3/+3
2015-01-06Merge "Base all images on kollaglue ones"Jenkins6-6/+6
2015-01-06Merge "Set higher precedence for .buildconf file in image directory"Jenkins1-1/+1
2015-01-06Merge "Lock Fedora-based image to specific versions"Jenkins2-2/+2
2015-01-06Merge "Update the README to reflect new additions to kolla"Jenkins1-1/+6
2015-01-06Update the README to reflect new additions to kollaRyan Hallisey1-1/+6
Added the new containers we are supporting. Kubernetes has updated and kubecfg was replaced with kubectl. Change-Id: I12b88b856dca150087261f86c674012dcc1b4816
2015-01-06Merge "Start and stop scripts are outdated after Kubernetes update"version-m2Jenkins22-19/+70
2015-01-05Start and stop scripts are outdated after Kubernetes updateRyan Hallisey22-19/+70
Kubernetes no longer uses 'kubecfg', but rather 'kubectl'. Therefore, the way that pods and services are being created needs to be changed. In order to create a pod, the parameter 'kind' needs to be set to 'pod' in the yaml file and the api version specified. The stop script now reads from k8s/{pod,service,replication}/ in order to stop all the started pods, services, and replication controllers. Change-Id: Ibd39fa402e9df883df83272c3aefbb69009dfbd2
2015-01-05Add script to build all docker images in the correct orderMartin André1-0/+162
The script is a wrapper for the `build-docker-image` script and thus respond to the same options. It also responds to two additional `--from` and `--to` options that allows building only images that have changed between the specified git revisions. Examples: # Build all images contained in docker directory and push new release build-all-docker-images --release --push # Build only images modified in test-branch along with their children build-all-docker-images --from master --to test-branch Change-Id: Ib83bf475cd2a21965071c13eec4456df5c332edd
2015-01-05Make build script respond to `-h` optionMartin André1-3/+3
It is usually considered good practice for a script to respond to both short style `-h` and long style `--help` options to display help message. This commits adds support for short style `-h` option. Change-Id: I8426b5ec136d08b3a476beea3cb983089e08c401
2015-01-05Set higher precedence for .buildconf file in image directoryMartin André1-1/+1
Source .buildconf file in $IMGDIR last in order to prevent silently overloading configuration by the less specific $TOPDIR/.buildconf. Change-Id: Ia38101b6d4743b454dc2c8ba48d3b55af47ed53b
2015-01-05Base all images on kollaglue onesMartin André6-6/+6
The `kollaglue` Docker hub namespace was missing for some of the images. Change-Id: Id0e0c7f62d638fc2ee79f27c07677abf2902e087
2015-01-05Lock Fedora-based image to specific versionsMartin André2-2/+2
This prevents unexpected breakage on new Fedora release. Fedora 20 is the last release known to work. Images based on Fedora 21 are currently broken as they lack required packages such as iproute. Support for Fedora 21 is on the way and will follow soon once all images have been verified. Change-Id: I849732147302eaf00d864d6b5093ff6ac006f496
2014-12-26Merge "Prefer the use PUBLIC_IP over MY_IP"Jenkins2-3/+3
2014-12-19Merge "Enable usage of containers outside of Kubernetes"Jenkins4-2/+48
2014-12-17Merge "Reduce code duplication in kolla-common.sh"Jenkins1-40/+21
2014-12-17Merge "Remove unused libvirt-service.json file"Jenkins1-10/+0
2014-12-17Merge "Add gitignore file"Jenkins1-0/+6
2014-12-17Enable usage of containers outside of KubernetesMartin André4-2/+48
Kubernetes currently creates FOO_SERVICE_HOST and FOO_SERVICE_PORT env vars as part of starting the containers. However this is not done when starting them with plain docker. Defaulting variables to their common version if they're not already set allows the usage of --link in plain 'docker run' to wire together containers. Co-Authored-By: Charles Crouch <ccrouch@redhat.com> Change-Id: I91098ff987b18646d901ac63a3a644fbb68fc857
2014-12-17Fix use of undefined KEYSTONE_SERVICE_HOST in CeilometerMartin André2-5/+5
This variable is never defined anywhere, and it is not one of the variable automatically exported by k8s or docker. It should be KEYSTONE_PUBLIC_SERVICE_HOST instead. Change-Id: Ib65b0189d0a767212fbb7eff4ce81717d492c3e2
2014-12-17Reduce code duplication in kolla-common.shMartin André1-40/+21
Introduce a generic check_for_os_service function that exits unless it receives a successful response from the corresponding OpenStack service. Additionally use the local keyword to not leak local variables, and fix check for non-existing NEUTRON_API_SERVICE_HOST variable in check_for_neutron(). Change-Id: I67dff2b16a99bc44e928cd6a679dff8cc6a99b39
2014-12-17Remove unused libvirt-service.json fileMartin André1-10/+0
This file is a duplicate of nova-libvirt-service.yaml and is presumably a merge accident after all service files were converted to yaml. Change-Id: I89719e084fcea7010dd6a29beba999e04989d8c5
2014-12-17Add gitignore fileMartin André1-0/+6
The initial gitignore includes build-docker-image script's private configuration file, tox generated files and common temp files created by vim and emacs. Change-Id: I514953471646904b541321d1d878d40a2c8f8b26
2014-12-12Fixed Neutron Service Proxy and Simplified NamingDaneyon Hansen1-1/+1
Previously, the k8s neutron-server service was using a selector for the neutron pod that did not exist. The selector name defined in the service yaml was more appropriate than the label (neutron) defined in the pod yaml, so the label was updated in the pod yaml. Additionally, the naming convention for the neutron pod was changed from neutron-controller to neutron-server to more correctly depict the pods functionality. Change-Id: I99465069bb3c37e7bf17c6d7a8f3559f87bf7140
2014-12-08Merge "Remove duplicate write of openrc"Jenkins1-8/+1
2014-12-08Merge "Check for all required variables in keystone start.sh"Jenkins1-1/+4
2014-12-04Merge "Cleanup variable checks in glance-registry/start.sh"Jenkins1-2/+1
2014-12-04Allow building docker image from anywhereMartin André1-3/+4
Record the image directory path to a variable and use it instead of the current directory to allow the build script to work independently of the location. Closes-Bug: 1398648 Change-Id: I84c52e41e43af10998f8e9267ccc059eca716c1c
2014-12-04Remove duplicate write of openrcMartin André1-8/+1
Use KEYSTONE_PUBLIC_SERVICE_HOST in favor of KEYSTONE_PUBLIC_PORT_5000_TCP_ADDR Change-Id: Icea714e4c207a1f518faf7bda8235d4f0bc9e3f9
2014-12-03Cleanup variable checks in glance-registry/start.shMartin André1-2/+1
Remove redundant checks for MARIADB_SERVICE_HOST and DB_ROOT_PASSWORD that are performed in `check_for_db`, and add missing check for GLANCE_DB_USER. Change-Id: Ie8194ce76274a9356dcc0b51353873d8a632c66a
2014-12-03Prefer the use PUBLIC_IP over MY_IPMartin André2-3/+3
PUBLIC_IP is more descriptive that MY_IP, it should be used consistently across Kolla. Change-Id: Iff6ae903e794ec84a40a300b36512422b7a81f71
2014-12-03Check for all required variables in keystone start.shMartin André1-1/+4
This allows Kubernetes to reschedule the container in case a required variable is missing, for example when the Kubernetes pod is started before the service. Additionally, define the KEYSTONE_ADMIN_SERVICE_HOST and KEYSTONE_PUBLIC_SERVICE_HOST variables to their common version if not already set to allow usage outside of Kubernetes with docker link feature. Change-Id: Ie0966c18076a770e4031bbf5f777dd1be0ba20bc Closes-Bug: 1398632
2014-12-02Properly format markdown in README.mdMartin André1-40/+56
Mark code blocks and list items as such. Also use preformated text for commands or flags and wrap long lines. Change-Id: I6992abb1e1f18fba62adc127285d75f3f39659db
2014-12-01Merge "Adds Neutron Networking Support"Jenkins31-55/+490
2014-11-26Merge "Horizon container implementation"Jenkins8-0/+85
2014-11-25Fix to not fork mongod so mongodb container works as expectedPradeep Kilambi1-1/+1
For some reason forking the mongod process seems to cause issues when the container comes up. If i remove this and run the images with detach and publishall flags i can connect to mongo instance. Change-Id: I0b7193e6369084e3aeec857607dda9c3f235770d
2014-11-25Adds Neutron Networking SupportDaneyon Hansen31-55/+490
Implements: blueprint kube-neutron-container Previously, only the neutron-server service was functional. This patch adds support the the rest of the neutron services need by Nova instances to function. The linux-bridge agent is used instead of the OVS agent to realize network abstractions. This is because the ovs-agent package will install the kernel module version of OVS instead of the userspace version. Additionally, the OVS userspace code is still very experimental and reduces performance. Requires: https://github.com/larsks/heat-kubernetes/pull/8 Change-Id: I5ef34ddeb48d4954934571a928cc82ae7f3a0f20
2014-11-24Horizon container implementationRyan Hallisey8-0/+85
Horizon requires that Nova, Neutron(Nova Network), Glance, and Keystone are running. Therefore, the container needs to check for the availablity of each service on startup. The config file is not a .ini file, but rather a python file so it requires using sed instead of crudini. Change-Id: I5ed14514881fe9aef688ca08bcb94881ef5b25cb
2014-11-21Merge "Adds support for Functional Nova-Network"Jenkins6-57/+66
2014-11-21Merge "Implement zaqar container"Jenkins8-0/+124