aboutsummaryrefslogtreecommitdiff
path: root/docker
AgeCommit message (Collapse)AuthorFilesLines
2019-04-16Pin kafka java version to 8 on ubuntuErol Guzoglu1-1/+1
Ubuntu default-jre-headless is not working with kafka Change-Id: Ic6ab66128efa931277516e0cf5848a816ca676ad Closes-Bug: #1824847
2019-04-15Merge "Write hash after compressing horizon static assets"Zuul1-3/+3
2019-04-15Fix the problem of osd initialization failedwangwei1-0/+1
When deploying osd, if the user does not use the extra block partition, the kolla will automatically partition the disk and then clean up the data on the disk partition. Sometimes the disk partition will not be updated, there will be an error not finding the partition. This commit fixes the problem. Change-Id: I14708f38614dcb75268c2f460ae3d921748c2d10 Closes-bug: #1824787
2019-04-13Merge "Add config option use_dumb_init to add it to container images"Zuul2-3/+8
2019-04-12Merge "Fix ubuntu binary deploys"Zuul3-12/+17
2019-04-10Write hash after compressing horizon static assetsMark Goddard1-3/+3
If you run the horizon container with a restart policy of never, and the static asset compression fails, the container fails to start, e.g. (seen in CI) ++ /usr/bin/manage.py collectstatic --noinput --clear Traceback (most recent call last): File "/usr/bin/manage.py", line 18, in <module> from django.core.management import execute_from_command_line ImportError: No module named django.core.management However, with a restart policy of unless-stopped (the default). the horizon container will fail the first time but will succeed after a restart. This is because the settings bundle hash is updated before the compression is attempted. To fix this, update the hash after compression completes successfully. Change-Id: I3f1682ed55e7d45c1e97a1b34c7993aa839f0bb2 Closes-Bug: #1824137
2019-04-10Fix ubuntu binary deploysMark Goddard3-12/+17
1. Install python3-pymysql in placement-base image. 2. Remove default placement WSGI config. 3. Use python3 for manage.py in horizon Change-Id: Ibb620af2241e39fe99bc48757f90296c0d77d438 Partial-Bug: #1823989
2019-04-10Install "procps(-ng)" in the base imageCédric Jeanneret2-1/+3
Providing tools like "ps", "pgrep" and related is interesting since it helps debugging a container in some cases. It is also useful for healthchecks in case we want to fetch running service PID and use it in another command, like "lsof". Change-Id: I91b1c407caa6b03ae522e649592300f9eddfc07e
2019-04-07Merge "Fix the problem that the crush map is changed"Zuul1-2/+6
2019-04-03Add config option use_dumb_init to add it to container imagesRabi Mishra2-3/+8
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-04-02Fix Zookeeper buildsMark Goddard1-1/+1
Use the archive URL rather than the current release which has now moved forward. Change-Id: Iab73d3d13025a1498da8c5b573b4cacd8340d3a9
2019-03-28Merge "Fixed file modes in toolbox:/usr/share/ansible"Zuul1-0/+5
2019-03-28Merge "Add cyborg to kolla"Zuul7-0/+163
2019-03-28Fix:kafka package not found by kafka package url白永君1-1/+1
INFO:kolla.common.utils.kafka:Step 9/12 : RUN curl -sSL -o /tmp/kafka.tgz ${kafka_url} && echo "${kafka_pkg_sha512sum} /tmp/kafka.tgz" | sha512sum -c && tar --strip 1 -xvf /tmp/kafka.tgz -C /opt/kafka && rm -f /tmp/kafka.tgz INFO:kolla.common.utils.kafka: ---> Running in 2b751bf5c975 INFO:kolla.common.utils.kafka:curl (http://apache.osuosl.org/kafka/1.0.2/kafka_2.12-1.0.2.tgz): response: 404, time: 0.198, size: 297 INFO:kolla.common.utils.kafka:/tmp/kafka.tgz: FAILED INFO:kolla.common.utils.kafka:[91msha512sum: WARNING: 1 computed checksum did NOT match Closes-bug: #1822030 Change-Id: Ib9a1bc5c0a69f7780e600404601ae875561450cd
2019-03-27Add cyborg to kollaBai Yongjun7-0/+163
Because kolla not have cyborg so should add this. Implements: blueprint add-cyborg Change-Id: I497e67e3a754fccfd2ef5a82f13ccfaf890a6fcd
2019-03-27Add boto3 python dependencies into gnocchi-base imageCyril Grosjean1-5/+8
Adding boto3 python library into gnocchi-base image Change-Id: I22119f570172ca93de0587dc3892d8b8de86d525 Closes-bug: #1821580
2019-03-27Fix the problem that the crush map is changedwangwei1-2/+6
When deploying ceph osd with kolla, each osd deployment will move the host bucket to default in the crush map. If we adjust the crush map, we have to re-adjust the crush map after adding osd or fixing osd. This commit fixes this problem. Change-Id: Ifdc3a1fd5fe37da529b2aee9811b12f744cff3bf Closes-bug: #1821681
2019-03-26Merge "[docker/prometheus] Bump openstack-exporter version."Zuul1-1/+1
2019-03-25Merge "MariaDB upgrade: specify host and port"Zuul1-1/+1
2019-03-25Merge "Install trousers to get user tss for nova_libvirt"Zuul1-1/+3
2019-03-25Merge "cleanup in base for yum install entries"Zuul2-16/+11
2019-03-25Install trousers to get user tss for nova_libvirtMartin Schuppert1-1/+3
The user tss is wanted by libvirt and comes with the trousers package. Prior RHEL8 it comes via the gnutls -> trousers dependencies, but there is no such a dependency in RHEL8, so make sure we have trousers installed. Change-Id: I9f11ba53d5c6f0a435a62bb462164566c4519d9f Closes-Bug: #1821309
2019-03-25Merge "Bump skydive version to 0.22.0"Zuul1-1/+1
2019-03-23MariaDB upgrade: specify host and portMark Goddard1-1/+1
While mysql_upgrade seems to work on CentOS images without specifying a host and port, it fails on Ubuntu without these. Change-Id: Ie140de57c4fe2f2e4db6a90c18e3535d9cc71ff2 Related-Bug: #1820325
2019-03-22Merge "Move top package installed in every *-base container to openstack-base"Zuul1-0/+2
2019-03-22Bump skydive version to 0.22.0Michal Nasiadka1-1/+1
Change-Id: Ic88ab9fabcfd0287d41e13606aba1290f6f7a011 Closes-Bug: #1806167
2019-03-21cleanup in base for yum install entriesJon Schlueter2-16/+11
- introduce install_packages(..., chain=True) to allow chaining on onto existing RUN commands - introduce install_packages(..., clean) which defaults correctly but allows you to override if you want to avoid doing extra package manager cleanup - refactored several calls in base to make use of these new features In general this allows for macros.install_packages to be chained after other calls for example RUN foo && {{ macros.install_packages(..., chain=True) }} Change-Id: I4b2fe8e13ee3c0fffe77a1179a7af5b534496996
2019-03-21Fixup whitespace issue in chainingJon Schlueter1-2/+2
base_rhel_package_installation block had whitespace isses depending on which branch of the if statement you had. this resulted in a blank line in the continued "\ \n &&" rendered Dockerfile Change-Id: I634f1bc01806e2606d611b3697e84b43278c4a9b
2019-03-21refactor to pull out rpm_security_update macroJon Schlueter2-11/+12
- pulled out the repeated code from 3 paths in base and moved it into docker/macros - created macros.rpm_security_update - made sure the new macro could be customized for cleanup caches - update macro to use distro_package_manager Change-Id: Ic79ff42d913e1cbb68be66743e4f79f0bcff47f5
2019-03-21Merge "Fix MariaDB 10.3 upgrade"Zuul2-1/+26
2019-03-21Merge "monasca, tempest: install librdkafka-dev to get it built for ↵Zuul2-0/+8
non-x86/source"
2019-03-21Move top package installed in every *-base container to openstack-baseJon Schlueter1-0/+2
- python*-oslo-upgradecheck was being installed in a number of different *-base containers that I checked Change-Id: Iddd8a191e5523ec048dff324993abadcfc020132
2019-03-21Merge "Use virtual package for ansible"Zuul1-2/+2
2019-03-21Merge "Install qemu-system in nova-libvirt on ubuntu"Zuul1-1/+1
2019-03-21Merge "Introduce clean_package_cache"Zuul2-8/+10
2019-03-21Merge "install ncurses explicitly for tput for rpm distro"Zuul1-0/+2
2019-03-20Merge "Drop redundant rpms from nova-base package list"Zuul1-12/+0
2019-03-20Merge "Do not explictly specify mysql related RPMS"Zuul1-2/+0
2019-03-20Merge "Add Google mtail for generating metrics from logs"Zuul1-0/+30
2019-03-20install ncurses explicitly for tput for rpm distroJon Schlueter1-0/+2
tput is used in PS1 env, but nothing explicitly makes sure that it is installed. Red Hat's ubi8 base image only contains ncurses-base and ncurses-libs but not ncurses rpm which provides the tput cli Change-Id: I4f6b101195d245e14f6600b1edd9caafd25dcaac
2019-03-20monasca, tempest: install librdkafka-dev to get it built for non-x86/sourceMarcin Juszkiewicz2-0/+8
fixes build issue under Debian:buster on AArch64: In file included from confluent_kafka/src/confluent_kafka.c:17: confluent_kafka/src/confluent_kafka.h:22:10: fatal error: librdkafka/rdkafka.h: No such file or directory #include <librdkafka/rdkafka.h> ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 Under Ubuntu it is still broken because librdkafka is too old. Change-Id: I1e54645ea5805f985c9bd04f9936ea3edbebfd31
2019-03-18Sahara: install also the split pluginsLuigi Toscano1-0/+26
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-18Fix MariaDB 10.3 upgradeMark Goddard2-1/+26
There are a couple of issues with the mariadb image currently. 1. it doesn't include mysql_upgrade on CentOS/RHEL. It is necessary to run this after an upgrade of MariaDB. This is fixed by installing mariadb-server-utils. 2. it inherits the standard dumb-init entrypoint from the base image, which includes a --single-child argument. That causes signals to be forwarded only to the process executed by dumb-init, which in the case of kolla-ansible is mysqld_safe, however mysqld_safe ignores SIGTERM. After a timeout, Docker then forcibly kills the container. Executing dumb-init without --single-child ensures the TERM signal is sent to mysqld, allowing it to shutdown gracefully. Change-Id: I1a450736721863b91be1ea3d3c8948990de9fdeb Closes-Bug: #1820325
2019-03-18Pin sensu mailer and slack pluginsMark Goddard1-2/+5
The 4.0.0 release of the mailer plugin requires Ruby 2.3+, which is not avaiable in CentOS/RHEL7. Pin it to the 3.0.0 release, which is supported. While we're here, also pin the slack plugin. Both use the pessimistic version operator, as used in the sensu-client image. Change-Id: Idac8cb696c81c7413a3da79b4868f556ef36fc8d Closes-Bug: #1820594
2019-03-17Introduce clean_package_cacheEmilien Macchi2-8/+10
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-15Merge "Move to Debian 'buster'"Zuul7-33/+6
2019-03-15Merge "helm-repository: drop unused os_client_config variable"Zuul1-6/+0
2019-03-15Merge "base: more strict pin of Ceph/Luminous for Ubuntu"Zuul1-1/+1
2019-03-15Merge "Drop tcp_wrappers package requirement"Zuul1-2/+1
2019-03-15Merge "Separate placement DB sync and data migrations"Zuul1-0/+12