summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2015-04-14Fix validate-all-yaml.sh to check for files with yml extensionMartin André1-1/+1
YAML files can have .yaml or .yml extension. Make `validate-all-yaml.sh` check for *.yml files in addition to *.yaml files since we now have some of these in our source tree. This should help to prevent bogus YAML files to land in the repository. Change-Id: Id59273680fc2424f7b636033b1d641efcaaeba22
2015-04-14Merge "Sets debug logging to false"Jenkins1-2/+1
2015-04-13Merge "Changes Default Image Prefix"Jenkins1-1/+1
2015-04-13Sets debug logging to falseDaneyon Hansen1-2/+1
Previously, debug logging was enabled by default. Only verbose logging should be enabled by default. Change-Id: I5a1fc805284be777dd49c79cc344a5e8600a238d
2015-04-13Sets Neutron log_dir=/var/log/neutron as defaultDaneyon Hansen1-1/+1
Previously, the log_dir was blank, causing neutron to log to stdout. The log_dir param must be set for this: https://github.com/stackforge/kolla/blob/master/docker/neutron/neutron-agents/config-scripts/config-dhcp-agent.sh#L69 Change-Id: Ibf14224e5a6f27f2c0f9900828a7cd00f3babfab
2015-04-13Changes Default Image PrefixDaneyon Hansen1-1/+1
Previously, Fedora was set as the default image prefix. Since our reference architecture focuses on CentOS, the default image prefix has been changed accordingly. Change-Id: I794ac1aa035d793204fa315752ae8188ce872a3e
2015-04-13Adds Neutron Agents SupportDaneyon Hansen1-5/+16
Previously, the agents ran in seperate containers. Since some of the agents create and use network namespaces, runnning them in seperate containers has become a challenge. This patch adds neutron agent support in a single container. Partially Implements: blueprint compute-operation-neutron Change-Id: If4f893abd50d90b58e8435ec2659870dce36951c
2015-04-10Adds neutron-server to neutron container-setDaneyon Hansen1-3/+24
Adds neutron-server components of the neutron container set. Partially Implements: blueprint compute-operation-neutron Change-Id: I63525ae85f4ead4e010cdb9b6bc8059bb9d252e7
2015-04-07Adds Initial Logging SupportDaneyon Hansen1-0/+26
Previously, logging was hard coded into the nova and neutron containers. This patch creates two common params for logging: DEBUG_LOGGING VERBOSE_LOGGING and sets default values of verbose=true and debug=false. This patch implements logging for Nova and Neutron. Add'l OS service config scripts and images will need to be updated to use the logging params. Change-Id: I03d48005d5b4789aa3c519879a20d963ef1cbaa3
2015-04-06Merge "Remove mkdir of shared dir"Jenkins1-5/+0
2015-04-06Merge "Check for SELinux in enforcing mode and exit if found"Jenkins1-2/+9
2015-04-02Remove mkdir of shared dirSteven Dake1-5/+0
We no longer bindmount qemu directories and instead use the volume_from feature to get that job done. As such remove the creation of the directory. Change-Id: I20aa0b5d8b8e5e0bd9ccc69ab07009635c693b02
2015-04-02Check for SELinux in enforcing mode and exit if foundSteven Dake1-2/+9
Previously the start script would disable SELinux That is a policy choice by the administrator, not something that should be done in a development tool. Instead suggest setting SELinux to permissive mode manually. Change-Id: I342a1614f9c10ec066cd2a8dc79280481e0b7570
2015-04-02Add a tools/pull toolSteven Dake1-0/+102
this uses docker-compose (-c flag) or docker (-d flag) to pull the latest images from docker hub. Change-Id: I7793178deeb2e37c92fb1518ae8666432e74d9b7
2015-03-30Merge "Loads ebtables from inside the containers"Jenkins1-4/+0
2015-03-28Loads ebtables from inside the containersSam Yaple1-4/+0
We have to overlay the /lib/modules folder from the host to properly `modprobe` from within a container. We don't have to give it write permissions however, so the docker-compose volume is mounted in as 'ro' Change-Id: I95101136dad56e9331d8b92cd394495f7bd0576a
2015-03-27Partially Implements: Container set compute-operation-neutronDaneyon Hansen1-0/+4
Adds the neutron-linuxbridge-agent to the neutron container set. Change-Id: I20752611c24a3110cc5d2e4fca2d501fc32a4d87
2015-03-25Extends Nova Metadata Service Parameterization and CompositionDaneyon Hansen1-0/+4
Previously, nova enabled_apis was hard coded and metdata_host was using PUBLIC_IP param instead of exposing an individual param. Extending these params and creating a separate compose yml that includes compute/libvirt/network/api is required to support nova network multi_host. Additional details can be found here: http://docs.openstack.org/admin-guide-cloud/content/section_metadata-service.html Change-Id: I5d417a0ee460f8ad9b2982fe83d63ab57013918e
2015-03-24Refactor nova-networkDaneyon Hansen1-1/+1
Previously, eth0 was set as the nova flat interface. This interface is used to bridge VM traffic between instances and should not have an IP. It's a problem when you associate an interface with an IP to the FLAT_INTERFACE. Change-Id: I38c516094430e2d55b1b4c047a1bbcfe711a2dff
2015-03-24Merge "Have genenv offer some hepful hints about FLAT_INTERFACE"k3Jenkins1-0/+3
2015-03-23Merge "Fixes bug where heat container was not getting heat meta data"Jenkins1-0/+2
2015-03-23Fixes bug where heat container was not getting heat meta dataRyan Hallisey1-0/+2
Heat container is having trouble accessing heat meta data. Heat needs to have HEAT_CFN_API_SERVICE_HOST set in order to properly receive meta data. Closes-bug 1435288 Change-Id: Ia28ece3ae91ec7acc62cc86039612841ac487f36
2015-03-23Merge "Add a stop command to shut down Kolla AIO"Jenkins1-0/+35
2015-03-21Add a stop command to shut down Kolla AIOSteven Dake1-0/+35
Use docker-compose with the stop operation rather than cleanup-containers -f. Change-Id: I1b0f97589b04eaa4e3a0b4e5247294e4c4b0dc47
2015-03-21Check for root privilege in start.shJeff Peeler1-0/+5
This change was lost in 888bb9cc8c68bf61fddc0ca08a69f764a4012121. Both modprobe and setenforce require root, so I think this is a good sanity check. Change-Id: I431df44e0fed4a981df96a9a98bfbb5c350e49ac
2015-03-21Merge "Use -L flag in curl"Jenkins1-1/+1
2015-03-21Merge "Make the Horizon dashboard work properly"Jenkins1-0/+3
2015-03-21Merge "Improve Heat integration"Jenkins2-0/+13
2015-03-20Use -L flag in curlSteven Dake1-1/+1
The cirros image uses a redirect. Use curl -L to follow redirections. Change-Id: I3a9309901ab3528442009fd6802600c51c98242f
2015-03-21Merge "Implements: blueprint Implement a database container set"Jenkins1-3/+3
2015-03-20Have genenv offer some hepful hints about FLAT_INTERFACESteven Dake1-0/+3
The FLAT_INTERFACE is for vm communication, and should be manually configured if necessary. Change-Id: I79846705c18c2f0f2d4340e53d04183ec689e191
2015-03-20Add ADMIN_USER_PASSWORD to genenv toolSteven Dake1-1/+5
The genenv tool was generating the wrong password for the openrc file as a result of recent keystone rework. This patch fixes that problem. Change-Id: I169e3255e3f3ef57938861c31ef4e342d9a32cbc
2015-03-20Make the Horizon dashboard work properlySteven Dake1-0/+3
The Horizon dashboard was not working properly prior to this work. Also a docker-compose file was added to start the dashboard. Change-Id: I8a438c15b967b0cec00bfe44b997f833bf745191
2015-03-20Improve Heat integrationSteven Dake2-0/+13
Generate Heat environment variables. Rename yml file to api and engine to follow other service conventions. Add heat to compose/start Modify integration guide to include new variables. Change-Id: I058d829901881e28d6f4785f59fcf778058241e4
2015-03-20Implements: blueprint Implement a database container setDaneyon Hansen1-3/+3
Previously, the database container was configured for use with Kubernetes. This patch removed any k8s dependencies, adds a script to manage mysql server.cnf settings and splits data and app containers. Splitting the containers provides additional portability and operational efficiencies compared to host mounts. Change-Id: I80656450c02dda5f2959d187eec20d5877dc54a2
2015-03-20Move genenv.sh and start.sh to tools directoryMartin André2-0/+184
Rename them `genenv` and `start`. Have `genenv` create the openrc file in the top-level directory. Add openrc and compose/openstack.env to gitignore, as well as *.img. Change-Id: I5d8006e97efd77cf364215f55d5e585139ae273e
2015-03-19Remove traces of kubernetesSteven Dake8-121/+0
Change-Id: Ie14063022aa1f4e1409421b8049ec75ec9a32802
2015-03-06Merge "Allow changing base image"Jenkins2-0/+6
2015-03-02Allow changing base imageMartin André2-0/+6
By changing the PREFIX variable in the .buildconf one is now able to build docker images from different bases. For example, add the following line to your .buildconf file to build CentOS based images: PREFIX=centos-rdo- Default base image is Fedora. For now only RH family is supported. Additionally, changing the namespace either with the NAMESPACE variable in .buildconf or via --namespace commandline option now changes the source namespace as well from the default kollaglue one. Implements: blueprint multi-baseos Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I3964cd2292789ea883a1f2d2738a5731a4fff49b
2015-02-27Have build scripts work in copies of kollaMartin André2-6/+14
Make the build scripts work in copies of Kolla so that developers can continue working while a build is is progress, which can be very long in the case of build-all-docker-images. Change-Id: I1b5d9b59ed34dfa622a42495e07d9a1d2ecde86e
2015-02-26Fix image dependencies in build-all-docker-imagesMartin André1-1/+1
Missing quotes around $FORCE_NAMESPACE was causing empty namespace unless the --namespace switch was passed on the command line. Change-Id: I474d67e133111bde7935b6f06ff3c8ca0f19d6cb
2015-02-23Quote array index with -n so -n works properlySteven Dake1-1/+1
For some reason -n doesn't work with arrays, probably becuase the array has an entry by the array's indexed value is empty. By quoting it we get it as one unit, which behaves as expected. Change-Id: Ic3243d13d3f8fc9978c460f816e33ad348302d8e
2015-02-16Allow symlinks in the container buildSteven Dake1-1/+5
This patch permits symlinks in the docker build. Normally docker does not permit symlinked files in the build context sent to the docker server. To work around this problem, a secure directory is created in /tmp and the container contents are copied to that directory. Any symlinks are turned into their non-symlinked equivalents. Change-Id: I38cd5aeed4c73b90449354a0979fc6ddf7891ccb Implements-blueprint: linked-build
2015-01-26Merge "Various fixes to pre-commit hook"Jenkins2-16/+6
2015-01-20Merge "Fix validate-maintainer.sh script"Jenkins1-1/+1
2015-01-20Merge "Make scripts work on latest Atomic images"Jenkins12-36/+39
2015-01-19Fix validate-maintainer.sh scriptMartin André1-1/+1
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-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