aboutsummaryrefslogtreecommitdiff
path: root/kolla
AgeCommit message (Collapse)AuthorFilesLines
2016-08-18Merge "Skips a debug log during image build"Jenkins1-1/+3
2016-08-16Merge "enhancements to install_packages macro"Jenkins2-0/+76
2016-08-16Skips a debug log during image buildSajauddin Mohammad1-1/+3
Added a condition to skip debug message during image build, when the base image is dependent on image of other service Closes-Bug: #1513904. Change-Id: I68d568981cebf442b34c958e125b0f921b883247
2016-08-15Merge "Dockerfiles for Networking-SFC Container"Jenkins1-0/+4
2016-08-15enhancements to install_packages macroAbe Music2-0/+76
- Adds debian_package_install method to the jinja environment that will return the necessary set of commands needed to install packages via apt-get and/or URLs to .deb packages - Updates install_packages macro to make use of the method above Change-Id: Ie9318a7def54b5034ba91375fd8fd3b589d18349 Partially-implements: blueprint third-party-plugin-support
2016-08-10add baremetal role to install kolla deps.Sean Mooney1-1/+1
Change-Id: Ie70db1b18a73528b1194e4fbcf53d09fed20f4a0 Implements: blueprint kolla-host
2016-08-06Fix inconsistencies in git urlRobin Naundorf3-4/+4
Github is just a mirror of the OpenStack git-repo. Changed from Github to OpenStack git url wherever possible. Change-Id: I7941ef86967de4efe7f23ff9fb11ec86c793901e
2016-08-06Dockerfiles for Networking-SFC Containerprithiv1-0/+4
Networking-SFC is a neutron big-tent project Kolla does not have Networking-SFC agent support for now. This is essential for Service Function Chaining use case. Build Networking-SFC Container. Change-Id: I67b4d6e061dbe31e2211cd3210726ab4c30cd087 Partially-Implements: blueprint enable-networking-sfc-support
2016-08-02Using sys.exit(main()) instead of main()Lu lei1-1/+1
As we known, Exceptions are raised by the sys.exit() function. When they are not handled, no stack traceback is printed in the Python interpreter. In this patch we have known main() got return values(eg:0, 1), but it can't specifies exit status when terminate the main thread by unusing sys.exit(). So when using sys.exit(main()) instead of main() may be more readable and reasonable. TrivialFix. Change-Id: I184289d28b92a7e345907247c045535a0c42c974
2016-07-27Make kolla-build list-dependencies option workSwapnil Kulkarni (coolsvap)1-0/+1
Change-Id: I465cc8a79b12c188569c9537e14763a6bef8dd43 Closes-Bug:#1606450
2016-07-27Fix dict.values() PY3 compatibleqinchunhua1-1/+1
The dict.values()[0] will raise a TypeError in PY3 as dict.values() doesn't return a list any more in PY3 but a view of list. TrivialFix. Change-Id: I01297bb68e45db4d15800d2d42e08560da7346bd
2016-07-08Build docker images for OpenStack WatcherDave Walker (Daviey)1-0/+4
Watcher is part of the OpenStack big-tent and is formally known as "OpenStack Infrastructure Optimization service". Whilst it provides a range of default goals and strategies, the most relevant case is to enable re-balancing of the compute hosts by taking CPU usage (data from Ceilometer) into account and live migrating instances as required. Currently this only builds the Docker images for type source but binary builds are gracefully ignored. The ansible configurations will be part of a later commit. Change-Id: I9bb81ee625d9fcf6513e44e2ed20384e34da2adc Partial-bug: #1598929 Partially-implements: bp watcher Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2016-07-08Merge "Add Senlin Docker container"Jenkins1-0/+4
2016-06-30Add Senlin Docker containerEduardo Gonzalez1-0/+4
Change-Id: I52e08e2df77106969c5975ebda2510ea8aefa8b5 Partially-implements: bp senlin-container Signed-off-by: Eduardo Gonzalez <dabarren@gmail.com>
2016-06-29Fix broken save,list images/dependencies optionsJoshua Harlow1-0/+5
It's sorta required to actually build the image list (and strucutre) to make any of these commands do anything. TrivalFix Change-Id: Ib601bd4d2cc84af6d35a8623b77f9b512124d2ad
2016-06-27Be smarter about what to do when making a docker clientJoshua Harlow1-37/+46
Instead of having the program sys.exit when a docker client object can not be created (which kills all the threads and messes up the program and its associated state) have a exception be raised when this (for whatever reason) fails. Also refactor so that there is a docker task that the docker client using tasks can all inherit from. TrivalFix Change-Id: Ie81aff10cfe6f2fc5c65d53402200e3928fb460c
2016-06-27Merge "Stop using a global logger for all the things"Jenkins3-95/+96
2016-06-24Customizations continuedMichal (inc0) Jastrzebski3-0/+41
To correctly customize lists, we need to specify *_append, *_remove or *_override variable in customization file. Change-Id: I18d67ab89089e2696399ff1b99c1047a2f554442 Partially-implements: blueprint third-party-plugin-support
2016-06-24Merge "Update urls for Delorean repo files"Jenkins2-5/+6
2016-06-24Update urls for Delorean repo filesPaul Bourke2-5/+6
delorean.repo is now redirected from trunk.rdoproject.org to buildlogs.centos.org [0] [0] https://www.redhat.com/archives/rdo-list/2016-June/msg00206.html Closes-Bug: 1595568 Change-Id: I650abc34d9cf0c00f9025bd2c62f1bf03fbd96b7
2016-06-23Merge "Update kollaglue repo on docker to kolla"Jenkins1-1/+1
2016-06-21Add Kuryr Docker containerHui Kang1-1/+4
Co-authored-by: Mohammad Banikazemi <mb@us.ibm.com> Partially-implements: bp kuryr-docker-plugin Change-Id: Ife54f71984ff6c9825769e81fd39e3444c6fe310
2016-06-21Stop using a global logger for all the thingsJoshua Harlow3-95/+96
Instead of using the same logger for all the things which makes it incredibly hard to figure out what the images and there builds are doing; instead have it so that each image gets its own logger which is then used by tasks that process that image. Each images logs now will (optionally) go to a logs directory that can be more easily read and looked over and leaves the main logger for informational/task kind of output only. Closes-Bug: #1586478 Change-Id: I939e073a2bc5ed8b5a1e969888fc743d80f468c9
2016-06-15Macro install packagesMichal (inc0) Jastrzebski1-2/+6
Simplification of package installations Change-Id: I78c0a84c55e891dec7c9bd21bc61700dba244526 Partially-implements: blueprint third-party-plugin-support
2016-06-14Merge "Change the search path to look locally"Jenkins1-0/+8
2016-06-14Implement Rally DockerfileJeffrey Zhang1-0/+4
Partially Implements: blueprint rally-container Change-Id: If8c4fdb51b8083078dddc68598d48c6e139a615a
2016-06-14Update kollaglue repo on docker to kollaSwapnil Kulkarni (coolsvap)1-1/+1
[1] http://lists.openstack.org/pipermail/openstack-dev/2016-June/097227.html Change-Id: I73af59dcf1e755dbe0579486f1fb0ebe5ca0119c Closes-Bug: #1592286
2016-06-13Change the search path to look locallyRyan Hallisey1-0/+8
In order to use tools/build.py, we need to search locally for imports. Closes-bug: #1592030 Change-Id: Idfa651c1268f93366de9f4e3fa80c33be42c71c3
2016-06-13Fix typos in KollaTuanLAF1-1/+1
TrivialFix Change-Id: Id916352b419a100d1cae463031e3182bd1080776
2016-06-12Merge "Mechanism for Dockerfile customization"Jenkins2-3/+12
2016-06-10Merge "Add non-intrusive ctrl-c handling"Jenkins1-31/+41
2016-06-08Add non-intrusive ctrl-c handlingJoshua Harlow1-31/+41
Instead of trying to use a signal handler to stop when ctrl-c is triggered use technique that cooperates better with the threads that are running and lets them die a happy death vs being forced to die in unpleasant ways. Closes-Bug: #1586476 Change-Id: I7fdb6a77a144bdd02276cca07b616bbb0c2f1957
2016-06-08Use 'image' not 'item'Joshua Harlow1-6/+6
The things in self.images are images, not items so reflect these to use the shared 'image' name vs having a one-off that uses 'item'. TrivalFix Change-Id: I781514d3e116de32b4fe61a7f55455282680fec1
2016-06-07Mechanism for Dockerfile customizationMichal (inc0) Jastrzebski2-3/+12
This patchset enables potentially full customization of Dockerfiles provided by Kolla without having to change main Kolla code. Mechanism is based on jinja2 block mechanism. In our dockerfiles we'll add blocks (mostly empty) with highly standarized naming, then in override file users will be able to fill/override contents of these blocks. Example is shown in this patch. To enable cutomized override file call build.py --template-override=path-to-file Only caveat is that header {% extends .. %} has to stay Change-Id: I5957024e5652f9677c439fb2fcd524e467b951af Partially-implements: blueprint third-party-plugin-support
2016-06-07Make build.py importable libJeffrey Zhang5-916/+933
First step to break it down is to make it importable lib rather than self-contained script. Change-Id: Ibbc924c2849cc79006046f62f31a1909ce959066 Partially-implements: bp build-refactor
2016-06-07Remove the deprecated kolla-build sectionJeffrey Zhang2-3/+2
TrivialFix Change-Id: I3ee10efc093ed394c3af483a229dcd9dc732ec9a
2016-06-06Cleanup help string of install_type parameterChristian Berendt1-3/+1
The part "The valid types are: binary, source, rdo, rhos" is already a part of the generated kolla-build configuration file ("# Allowed values: binary, source, rdo, rhos"). TrivialFix Change-Id: I87b913c1b650fe54402ea643fc9c774448850f6b
2016-06-02Use an image object, recorder object and status constantsJoshua Harlow2-143/+197
Instead of using raw dicts and passing data around via dictionaries (which makes it really hard to figure out what is in those dictionaries at any point) prefer to use objects. That way people can actually understand what the object is supposed to be, vs guessing and/or having to decipher its usage. The same goes for raw string constants, prefer using named constants instead. Closes-Bug: #1586475 Change-Id: Ide179dc6593c50696d47a2d3d4cd000f343855d4
2016-06-02Use a task model and dumb workersJoshua Harlow3-88/+213
Instead of having smart workers that need to know about the full logic of how they operate and what they will do which makes it hard to reuse parts of those workers switch the model so that workers are dumb and they just run tasks which themselves can request additional tasks to run when succesful. This makes it more consistent when tasks are to be retried and also makes it easier to know which task is running and when. Less specialized workers == good. Closes-Bug: #1586474 Change-Id: Ie7b7303b8bf2a80b3e26b6d4ffc27787f8c794d6
2016-06-01Merge "Don't always unpack image build results tuple, as it may be None"Jenkins2-5/+38
2016-06-01Merge "Add sahara containers"Jenkins1-0/+4
2016-06-01Merge "Pin the base distro release version"Jenkins2-6/+16
2016-05-31Don't always unpack image build results tuple, as it may be NoneMark Goddard2-5/+38
Change-Id: I21b1327da1de1bd3cc3018ba37715b0a19c1dbef Closes-Bug: #1587501
2016-05-31Merge "Fix kolla-build return codes"Jenkins1-1/+9
2016-05-31Pin the base distro release versionJeffrey Zhang2-6/+16
Pin the base distro release version in the master branch(Newton). Only one distro version is supported. The supported versions are: * CentOS: 7 * RedHat: 7 * OracleLinux: 7 * Debian: 8 * Ubuntu: 14.04 NOTE: Kolla will move to Ubuntu 16.04 in the Newton cycle DocImpact TrivialFix Change-Id: I32c0edbee4de14c8a0cc7c961d566e84d70f19a4
2016-05-27Adds Neutron LBaaS SupportDaneyon Hansen1-0/+4
Previously, kolla did not support neutron lbaas functionality. Only Lbaasv2 is supported in Mitaka. Additional information can be found here: http://docs.openstack.org/mitaka/networking-guide/adv-config-lbaas.html Magnum uses Neutron Lbaas to provide high availability to COE API and Etcd endpoints within a bay. Therefore, Neutron Lbaas is required for Kolla to support Magnum. Co-Authored-By: Serguei Bezverkhi <sbezverk@cisco.com> Partial-Bug: #1551992 Change-Id: I05360b7c447c601fcb3c2b6b2a913ef5cc0f3a1b
2016-05-27Fix kolla-build return codesWill Miller1-1/+9
Add a main wrapper function to return 1 if any images failed to build; otherwise, return 0. Rename the old main() to run_build(), which still returns image statuses, to avoid interfering with unit tests. Change-Id: I5817cc9cebb4f42dc13e0535223e5dc8931a3aab Co-Authored-By: Mark Goddard <mgoddard@cray.com> Closes-Bug: #1578404
2016-05-26Add sahara containersSwapnil Kulkarni (coolsvap)1-0/+4
Added sahara container for centos,ubuntu binary,source partially-implements blueprint sahara-container Change-Id: Id6dad447cd6ec07286e7a6cab0b13a6d4d89c1a7
2016-05-26Merge "Implement non-default signal handler for SIGINT"Jenkins1-5/+10
2016-05-21Make passwords.yml file generation configurableSwapnil Kulkarni (coolsvap)1-2/+12
partially implements blueprint multiple-clouds Change-Id: I676c4245e6f058ffbed345970ee78d1750dd0f2f