aboutsummaryrefslogtreecommitdiff
path: root/kolla/image
AgeCommit message (Collapse)AuthorFilesLines
2019-01-16Add base_package_typeAlex Schultz1-0/+9
Currently in all the Dockerfile.j2 files, we are doing base distro if conditions for package names when installing via a binary. Rather than duplicating these base_distro in [<distros>], let's provide a single value for determining the binary installation method. This change adds a base_package_type which we can use to lookup if 'rpm' or if 'deb' rather than relying on specific distro names. Change-Id: I8a0c6c8fbc32a8cfa6932fddf28a449fceda3d49
2019-01-16Add distro_python3 optionAlex Schultz1-0/+9
As we add support for python3 on RHEL based systems, we need to add a flag to key off of in the Dockerfiles to swap out the python3 package names. This change adds a distro_python3 configuration option that can be defined to force python3 or python2 package names. If this option is not provided, we set this to True for RHEL 8 based distros and false for other distros. Change-Id: I4028991bad92c0e8e21066cc4173c06ce5eba393 Related-Blueprint: python3-support
2018-12-27Update hacking versionconfi-surya1-7/+7
Use latest release 1.1.0 and compatible changes w.r.t pep8 Change-Id: Ia3d1166a2746a46591e4e5a04ea91e03ddc28d93
2018-12-19Split placement-api from novaEduardo Gonzalez1-0/+1
This change breaks out the Placement service from Nova ahead of it's removal from the project later in Stein. For the time being the original Nova Placement images are left in place but they will be removed later in the cycle once the Placement code is removed from the Nova project by the following change: https://review.openstack.org/#/c/618215/ Co-Authored-By: Lee Yarwood <lyarwood@redhat.com> Change-Id: I2bf6f5bf45b76e6900f41c21e9af30c69dc6e9c0
2018-10-25build: remove link to failed log before creatingMarcin Juszkiewicz1-3/+9
Kolla allows to create separate logs per image. It also makes very useful symlinks to those builds which fail. But it fails to do that on next builds: ERROR:kolla.common.utils:aodh-base Failed with status: error Traceback (most recent call last): File "./tools/build.py", line 40, in <module> sys.exit(main()) File "./tools/build.py", line 30, in main statuses = build.run_build() File "/home/hrw/devel/kolla/kolla/image/build.py", line 1333, in run_build results = kolla.summary() File "/home/hrw/devel/kolla/kolla/image/build.py", line 1037, in summary "000_FAILED_%s.log" % name)) FileExistsError: [Errno 17] File exists: 'aodh-base.log' -> 'logs/debian-source-buster/000_FAILED_aodh-base.log' Change-Id: I85132bbace63c8b386f69ddb758a3b52e52c0ef0
2018-09-21Add crane docker imageDan Prince1-1/+6
Crane is a lightweight 'pull only' container registry implementation. TripleO is aiming to replace our use of docker-distribution with crane for the Undercloud. Co-Authored-By: Martin André <m.andre@redhat.com> Change-Id: I59d9521f99243401d7703a3dedc26b5baed2d595
2018-09-06Add a tripleoclient containerDan Prince1-0/+6
We'd like to use this container both interactively (for ad-hoc commands) and also to be able to generate Ansible (via the undercloud/all-in-one installers) for TripleO. Partially-implements: https://blueprints.launchpad.net/tripleo/+spec/zero-footprint Change-Id: Ia4d7fdcb9c96d76e191dcc1a46be095b37189b3e
2018-08-03skipped_images None handlingAttila Fazekas1-3/+4
skip the skipped_images loop when the combination is unknown, or when the skiplist is empty. Change-Id: Ia2dfbb1c80baeaa2eeb4720381e4da6c7b1c85af
2018-07-31Add neutron dragent package for RPM binary buildsEduardo Gonzalez1-2/+0
Change-Id: Ief8f075a57f8e365499fddbca25b1af71ccfc96c Closes-Bug: #1772552
2018-07-26build with --template-only to not require running docker serviceJon Schlueter1-1/+6
Add a try/except check and raise excpetion if not --template-only Reason for this is so that you can run kolla_build --template-only on a system with a user that doesn't have permissions to access docker or system may not have docker service running. The template only generation is ok because it doesn't specifically need the docker context Change-Id: I191f3e073d14e9ba5419a8a9b043e8afaa565e2a
2018-07-23Revert "Add networking-odl image to skipped image list"confi-surya1-9/+0
This reverts commit I57594742e0842c0e701b9974046d9d1704446f4b Add ceilometer package into neutron-server-opendaylight container, then it chould be found by pip. Closes-Bug: #1764621 Co-Authored-By: Jeffrey Zhang <zhang.lei.fly@gmail.com> Change-Id: Ibaaf1de0c437ce9d25c93e68ab5a43279c4e60ee
2018-07-16Add support for deploying Monasca ThreshDoug Szumski1-0/+4
Monasca Thresh is a Java topology for Storm which generates alerts from metrics. It depends on Java code in the monasca-common library. In this change we support building the Monasca Thresh Storm topology from source. To enable us to submit the topology to Storm we inherit from the Storm container (rather than the Monasca base image) so that we can use the Storm client. Change-Id: I389af89086cdab6d243c4a4fa65fd157535a5045 Partially-Implements: blueprint monasca-containers
2018-06-30Ability to build container against docker swarmVictor Coutellier1-9/+9
Add a decode=True option during call to dockerAPI in order to build container against recent docker swarm. Closes-Bug: #1779460 Change-Id: I48f041e7ed9dd5a5f410b4eaa081f6f013119d17
2018-06-26kolla-build: Wrap tpl_dict.keys() in a list()Martin Chlumsky1-1/+1
In python 3, tpl_dict.keys() returns a dict_keys object that does not support indexing and is then indexed. Wrap tpl_dict.keys() in a list() so it can be be indexed in python 2 and 3. Change-Id: I17e3bbfc4eeba58e4bdd7fdd1ecdb21baa5c4461 Closes-Bug: 1778781
2018-06-06Merge "Install sensu from centos-opstools"Zuul1-3/+0
2018-06-04Merge "Bump Ubuntu base image to 18.04"Zuul1-0/+4
2018-05-31Install sensu from centos-opstoolsMartin André1-3/+0
This should help improve stability overall, in exchange for slightly older package version. Cap all the sensu plugins to their known major version that works with the ruby interpreter shipped with the current version of rhel/centos/oraclelinux -- currently ruby 2.0. All sensu plugins use semantic versioning so we're assured they don't introduce breaking changes in the capped major version. Change-Id: Ic5ca679c40da3e466433b0e04f762d2bbffbf156 Closes-Bug: #1774123
2018-05-30Merge "Fix image push for python3"Zuul1-6/+5
2018-05-30Put upper limit on cmd2 in kolla-toolboxMartin André1-9/+0
This fixes an issue with cmd2 >= 0.9.0 requiring python3. Change-Id: I08b606980cb796a6b884e69b3e6749edbdd7cf37 Closes-Bug: #1773938
2018-05-30Unblock gateMartin André1-0/+12
Add kolla-toolbox and sensu-base to skip list to unblock gate. Then we can merge the proper fix and remove the images from skip list. Change-Id: I34285fffc7a3542007161d2e10e713756710b4ca Related-Bug: #1773938 Related-Bug: #1774123
2018-05-26Bump Ubuntu base image to 18.04Jeffrey Zhang1-0/+4
Ubuntu 18.04 has been released. We need upgrade to it this cycle. Changes made in this patch - Bump ubuntu repo from xenial to bionic. Some repos do not have bionic packages, so still using xenial repos. - Drop mariadb, percona and nfs-ganesha repo, because these packages are already provided by Ubuntu official repo. - Since qdrouterd does not have bionic repo and xenial packages does not work on Ubuntu bionic, just add it into ignore image list. - Use python-rtslib-fb and targetcli-fb rather than python-rtslib and targetcli - use xen-utils package name rather than with package version one. - Seems unsigned repo won't work on Ubuntu bionic, stop using infra mirrored unsigned repo in gate building job. Needed-By: https://review.openstack.org/568728 Implement blueprint: ubuntu-bionic Change-Id: I4e3b0ca669cfbf6316bf591f2d8428fa1a0d6182
2018-05-25Merge "Create symlinks for failed builds logs"Zuul1-0/+4
2018-05-16Fix image push for python3Michal Nasiadka1-6/+5
Rework push_image function to use docker client push function with decode=True, to decode automatically to dict. Change-Id: I28d38e968c3809a1074347271e49dc07dc861f11 Closes-Bug: 1771514
2018-05-14build: remove info that image squash support is disabledMarcin Juszkiewicz1-2/+0
We do not tell that optionX or optionY is disabled so why we have to inform that image squash is disabled? This is an option which has to be enabled and then informing that it is enabled has sense. Change-Id: I14b9b02e3cb290128d9f7673df8efe61aaa08c31
2018-05-08Create symlinks for failed builds logsMartin André1-0/+4
This allows to know which image failed to build without having to parse the huge job-output.txt file. This commit creates a convenient 000_FAILED_image_name.log symlink to the relevant log files when kolla is configured to output to a log directory. This creates symlinks only for the parent image with error, i.e. it skips images that failed to build because of parent error. Change-Id: I05954e2335dc3fac469276809c91f9c87e3ecab2
2018-04-20Add network_mode for image buildingAlex Schultz1-0/+1
Add the ability to specify a different network_mode when running the image builds. Under the covers the default is to use bridge networking but if that is unavailable or a user would like to specify a different networking method they can now do so using the [DEFAULT]\network_mode configuration. Change-Id: I1d2398273b57ca4d52bbfacbc896ffecc58bc54b
2018-04-17Fix the gateconfi-surya1-0/+11
Skiping neutron-server-opendaylight image build to run the gate Change-Id: I57594742e0842c0e701b9974046d9d1704446f4b
2018-03-27Add support for installing binary packages for senlinZhongShengping1-4/+0
There are senlin binary packages on redhat[1] and ubuntu systems[2]. [1]https://trunk.rdoproject.org/centos7-master/puppet-passed-ci/openstack-senlin-api-5.0.1-0.20180324005415.00641ad.el7.centos.noarch.rpm [2]http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/s/senlin/senlin-api_5.0.0-0ubuntu1~cloud0_all.deb Closes-Bug: #1759094 Change-Id: Ic9ffe563924511edf80f0eeb2df3018a1111bb35
2018-03-21Add networking-baremetalHarald Jensas1-0/+2
* Adding Dockerfile to build image with ironic-neutron-agent. * Add ``neutron-base-plugin-networking-baremetal`` in kolla/common/config.py to enable building neutron with baremetal plugin. Since the ML2 mechanism driver and L2 Agent is in the same python package, the source install will include the ironic-neutron-agent as part of neutron-base. Change-Id: I232dcf44c8a56c268610053cf362714d52e6cb93
2018-02-26Update the explicty to explicitlycaoyuan1-1/+1
fix a typo Change-Id: I8067ac07a5bf62dded8dc2ea2c2c74c2375ad3c5
2018-02-03Remove the unsupported 'insecure_registry' for >=docker 3.0.0Jianghua Wang1-3/+10
The argument of 'insecure_registry' for image push has been removed by this commit (in docker 3.0.0): https://github.com/docker/docker-py/commit/b180b8770a265e33099bd6da76c3e556a1028491 Actually this argument was marked as deprecated and unfunctional before this removing. This commit is to remove this parameter at invoking the push() function when docker version >= 3.0.0. Change-Id: Ifa7d304d08a4073dcb1dff751d5a443c112cd377 Closes-Bug: #1746703
2018-01-25Enable kafka for rhel distro derivativesAndrew Smith1-4/+0
Missing download of jre via openjdk package Change-Id: Icce1a92f9707b435e1d4a4a75453e21b541b2a22
2018-01-22Merge "Support squash docker images layers"Zuul1-24/+28
2018-01-22Support squash docker images layersJeffrey Zhang1-24/+28
Implements: blueprint squash-layers Change-Id: Ic9a144e50440ccb37f7781d8955815a64282e687
2018-01-19Add tripleo-ui image to skipped image listJeffrey Zhang1-1/+7
There is some issue on tripleo-ui side, which block the kolla gate. Revert me when https://bugs.launchpad.net/tripleo/+bug/1744215 is fixed. Change-Id: I68867f0bbabad61d583761d54c35d1df15fb8698 Related-Bug: #1744215
2017-11-30Merge "Implement nova-mksproxy"Zuul1-0/+4
2017-11-13Merge "Make env variables accessible in template files"Zuul1-1/+1
2017-11-09Implement Almanach Docker imagesBertrand Lallau1-0/+4
Almanach record the utilization of OpenStack resources for each tenant. Implements: blueprint containerized-almanach Change-Id: Iba2e16772864a6f0169ec43d7a87d741882cd51c
2017-11-08Make env variables accessible in template filesChristian Berendt1-1/+1
Change-Id: Ib2bc276d1de030c737231a8854e593617dd86471
2017-10-25Fix docstring of method run_buildChangBo Guo(gcb)1-2/+2
It returns a 4-tuple, not a 3-tuple. Change-Id: I3a1ba7c840ced519a3c47664f42ddc1822f1d1bb
2017-10-17Merge "Fix vitrage images"Zuul1-2/+0
2017-10-17Implement nova-mksproxyJeffrey Zhang1-0/+4
nova-mksproxy is a Nova console proxy for VMware instances Change-Id: I446dd9eacdd0f0ee6f980133d1419d67c8dc7857 Closes-Bug: #1723997
2017-10-14Fix vitrage imagesEduardo Gonzalez1-2/+0
Vitrage start api service under apache or uwsgi. We have not created a migration to uwsgi. This change adds apache packages needed for api also add rdo binaries to rpm distros. Adds missing collector image. Change-Id: Iecb32e321b46f9b567af25fa6acafbe9a292bbca Closes-Bug: #1681613
2017-10-09Re-enable bifrost test_buildEduardo Gonzalez1-3/+0
bifrost was removed from test_build validations due bug: https://bugs.launchpad.net/kolla/+bug/1674483 This change add bifrost again to vote on builds except for oraclelinux source that still failing to build. Change-Id: I413250f06e7ec4b2b6996667441a8be458c8824f
2017-10-04Add tripleo-ui imageHonza Pokorny1-0/+4
Change-Id: Iaf3ecdce44d2bd88fb0132966ba9c786873dbd6a Implements: blueprint tripleo-ui-undercloud-container
2017-09-23Skip known failed kolla imagesJeffrey Zhang1-1/+113
Change-Id: Ide8478c248e77b9c85201981e8086f3dbf06d131
2017-08-21build: sort names of not build/skipped imagesMarcin Juszkiewicz1-2/+2
Change-Id: I21fb133b051bed2f0dab4a6459d14aa06e27eed8
2017-08-03Fix for git clone issue during kolla image buildJiri Prokes1-0/+5
When the first build attempt fail for any reason (e.g. short network outage, proxy outage,...) then the second attempt always fail for git source type. Git can't clone repository because destination directory exists and is not empty. Current fix checks destination directory and if it exists then it is removed before cloning. Change-Id: I949140c49a64baea579d61047e3b2f1240da2771 Closes-Bug: #1706369
2017-07-22Merge "enable the kolla build system to use out of tree docker files"Jenkins1-1/+15
2017-07-10enable the kolla build system to use out of tree docker filesSean Mooney1-1/+15
- This change introduces a docker-dir config option to enable specifying an out of tree additional docker file root dir for use with kolla build. - This change allows kolla's build system to be reused by non kolla or external project to build arbitrary docker images using jinja2 templatized docker files. Co-Authored-By: Michal (inc0) Jastrzebski <inc007@gmail.com> Change-Id: Idbba02a8910866ef1b838e5cbac3ab230551b7e5