aboutsummaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2016-01-20refactor the cleanup containersAllen Gao1-10/+10
TrivialFix Sort the containers, remove *_data ones, etc. Change-Id: Ic7923828517da954e7c8802d6cf5918e425df255
2016-01-20kolla-ansible: add prechecks subcommandAllen Gao1-0/+6
TrivialFix Change-Id: Ifb0ca3383cd04f5ff6baeb30ae6996d450d5c579
2016-01-19Merge "kolla-ansible: add post-deploy subcommand"Jenkins1-2/+8
2016-01-18Remove the not used setup_docker.sh fileJeffrey Zhang1-73/+0
TrivalFix Change-Id: I18a69d31c1b3442c79b7ffaab7259363600727e2
2016-01-15kolla-ansible: add post-deploy subcommandWanlong Gao1-2/+8
It is more convenient to add a subcommand instead of assigning playbook path manually. Change-Id: Ia2f27a0f44eb719b28d5e7f9762dc47186eeb0e6
2016-01-13Merge "Standardize bashate and add linters"Jenkins1-0/+7
2016-01-13Add kolla-ansible upgrade commandSamYaple1-0/+4
Change-Id: I432802fed979c9e42fb51703ce830f0fd8debc1e Partially-Implements: blueprint upgrade-kolla
2016-01-13Standardize bashate and add lintersSamYaple1-0/+7
The linters gate combindes pep8 and bashate (and then any other linters we want). This changes bashate to be a sript rather than doing a script inline. This matches the way other projects (and project-config themselves) uses bashate [1]. Once a change upstream merges we can remove the redundant pep8 and bashate gates. [1] https://github.com/openstack-infra/project-config/blob/master/tox.ini#L11 https://github.com/openstack-infra/project-config/blob/master/tools/run-bashate.sh Related-Id: I2afa7931bf3e18798b95a8af33ccf5ef761c4ad5 TrivialFix Change-Id: I2ea2c1156e1b4de008f19e333e2740795dc406de
2016-01-06make the kolla-ansible python3 compatibleJeffrey Zhang1-1/+1
* remove unused sys * user print() for python3 compatible TrivalFix Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374
2016-01-04Allow common role to pull imagesSamYaple1-2/+7
Change-Id: I3de01770eca6b7e681b7964a6d6e15564065aaea Partially-Implements: blueprint pre-pull-images
2015-12-14Remove ironic containers in the cleanup scriptArtur Zarzycki1-1/+2
TrivialFix Change-Id: Ia37369acf8bf7ca7f49fd647f40c6e98f40e93d8
2015-12-09Remove cinder containers in the cleanup scriptSidharth Surana1-1/+2
Change-Id: I29b788a71f30d133e66759a5de2ecd43222313a8 Closes-Bug: #1524557
2015-12-02adds tools/cleanup-containers regex supportSean Mooney1-20/+24
- 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-11-29Output unique admin id of user and project listHui Kang1-2/+2
Change-Id: I8983768b6fafdd70f4c8aa7bdcf91af4f50efe70 Closes-Bug: #1520982
2015-11-28Remove openvswitch_data container in the cleanup scriptHui Kang1-1/+1
Change-Id: Iec94e254e8df501005fd3660c80e3c2eefbb05bb Closes-bug: #1520833
2015-11-23Remove hardcoded MAINTAINER in DockerfilesSwapnil Kulkarni (coolsvap)1-1/+1
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
2015-11-13Merge "Add Ansible support for Magnum"Jenkins1-0/+1
2015-11-13Add Ansible support for MagnumMichal Rostecki1-0/+1
Change-Id: Idb25ac4d3148c9b9400cf675ac2e47d35cce6224 Implements: blueprint ansible-magnum
2015-11-09Fix validate-all-maintainer.sh to look for Dockerfile.j2Angus Salkeld1-2/+1
And fix the fallout. Change-Id: Iccad3f4fdb0a6a7c14246df3408cae0425b833a5
2015-11-06Merge "Few improvements in Kolla tools. Added Ubuntu support."Jenkins1-0/+2
2015-11-06Few improvements in Kolla tools. Added Ubuntu support.Kirill Proskurin1-0/+2
pip install default prefix in Ubuntu is /usr/local, and Kolla tools scripts didnt respect that. So I added few OS checks in this scripts. I improve config path check in build.py. Added more verbose error if we can't find config directory. Change-Id: Ide521ed205b0dc1fc27e237a9a8f4da0168e664f Closes-Bug: #1512302
2015-10-28Use kolla_internal_address in the example rc fileHui Kang1-1/+1
Change-Id: I4ec1b5208a347a45ff729e1d8bff6fe6e37b925e Closes-Bug: #1509865
2015-10-22Remove memcached container in cleanup-containers toolMichal Rostecki1-1/+2
Change-Id: Ic56b7b2fd6cd7d191cc364a37f3ebbc44950932e Closes-Bug: #1508780
2015-10-06put conatiner name to array in cleanup-containersKuo-tung Kao1-4/+5
The brace in string variable will not be expanded in some case. Put conatiner name into array. Change-Id: I2fb16e7352bd579f207efce0fb9b2565a1e7236d Closes-Bug: #1502467
2015-09-27Improve cleanup scriptSam Yaple1-5/+31
Its still dirty, but at least it won't kill all your containers. Change-Id: Ie468210bd0f273432ca16fc9530bf9acd2a808ed Closes-Bug: #1486620
2015-09-18Fix a small bug of wrong path to validate-docker-execuateHui Kang1-2/+1
Change-Id: I61e7ac2bb0ec0b960dc807d8880d5da105aacd14 Closes-Bug: #1497463
2015-09-15Make kolla-ansible work in pip installed kollaMartin André1-5/+13
This is a quick hack to get kolla-ansible working with pip installed kolla, kolla-ansible will need to be rewritten at some point in python. Closes-Bug: #1495797 Change-Id: I7cf8c4baae76ff8f31514f64bed934848a1c3e40
2015-08-31Improve scripts with some check before kick rm commandKai Qiang Wu(Kennan)2-3/+12
Closes-Bug: #1490387 Change-Id: I4a9476085b9c5b2cae3801e5b1954e85068f4e03
2015-08-28Merge "Use external address in openrc-example"Jenkins1-1/+1
2015-08-28Use external address in openrc-exampleSteven Dake1-1/+1
This is mostly a docs change. The external address should be used rather than the internal address when sourcing openrc-example. The internal address may not be accessible from outside the VIP interface. Change-Id: I10ac0c116227af9c4409a050203e2a28e3a116a2
2015-08-28Remove docker directorySteven Dake5-488/+0
Remove the docker directory (yay) and old build tools. This will result in an f21 failing gate - however, I have a patch submission to remove that gate from our project configuration. Change-Id: I3c461cedb6906422c8076f60c470e773d6cdcf33 Partially-Implements: blueprint remove-docker-dir
2015-08-25Modified build.py to run from installed locationSuhail Syed1-0/+1
Modified build.py to run from installed location or developer environment. To run from development environment, run the command: sudo pip install -e . Additionally, remove a TODO that has been done Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: I922696ba439da2c9747e65cddcba47203e54d220 Implements: blueprint python-package
2015-08-24Make Kolla installable via PIPSuhail Syed1-469/+0
Install Ansible code, etc file examples, scripts, an open rc example, a tool to initialize the OpenStack deployment, and other various useful bits. Start the versioning at 0.1.0 as recommended by ttx. Change-Id: I35fa4042040957e7725c7fc3b146009e0135499a Partially-Implements: blueprint python-package
2015-08-24Build.py regex filteringMichal Jastrzebski (inc0)1-4/+34
Adds option to build.py to only build images matching and its dependencies Change-Id: I281bea5bed932b7c948b247392fa6a52b1d1aecf
2015-08-23Add retries to build.pySam Yaple1-18/+19
Additionally, fix an if statement to catch multiple layers of parent images failing so the grandchildren do not attempt to build either. Change-Id: Ie9cdf7600e067678e52938910f0d3c072adcdf8a Partially-Implements: blueprint build-script
2015-08-21Add custom code to base docker templatesMichal Jastrzebski (inc0)1-0/+8
Sometimes you need custom code in Docerfiles to solve for example proxy problems or preconfigure base image in some specific way. With this commit you can insert content of custom file to the beggining of base Dockerfile to provide these changes Partially-implements: bp rhel-based-image-support Partially-implements: bp add-proxy-to-dockerfiles Partially-implements: bp build-script Change-Id: Idbfec764aad627f5c00dc09c4854d5fa1c5ac9cf
2015-08-20Allow Docker to make better use of cacheSam Yaple1-0/+15
Docker cache takes into account things like filesize, hash of file, and even timestamp and access times when determining whether to use the cache or not. This modifies the build script to adjust all the timestamps to 0 epoch. Since we dont care about timestamps this allows us to make far better use of the cache, including when downloading and creating tarballs for source builds. Change-Id: Id4287cf1fcaa2de63feaab9e6f4ebbd4defdb768 Partially-Implements: blueprint build-script
2015-08-19Merge "Move defaults.yml to group_vars/all.yml"Jenkins1-1/+1
2015-08-18Use one data container for all data volumesSteven Dake1-1/+1
The previous method of using the API image for a data container worked, but resulted in more data being bindmounted and copied into the system. This patch resolves that by essentially using a distro-type as a FROM in a Dockerfile to generate distro-type-data. Further all of the data containers used throughout ansible are modified to use this new data container. Change-Id: I8846573d4f2d4b98d4f46c770bfefc6d4c5cd0b5 Partially-Implements: blueprint one-data-container
2015-08-19Move defaults.yml to group_vars/all.ymlSam Yaple1-1/+1
The purpose for having defaults.yml on the command line was originally for variable inheritance. Over the past month we have slowly changed how things are inherited (like ports) allowing us to place these 'defaults' into the group_vars/all.yml location as they should be values that go unchanged (but can be overridden). Change-Id: I2becec66bf431bfc9d88fc825b5380c1e173ca70 Partially-Implements: blueprint update-configs
2015-08-17Merge "Remove compose from documenation"Jenkins3-848/+1
2015-08-17Remove compose from documenationSteven Dake3-848/+1
Receive several quickstart related questions every day. Make a first pass at cleaning up our documentation to point people in the right direction. While we are about it remove compose related bits. Anything in the compose directory will remain as a reference implementation for how to implement the compose files to work well with our container content. Change-Id: I9e832e97ac2bacca8eab7e1bfbd82664d2b191b8 Closes-Bug: #1485163 Paritally-Implements: blueprint remove-config-internal
2015-08-17Fix gate source buildingSteven Dake1-1/+1
Fix a backtrace. Also add the default master locations for the various tarballs. Change-Id: I9675c2619b95c0ae6a467ffbf964c4b17ae4b791 Paritally-Implements: blueprint gate-source-builds
2015-08-14Safely check for dictionary key presenceJeff Peeler1-1/+1
Accessing the key directly when it doesn't exist was yielding a KeyError. Change-Id: Ice877b74d46d59f2e9ecff051b09245e9d3744e1 Paritally-Implements: blueprint gate-source-builds
2015-08-14Merge "Implement source fetching for build.py"Jenkins1-1/+34
2015-08-14Implement source fetching for build.pySam Yaple1-1/+34
This implements the source fetching that exists in the current way. The patch only implements fetching a tarball from a url. Additional methods needed would be git and local copy. Partially-Implements: blueprint build-script Change-Id: I51889a131f050abce9a16d114972b5e329a93862
2015-08-13Merge "Implement Murano source images"Jenkins1-2/+22
2015-08-12Merge "Add new test script for parallel builds"Jenkins1-0/+0
2015-08-12Add new test script for parallel buildsJeff Peeler1-0/+0
This adds a new test script for the new python based build script. A new tox target has been created to execute it for usage in the gate. Eventually, the other build script stuff can be deleted, but that won't be done until full functionality exists in the new build.py. Change-Id: Id9dd19926b1b9d875dcb069fd13d6450318374c8 Paritally-Implements: blueprint build-script
2015-08-12Add Dockerfile template for rabbitmqSam Yaple1-1/+3
Change-Id: Ic42879451cba2fb7fa35764924ca191949c477c4 Partially-Implements: blueprint dockerfile-template