summaryrefslogtreecommitdiff
path: root/kolla
AgeCommit message (Collapse)AuthorFilesLines
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
2016-05-10Merge "Catch all the exception in the push thread"Jenkins1-0/+3
2016-05-09Support a custom base imageJeffrey Zhang2-1/+6
Add a new option(base-image) to support custom base image In default, the base-image is equal to base. When using custom image, please use command line like: ./tool/build.py --base-image my-image --base centos --base-tag 0.1 DocImpact Closes-Bug: #1573544 Change-Id: If4b9c57a2b68f6f06d3e981f30b2173064e02193
2016-05-06Implement non-default signal handler for SIGINTJeff Peeler1-5/+10
Pressing Ctrl-C will stop a build, but does not clean up the /tmp directory of dockerfiles. Implement a signal handler such that clean up does occur. Python apparently ignores signals while calling join on a queue, so that's why the small modification was needed there. Change-Id: I43faf67726c154b6640d3596aea61ffc59871999 Closes-Bug: #1579242
2016-05-06Add images from profile as matched only if no regex is usedMichal Rostecki1-2/+1
Change-Id: I053e54c54883318dfc7daa64a58276487805de66 Closes-Bug: 1578955
2016-05-05Generate image dependencies on CLIJeff Peeler2-0/+44
Using the new --list-dependencies flag, one can query dependencies for a given filter. For example: ./build.py --list-dependencies heat swift {'base': [{'openstack-base': [{'heat-base': ['heat-engine', 'heat-api-cfn', 'heat-api']}, {'swift-base': ['swift-object', 'swift-proxy-server', 'swift-container', 'swift-rsyncd', 'swift-account']}]}]} Also added --list-images to list all available images. Change-Id: I1797e32e32705182a763f53329eeb5c4a361abec Implements: blueprint images-dependency-tree-cli
2016-05-03Cleanup Mesos/Marathon related workDavanum Srinivas1-5/+1
We got rid of the kolla-mesos repo: http://git.openstack.org/cgit/openstack/kolla-mesos/tree/README.rst So we don't need things in the main kolla tree related to Mesos/Marathon Closes-Bug: #1577951 Change-Id: Iafae63914c8a6601dc1b5b04231af8a1d2cc8642
2016-05-02Adding a few #nosec tags to prepare for Bandit usageTravis McPeak1-1/+2
This commit adds a few #nosec tags for non-issues. I've examined the code and determined that these don't represent security issues so we should add a #nosec tag that tells Bandit not to find these issues in the future. Closes-Bug: #1577498 Change-Id: Ic37216c08442c700c64118c78cfb46e6cedd237c
2016-04-28Catch all the exception in the push threadJeffrey Zhang1-0/+3
Change-Id: I1ba48cd25e529bdd846d3ded1f5923f312e5d17d Closes-Bug: #1574931
2016-04-27Override default latest tag on ubuntuMichal (inc0) Jastrzebski1-0/+5
After 16.04 got released we can't build our images as we pull latest (16.04 now) and our sources lists are built for 14.04. We pin ubuntu to 14.04 here. Change-Id: Ib29a1c607c3a725cdaf2098edd1c4b80f06a5e38 Closes-Bug: #1575884
2016-04-15Merge "Add iscsid/tgtd specific parameters to Kolla infrastructure"Jenkins1-1/+1
2016-04-12Add iscsid/tgtd specific parameters to Kolla infrastructureSerguei Bezverkhi1-1/+1
This partially implements iscsi and lvm2 support for cinder in Kolla. Add integration with Kolla infrastructure. Change-Id: I5b7d59163518080f38aec0c00617440de0763f1d Implements: blueprint iscsi-lvm2-docker
2016-04-12Add missing base os values to kolla-build.confSwapnil Kulkarni (coolsvap)1-0/+2
Added centos, ubuntu, oraclelinux. Not added other base distros are not well maintained currently. Change-Id: Icb1c12dde2ff005068f1b0f36693049f9ea30f52 Closes-Bug:#1569265
2016-04-05Log the SHA of the Git ref for source buildsPaul Bourke1-2/+3
When using named refs in source builds, e.g. "reference = master", one can't easily tell from the build output what SHA master actually pointed to at that point and time. Update the debug output to include this. Closes-Bug: #1566316 Change-Id: I95c1cc316ab7332fa30fa43e207a5a5512b76708
2016-04-03Implement nova-ssh containerJeffrey Zhang1-0/+23
Add a nova-ssh container to handle the `nova migrate` and `nova resize` case, in which the nova will use ssh to copy files between machines. Change-Id: Ie6675943f3aeabfbba8589d308d55b9c89d732db Closes-Bug: #1562141
2016-03-22Add PBR generation of version informationSteven Dake1-3/+3
Change-Id: I6391392645d8608a92c885071b26210eed3f5466 Partially-Implements: blueprint add-reno
2016-03-21Merge "Add generate_passwords.py to generate passwords"Jenkins1-0/+51
2016-03-21Add generate_passwords.py to generate passwordsSamYaple1-0/+51
As with all tools, this is a first pass at the generation. Perhaps we even want to move this into kolla/kolla/cmd and be generated with tox itself in the future. This tool, when run, will only populate empty fields that have no values meaning that it is safe to run repeatedly on the same file. Of note, there is no way to preserve comments in the file after it has been processed by the yaml parser in python. Comments and sections will remain in the passwords.yml template for additional documentation if the user wishes to populate the file themselves. Use SystemRandom and clean up the docs a bit to not use pronouns. Co-Authored-By: Steven Dake <stdake@cisco.com> Closes-Bug: #1559266 Change-Id: I2932d592df8871f1b7811059206d0b4d0553a687
2016-03-21Split versions onto new lineSamYaple1-5/+10
This makes the process of updating versions _much_ easier and opens the door to a rough automated updater This should merge in master _BEFORE_ mitaka branch TrivialFix Change-Id: I90b974316c5b48fd7a31959de317cb71ae3affec
2016-03-14Merge "Mesos DNS container"Jenkins1-2/+2
2016-03-10Merge "Add cron image and playbook"Jenkins1-3/+3
2016-03-09Add cron image and playbookÉric Lemoine1-3/+3
Add cron image and playbook for logrotate. The "common" Ansible playbook includes configuration files for logrotate. At this point the operator cannot customize/override the logrotate configuration. Closes-Bug: #1553244 Change-Id: Ic9fdda9a273c9ccd90502f0acc7614d2c7157dca