summaryrefslogtreecommitdiff
path: root/kolla/common
AgeCommit message (Collapse)AuthorFilesLines
2019-04-30Improve doc of kolla-build '--docker-dir' optionRadoslaw Smigielski1-1/+2
Let's make clear that '--docker-dir' can be specified multiple times as argument of kolla-build. It was not clear if '--docker-dir' options accept comma separated list of values or it can be specified multiple times. Change-Id: I7cf9a7c2a6c7876e5784a3df93369e7fa5036173 Partial-Bug: #1827146
2019-04-03Add config option use_dumb_init to add it to container imagesRabi Mishra1-0/+2
Usage of dumb-init can also be disabled from cli with `--nouse-dumb-init` when building images. Also moves ENTRYPOINT outside of dumb_init_installation block. Change-Id: Id32d54fc9913b83cf121ede5a5e265e0772062ae Related-Bug: #1821970
2019-03-27Add cyborg to kollaBai Yongjun1-0/+8
Because kolla not have cyborg so should add this. Implements: blueprint add-cyborg Change-Id: I497e67e3a754fccfd2ef5a82f13ccfaf890a6fcd
2019-03-21Merge "Introduce clean_package_cache"Zuul1-1/+3
2019-03-18Sahara: install also the split pluginsLuigi Toscano1-0/+24
The code of Sahara plugins has been extracted during the Stein cycle. Add support for: - the source-based deployment method (a beta release of the plugins is available on pypi) and - the RPM-based method (RDO contains the packages for the plugins.) This change is required also for the RPM method. Even if the RPM packages of the plugins are linked through weak dependencies to the sahara-api and sahara-engine packages (Supplements), weak dependencies are currently disabled here. Change-Id: I5241d84aa1ca2830cfdb60c1a3ff4e958a21b345
2019-03-17Introduce clean_package_cacheEmilien Macchi1-1/+3
Default to true (to maintain backward compatibility), this parameter will allow to disable the Package cache cleaning when building the Kolla images. In TripleO, we are investigating how we can accelerate the builds by not cleaning the Yum cache and this patch will help us to do so. Also included same for deb package_install method. Co-Authored-By: Jon Schlueter <jschluet@redhat.com> Change-Id: I0adc85302dfe0411d362c899f3e0d6a0019680d4
2019-03-14Move to Debian 'buster'Marcin Juszkiewicz1-2/+2
Buster is at freeze phase so safe to update and use. Will give us Python 3 based OpenStack packages (usually release delayed). Change-Id: I48c2d252a834716f1bcf10b18f2d32fe541e8137
2019-03-12Add distro_package_manager configurationAlex Schultz1-0/+5
Add configuration to allow the switch between dnf/yum or provide an alternative package manager. Change-Id: I913769fcf5875a12b4561958cf7c90b74cd116ea
2019-03-12replace 'distro_python3' variable with 'distro_python_version'Marcin Juszkiewicz1-4/+0
RHEL7 derived distros use Python 2.7 RHEL8 uses Python 3.6 Ubuntu 18.04 uses Python 3.6, but we haven't enabled it yet. Debian:buster uses Python 3.7, but we haven't enabled it yet. We have several places in code where "/lib/pythonX.Y/site-packages" is used so we need to know value of X.Y rather than py2/py3 switch. How to check for Python 2: {% if distro_python_version == '2.7' %} Breaks: Iad6b70b433a0dd1b0f8ae6790fd280594517661a Change-Id: Ie24f109af19ae0438c21e0d43cb3cc947812b4ce
2019-01-16Add base_package_typeAlex Schultz1-0/+4
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/+4
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-19Split placement-api from novaEduardo Gonzalez1-0/+8
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-12-18Add nfast group to barbican imagesDouglas Mendizábal1-1/+5
The nfast group is needed to configure barbican to use Thales HSM devices with the PKCS#11 plugin. Change-Id: I3de8ca07a34ae63eb91fc8d83bb0676425295cbc
2018-11-12Update Zaqar imageKien Nguyen1-1/+1
Follow Zaqar installation documentation [1] [1] https://docs.openstack.org/zaqar/latest/install/ Change-Id: Ic356fb81c19ebbc78aa3c7e871c4946d1f712a45 Implements: blueprint ansible-zaqar
2018-10-26utils: be Python 2 compatible when squashing is enabledMarcin Juszkiewicz1-1/+1
INFO:kolla.common.utils.base:Parent lastest layer is: sha256:75835a67d1341bdc7f4cc4ed9fa1631a7d7b6998e9327272afea342d90c4ab6d ERROR:kolla.common.utils.base:Unknown error when building Traceback (most recent call last): File "/home/hrw/devel/linaro/17.12/kolla/kolla/image/build.py", line 598, in builder self.squash() File "/home/hrw/devel/linaro/17.12/kolla/kolla/image/build.py", line 619, in squash tmp_dir=self.conf.squash_tmp_dir) File "/home/hrw/devel/linaro/17.12/kolla/kolla/common/utils.py", line 72, in squash ex.stdout) AttributeError: 'CalledProcessError' object has no attribute 'stdout' stdout was added in Python 3 as alias for output Change-Id: I7a6cef2ef6201d6b34c640bd6d1c7762c8bf5611
2018-10-11Merge "Add crane docker image"Zuul1-0/+4
2018-09-21DO not install ceilometer from git in n-server-opendaylightEduardo Gonzalez1-4/+0
Ceilometer is being installed from pip in networking-odl. Installing from git was a workaround to fix a build error. This change should be backported to rocky along with a networking-odl version upgrade. Depends-On: If4f0e952dc3b4577c5e21f6a9d0bc13a0f02e66c Change-Id: I181a6e7b7014c7c5f47829d6a738446fe541f05f
2018-09-21Add crane docker imageDan Prince1-0/+4
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-10Download binaries more securelyMartin André1-1/+3
Obtain binaries from encrypted source when we're unable to check for their signatures. This should provide better security than downloading the files over HTTP but does not replace signature verification or file integrity check. Related-Bug: #1791674 Change-Id: I7d6eed9ab14ceb130ea4f5f03d893ddaaa0a7acd
2018-09-10Merge "Add a tripleoclient container"Zuul1-0/+4
2018-09-06Merge "Revert "Use rocky tag for openstack service rather than master package""Zuul1-88/+88
2018-09-06Add a tripleoclient containerDan Prince1-0/+4
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-09-05Revert "Use rocky tag for openstack service rather than master package"Eduardo Gonzalez1-88/+88
This reverts commit b71f378c0f0a444e2b60afd9961c47132ea7a516. Change-Id: Ief7e9fa42ecf3000dd769c74895c68051b32d417
2018-08-30help: added dot at the end of base-arch descriptionMarcin Juszkiewicz1-1/+1
--base-arch option has a list of allowed options listed after help description. Without change: --base-arch BASE_ARCH The base architecture. Default is same as host Allowed values: x86_64, ppc64le, aarch64 With change: --base-arch BASE_ARCH The base architecture. Default is same as host. Allowed values: x86_64, ppc64le, aarch64 Change-Id: I53a4edf943a048f8659c71081abcd6dc22809316
2018-08-22Use rocky tag for openstack service rather than master packageJeffrey Zhang1-88/+88
Revert this after kolla rocky branch is created. Change-Id: I5b6ad6ffd806e0ea0e1adc6ff0a7a14fd647cdd3
2018-07-27Add Monasca Agent containerDoug Szumski1-0/+4
The Monasca Agent consists of 3 processes. The collector, which collects system level metrics from a host, a statsd server, which is used to receive application specific statsd metrics and a forwarder service which batches metrics and sends them to the Monasca API at pre-defined time intervals. Partially-Implements: blueprint monasca-containers Change-Id: Ia446ca0a6b932c2429d727b63e363b4e27307304
2018-07-23Revert "Add networking-odl image to skipped image list"confi-surya1-0/+4
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-20Added tempest user for tempest containerChandan Kumar1-0/+4
* Currently on using tempest container, everything is running as a root user under the container. All the test data when copied from container to host, have different permission. In order to consume those data we need to change permission. Adding tempest user to tempest container fix the issue. * New user can pass --user 'tempest' with docker run to consume it. * It does not affect the workflow of tempest container used in tripleo ci. Change-Id: I719b7b13197bcb1ace607f10448d76ccb1d8cdf7
2018-07-16Add support for deploying Monasca ThreshDoug Szumski1-0/+9
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-07-13Add support for deploying Apache StormDoug Szumski1-0/+5
The motiviation behind this is to provide Apache Storm for the Monasca Thresh component which is used for generating alerts as part of the Monasca Framework. SHA512 sum is from http://www.us.apache.org/dist/storm/ apache-storm-1.1.2/apache-storm-1.1.2.tar.gz.sha Change-Id: I6eb6be91470385c824baaeb37f90b582fc88aed4 Partially-Implements: blueprint monasca-containers
2018-07-11Add support for building LogstashDoug Szumski1-0/+5
Add support for building Logstash 5.x for both Centos and Debian based x86 distros. Partially-Implements: blueprint monasca-containers Change-Id: I4e2422d1cd2ae4c1f4aa63e8e543e725a1dc840c
2018-06-25Merge "Install networking-ansible ML2 driver in neutron base images"Zuul1-0/+4
2018-06-20Add neutron-vpnaas-dashboard into horizon imagejing.liuqing1-0/+4
neutron-vpnaas-dashboard is split into standalone repo. Need install it into horizon image. Change-Id: Ife1e39d4fff9e878a101ff716545166a30091f69 Closes-Bug: #1777750
2018-06-19Install networking-ansible ML2 driver in neutron base imagesrabi1-0/+4
The ML2 mechanism driver[1] is installed in the neutron-base image when building from source. [1] http://git.openstack.org/cgit/openstack/networking-ansible Change-Id: Ic9088a1aab9b6618fa9532659da02dfae198be54
2018-06-06Merge "Remove useless retrieval of karaf for ODL image"Zuul1-6/+0
2018-06-06Remove useless retrieval of karaf for ODL imageMartin André1-6/+0
When building images with type=source, the opendaylight would retrieve a 400MB+ archive for distribution-karaf-0.6.2-Carbon.tar.gz and did absolutely nothing with it since the ODL image installs the necessary bits from distro packages unconditionally. This commit removes the retrieval of the karaf archive. This should help make the gate more stable as we've seen the build timing out when retrieving the karaf archive. Change-Id: I0e31d91b4e1ad4ae4ec5c25847c7798724ed9eea Closes-Bug: #1774851
2018-06-05centos: use DELOREAN repo directly on all architecturesMarcin Juszkiewicz1-11/+2
CentOS 7.5 added 'contentdir' variable to yum package manager. We handle it already in Kolla. RDO team started using it in DELOREAN repo file so we can use it directly on all architectures. Change-Id: I59fa4d3fdbd0d0e2ed52c2725684c0033451e232
2018-06-04Merge "Bump Ubuntu base image to 18.04"Zuul1-2/+2
2018-05-26Bump Ubuntu base image to 18.04Jeffrey Zhang1-2/+2
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-15Add congress-dashboard into horizon imagecaoyuan1-0/+4
Change-Id: I5cd0cc2c884530525b3019c22c04a782a181a3bf
2018-04-26Merge "Add blazar-dashboard into horizon image"Zuul1-0/+4
2018-04-20Add network_mode for image buildingAlex Schultz1-0/+2
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-20Add blazar-dashboard into horizon imagecaoyuan1-0/+4
Change-Id: I67876c734d147593a188ba385b60e02350b44fae
2018-04-01Merge "Add support for Infoblox IPAM agent"Zuul1-0/+4
2018-03-28Add octavia-dashboard to horizon imageCarlos Goncalves1-0/+4
Change-Id: Ic99e9e7b499e82a998386e13dceab4e67f23e989
2018-03-27Add support for Infoblox IPAM agentGerry Buteau1-0/+4
The Infoblox IPAM agent will be started when 'infoblox' is configured as the pluggable IPAM driver in neutron. Change-Id: Ia44f0e0d7a0d60cebf0857ad51700e02eba5099b Partially-Implements: blueprint neutron-ipam-driver-infoblox
2018-03-21Add networking-baremetalHarald Jensas1-0/+4
* 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-03-19Revert "Use queens release for all OpenStack projects"Jeffrey Zhang1-93/+89
queens branch is created. Revert this patch. This reverts commit 6e088f9839fff5f46683545bf27d2c6eaa99019b. Change-Id: If7151ea03a0a90ec9a95b2f0649ed3e355a45cc2 (cherry picked from commit a5880b52a8703a10484fcdcaa71932e1ca66e454)
2018-03-12Merge "Bundle tempest plugins in tempest container"Zuul1-1/+85
2018-03-08Migrate neutron-vpnaas-agent to neutron-l3-agentchenxing1-4/+4
Depends-On: I880ef5dad6723de06da5dd8a424f7158d65b5a35 Depends-On: I52efd29791a230df1ce7e3acde4b7184aec34150 Change-Id: I47cd8ba5a14da3c76d5b1eb0b4c0cf0c729eb2ff Partially-Implements: blueprint restructure-neutron-vpnaas