summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2015-06-03Fail image build when build script is missingMartin André1-1/+4
When an image did not provide a build script, due to a broken link for instance, the build-all-docker-images script was wrongly marking the image as "up-to-date", and the functional gate was reporting success. This commit restores the expected behavior, and mark the images with non-existent build scripts as failures. Change-Id: Ifedc8d9c312925fe5aa953ed8f8fdae02b756906 Closes-Bug: #1460959
2015-05-28Make clenaup-containers bashate compliantSteven Dake1-10/+10
Change-Id: I5469e6e60b9e20ee98c9149697f663e94e58077d Partially-Implements: blueprint bashate-gate
2015-05-28Make build-all-docker-iamges bashate compliantSteven Dake1-1/+1
Change-Id: I62dbd2c3e0e6f66b1be5777bb8bbda4e43b2b5db Partially-Implements: blueprint bashate-gate
2015-05-26Clean up the image functional testJeff Peeler2-1/+74
1. Move setup_docker.sh to tools directory 2. Make a setup_gate.sh that installs necessary packages including docker and starts docker. 3. Add logging output. 4. Add default test timeout of 2 hours. 5. Add user to the docker group before running test cases. 6. Run image build as dockerroot group. This patch has to be one commit to fix the gate in one go. Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I83f3cdb1dabf0dfface589c581cb22c155467acc
2015-05-26Force developers not to run build-docker-image as rootSteven Dake1-0/+5
Instead recommend developer run build within the docker group. This script is non-functional as the root user. Change-Id: Ib70ab55e5e9bc2e7b8639d5d5ffc32a2b8795058
2015-05-26Always provide a tag when building with build-all-docker-imagesMartin André1-1/+16
When we're not providing a tag, the build script will use one based on the short SHA of the tip of the current git branch. Make the `build-all-docker-images` script always provide a tag to `build-docker-image` in order to prevent issues with Docker not being able to find the base image when changing branches during an ongoing build. Closes-Bug: #1458739 Change-Id: Id6925b792f46d14b20a7dbebfaf0d351ddec6538
2015-05-25Merge "fix subnet-create call for demo-net"Jenkins1-1/+1
2015-05-24Merge "Restructure builds to allow more flexibility"Jenkins1-1/+10
2015-05-18Merge "Set release tag to 'latest' for development branch"Jenkins1-1/+1
2015-05-18fix subnet-create call for demo-netJustin Riley1-1/+1
(neutron client version: 2.5.0) The option is --dns-nameservers not --dns_namservers and the subnet-create subcommand expects the NETWORK and CIDR to be adjacent args. Change-Id: I4f776632902fd001c38ee5c8c87a213883ca87be
2015-05-15Restructure builds to allow more flexibilitySam Yaple1-1/+10
As a restructure, nothing is changed from the original behaviour and naming despite the file structure changing. The symlinks to build had to be updated generating lots of "deleted" and "new_file". The new structure is: docker/${base_distro}/${type}/${container} base_distro == centos, ubuntu, fedora, etc type == source, binary, rdo type rdo is a symlink to binary for backwards compatibility Two new flags are added to the build-all script to support the ability to support different base distros and a flag to support binary or source containers. There are several added folders that are empty to hold the directory structure for future containers of these types. To use a prefix other than centos-rdo- you can set PREFIX in the toplevel directory .buildconf file Change-Id: Ifc7bac0d827470f506c8b5c004a833da9ce13b90
2015-05-14Merge "Fixes Nova NoVNC"Jenkins1-2/+4
2015-05-13Add functional tests to toxJeff Peeler1-1/+15
This adds functional tests to tox, along with a number of prerequisite steps. Since this is primarily a bash project, pbr usage has been avoided. Tests are to be written in python and put in the tests directory. Running tox -e setupenv will execute a setup script (tests/setup_docker.sh) to ensure the running instance of docker meets the minimum version requirement. Running tox -e images will execute the image building script (tools/build-all-docker-images) and will parse the resulting output to report failures. Running tox -e startenv will generate the environment file, run "tools/kolla start", and run first time initialization (eventually). Running tox -e functional is for actually testing the deployed OpenStack environment via a series of tests utilizing the client APIs. Change-Id: Iff6dfdca43f0c44d471e7540a7836e56a0de4507
2015-05-13Merge "add restart and destroy subcommands to tools/kolla"Jenkins1-0/+16
2015-05-12Allow private docker registriesSam Yaple2-5/+20
Change the sed seperator to accept a namespace with a private registry and add an option to specify the registry. Below is an example for a registry located at 192.168.0.10:5000. $ ./build-all-docker-images -r 192.168.0.10:5000 The final image name would be something like this: '192.168.0.10:5000/kollaglue/centos-rdo-base' All build, push, and pull commands will still function the same. Change-Id: Ic0ff96bb8119ddfab15b99e9f1e21cfe8d321dab
2015-05-12Fixes Nova NoVNCDaneyon Hansen1-2/+4
Previously, vnc was not completely working properly because nova.conf config flags were not properly implemented in t he correct containers. This patch moves the nova.conf config flags for vnc to the proper containers. Additionally, the patch modifies the proxy client ip param to be consistent with the param within nova.conf and adds all the novnc params to docs. Change-Id: I1944baca64ccd113bbca582784b08f90dc0eff69
2015-05-12Merge "fix net-create call for public1 in tools/init-runonce"Jenkins1-1/+1
2015-05-12Merge "Additional option to cleanup even failed containers"Jenkins1-1/+10
2015-05-12fix net-create call for public1 in tools/init-runonceJustin Riley1-1/+1
The --router:external option is a boolean flag that doesn't take a value (neutron client version 2.5.0). Passing True results in the following error: Invalid values_specs True This patch simply removes the 'True' value. Change-Id: If4b5305f37d50c14c767393eb21223b0e0b59494
2015-05-12add restart and destroy subcommands to tools/kollaJustin Riley1-0/+16
Convenience commands for restarting all containers and destroying all containers Change-Id: I9c4759dbe699bd4b609cefa694ecc897355ff60a
2015-05-12Set release tag to 'latest' for development branchMartin André1-1/+1
Change-Id: I418583af2d2795f4b63ded2aa3e2cbedd70993c8
2015-05-11Make a demo for MagnumSteven Dake1-2/+3
Make a Magnum demonstration that creates a baymodel and bay. Just run demos/magnum/launch to make it work. This depends on Neutron. Borrow the v1beta3 redis example from the examples repository in Kubernetes. Change-Id: I448a5890bfe0c1675914ae7dbd02fad03f4b1eeb
2015-05-11Add Magnum Containers as a Service to KollaSteven Dake2-0/+13
This adds Magnum Containers as a Service to Kolla. Change-Id: I572cd62845515f42a6a16291d2bd87ad8d972e24 Implements-blueprint: container-magnum
2015-05-11Additional option to cleanup even failed containersSam Yaple1-1/+10
Also support --pull flag to pull the latest version of the base Change-Id: I3205d6e799772138edaf2b0666353c19dfbf52f0
2015-05-08Merge "Updates cleanup-containers"Jenkins1-1/+37
2015-05-06Updates cleanup-containersDaneyon Hansen1-1/+37
Previously cleanup-containers suffered from the following limitations: 1. The docker rm command would fail if all the containers were not stopped. 2. The script would throw an error if no containers existed. 3. Artifacts such as veths, bridges, etc.. would remain on the host after containers were removed. These artifacts should be removed if the containers are removed. Change-Id: I5eadb23fec9e34125a32f6c3e39c241d97932910
2015-05-06Port to KiloSteven Dake1-1/+1
Use kilo upstream RPM packages Partially-implements: blueprint port-kilo Change-Id: Ia0b4db5dc8e40c01184871e77458dc718c3c46cd
2015-05-06Add a novnc container running the novnc-proxy.Harm Weites2-1/+13
All VNC-specific configuration bits are moved from nova-api-base to nova-compute and the new nova-novncproxy and nova-consoleauth containers. The compose specification has been updated to reflect this. A future patch will make the desired backend configurable (spice/vnc). Change-Id: I8b64abf125fd1ecd7d3463515e3717dd9bd60420 Blueprint: novnc-container
2015-05-06Port to JunoSteven Dake1-1/+1
This represents the Juno release of the images. Partially-implements: blueprint port-kilo Change-Id: I2837ec25a2aa093b7fff7519f3ed608ec93736bf
2015-05-06Add heat-api-cfnSteven Dake2-2/+5
Add Heat-api-cfn for wait conditions Magnum needs wait conditions in order to operate properly. heat-api-cfn is where wait conditions connect. Change-Id: I56742dd96e4607dc0042d0cef4e18c922f9ed736 Implements: blueprint container-heat-api-cfn
2015-05-05Initial support for taggable dependenciesMartin André2-5/+19
Introduce a new --no-use-released-parent option to `build-docker-image` that allows specifying whether the parent image uses the same tag as the one that's currently build or the release tag. Default is to use the release tag for parent image, however `build-all-docker-images` script forces it to be the current tag. Change to Dockerfile is coming next. Change-Id: Ief11c9abb722c181ca85f38ee11800dbf4332a5f
2015-05-01remove cirros download from post_start in tools/kollaJustin Riley1-6/+0
The cirros image download and creation now happens in tools/init-runonce. Change-Id: Icb83526c1fbe42b96957dd39ad9e46a1cf450471
2015-04-29neutron subnet-create requires args at the endJustin Riley1-1/+1
The network name must be next to the CIDR otherwise `neutron subnet-create` gets confused. Change-Id: Ie8b19d3824e5e25f80c61f0794595813c80b98da
2015-04-30Merge "Preserve file attributes when copying image dirs for build"Jenkins1-1/+1
2015-04-28Merge "Consolidate tools/conf-* scripts in tools/init-runonce"Jenkins4-119/+81
2015-04-28Merge "Change the default shell to bash"Jenkins6-6/+6
2015-04-28Preserve file attributes when copying image dirs for buildQiu Yu1-1/+1
Add "-a" to preserve file attributes so that unnecessary Docker image build can be avoided. Otherwise, build-all-docker-images will generate additional image layer due to timestamp change. Change-Id: I893fa0637937c521198f50b1bba203a27c9f00a3 Closes-Bug: 1449287
2015-04-28Consolidate tools/conf-* scripts in tools/init-runonceMartin André4-119/+81
Fix issues reported in https://review.openstack.org/#/c/177681/3, and simplify detection of cirros images in glance. Only add developer's SSH key to nova if ~/.ssh/id_rsa.pub exists and is readable. Change-Id: I5936c6db399d63902d460b0d3c959619073cc3cc
2015-04-27Add support for configuring via Neutron networkingSteven Dake1-0/+63
Configure the network for use with Neutron. Co-Authored-By: Daneyon Hansen (danehans@cisco.com) Change-Id: Iab0496cf40683ca29cbe38066ae446aa8c6c4c36
2015-04-27Add a conf-novanet to configure novaSteven Dake2-12/+60
Configure nova networking and nova quotas to allow 40 m1.small instances to run. Checks for keystone credentials set. May only be run once. Change-Id: I36e01d42ec283651babbb59268452a65e644626e
2015-04-27Change the default shell to bashChen Zhiwei6-6/+6
Unify the shell to bash in all Kolla scripts. Change-Id: Ib9591b2f8f344eb88455c5e9b7ecf2164fb5960a Implements: blueprint use-bash-shell
2015-04-24Check compose cmd resultFang Fenghua1-0/+4
Should check compse cmd excute result can't let it go. Change-Id: Ifd20e3b7f4ae385f7d45ab119a8850f44f254bac Closes-Bug:#1447959
2015-04-21Kolla runs process on rabbit, not rabbitmqSteven Dake1-1/+1
The kolla script runs its process on rabbit, not rabbitmq. This results in the rabbitmq compose scirpt not being executed. Change-Id: I80f8d537c36b6cd598cdcf87f77df418db8ed035
2015-04-21Merge "Introduce `tools/kolla` to interact with kolla"Jenkins5-285/+140
2015-04-17Merge "Fix validate-all-yaml.sh to check for files with yml extension"Jenkins1-1/+1
2015-04-16Introduce `tools/kolla` to interact with kollaMartin André5-285/+140
This is supposed to prevent proliferation of scripts in "tools" directory and reduce code duplication. This first patch replaces tools/{start,stop,pull,status} scripts and more commands are to be added in the future. Change-Id: I3d99cf5033be8631d8e6f32a4c34d3b5ffcae7e8
2015-04-16Merge "Adds a Status Script"Jenkins1-0/+47
2015-04-14genenv generated invalid variableSteven Dake1-1/+1
NEUTRON_SHARED_SECRET was being generated incorrectly. It had a colon at the front, which causes nova not to operate. Change-Id: Id0d9390fa60b3d946513098fed394aaba3a53c70
2015-04-14Adds a Status ScriptDaneyon Hansen1-0/+47
Previously, only start/stop scripts existed. The status script runs docker-compose ps for each container so users can get a quick snapshot of their Kolla environment. Change-Id: I3204f3e7404ad906d5330cf67d091fc1f06d3030
2015-04-14Adds Neutron to Start/Stop ScriptsDaneyon Hansen2-4/+22
Previously, Neutron was not included in the start/stop scripts. This patch reads the NETWORK_MANAGER value from openstack.env to start/stop either nova or neutron networking. Change-Id: I85b31396c2b816b89f33206443c3d60cb4b7914b