aboutsummaryrefslogtreecommitdiff
path: root/docker/kolla-toolbox
AgeCommit message (Collapse)AuthorFilesLines
2023-03-20docker: use python3-venv to create virtual envMarcin Juszkiewicz1-2/+2
Debian 'bookworm' does not like when someone installs Python packages into system directories. So instead of installing 'virtualenv' from pip we move to use 'python3 -m venv' which we install from distribution repositories (on Debian/Ubuntu as EL9 has it in base 'python3'). Change-Id: I7092b561d81c362ca24f84a3d753e777e5625ab3
2023-02-28toolbox: Increase galaxy timeout and retry downloadMichal Nasiadka1-1/+2
Change-Id: I6e66aea5dc0af61fbc074b4c8ed3910435c98dbd
2023-02-23toolbox: use ansible-collections-openstack >2Michal Nasiadka2-3/+2
Change-Id: I6564886f68a997b82b49b6f975283a6d95831ce6
2023-02-08Merge "rabbitmq: upgrade to 3.11"Zuul1-1/+1
2023-02-01rabbitmq: upgrade to 3.11Michal Nasiadka1-1/+1
Change-Id: I4836806c0434caaff1e6fd1646aa5566b0c3d7e1
2023-02-01toolbox: bump ansible-core to 2.14Michal Nasiadka1-1/+1
Change-Id: I17045980b6f73a0395b1bdfd3b1b6b63679284c9
2022-10-27rabbitmq: use Erlang 25 on AArch64/CentOS/RockyMarcin Juszkiewicz1-12/+2
We switched repo to provide Erlang 25 but not switched to it. Change-Id: I8b0a2f27ccb3db61a38d8fe89676f99eed1e3d75
2022-10-09Fix Swift deployment issueMaksim Malchuk1-0/+2
Swift deployment is broken since CVE-2022-38060 fixed sudoers file in the I66476a2b396e2cbe41e68ac51f57aae1806b2ed8. The kolla-toolbox container have their own virtualenv path differs from all other containers. This change adds the correct sudoers secure_path configuration needed only for kolla-toolbox conainer. Related-Bug: #1985784 Change-Id: I3651576ee354364d639c187ff750491667ecab56 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2022-10-05kolla-toolbox: bump ansible-core to 2.13Michal Nasiadka2-4/+1
Change-Id: I13e3cf5a02dadcedd1ebbd54d56f7f633e6e3d68
2022-09-28centos: use Erlang 24 on AArch64Marcin Juszkiewicz1-7/+13
We do not have Erlang 25 for CentOS Stream 9 on AArch64 so we revert to use Erlang 24 from CentOS repository. Also synced Erlang and RabbitMQ versions between images. Change-Id: I1480de095eaea66c3a83a61ca3ff269953181e39
2022-09-27Move to CentOS Stream 9Marcin Juszkiewicz1-1/+1
OpenStack 'zed' requires Python 3.8+ so RHEL 8 family has to go. This changeset moves to CentOS Stream 9 while move to RockyLinux 9 is planned as final solution. CI moved to CentOS Stream 9 nodes. Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/839715 Change-Id: I113b9984294cf8663d3fc0c8840320e1d40ea731
2022-06-09Switch OPENSTACK_RELEASE back to masterMichal Nasiadka1-0/+3
Cap openstacksdk in kolla-toolbox to avoid ansible-openstack-collection from failing. Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/844905 Change-Id: I4d7dcc413cd9ab0b9db550e1aed7d2229b04c5d1
2022-04-21flatten images a bitMarcin Juszkiewicz1-6/+5
As we have one type of images now some RUN calls could be merged so we will have less layers in resulting images. Change-Id: I5178c58fbd8c65efe825dc249c0f1368ef0fe8e0
2022-04-11Adjust permissions on _extend_start files.Tim Shearer1-0/+1
Explicitly set the permissions on the kolla-toolbox kolla_extend_start file. Also, since all extend_start files are sourced rather than executed, the executable bits are now cleared throughout the project. Change-Id: I5c2deb4a2e33575d57c852089f856a9acc6818d0
2022-04-11drop add_binary_source_envs() macroMarcin Juszkiewicz1-1/+0
With binary install type dropped there is no need for this macro. Change-Id: I7bdd29eb48a23faa04a98e785129d97258f05e64
2022-04-11drop infra_image_prefixMarcin Juszkiewicz1-1/+1
We have one install_type only now so that infra stuff is not needed anymore. Change-Id: I60d50ba7699d46d001eaef365fb84b0ce8e9b262
2022-03-22toolbox: Add ironic clientRadosław Piliszek1-0/+1
Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/832159 Change-Id: Ie90f13a568b4120531bbbf5982d2cbbf1f9c5995
2022-03-11Unify curl use (customisation options)Maksim Malchuk1-1/+1
This change adds and unifies an ability to override hardcoded URLs for air-gapped environments via the usual blocks mechanism. Also, this change replaces ENV with ARG instruction for the variables used only in building images, and uses bash variable expansion where it possible. This change is a continuation of the I46b77978926fc2b578a68d1aaa944b2198af0685 Change-Id: I1fbad333b1bc95484e6f4c5145d5936a0e2db84f Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2022-02-09rabbitmq: update to 3.9Michal Nasiadka1-2/+2
Also update Erlang to 24 Change-Id: Ifbaccc54896bab096a6d16dc7733941dd600cf39 Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/828594
2022-02-05erlang: use packages from Erlang Solutions on AArch64Marcin Juszkiewicz1-14/+8
RabbitMQ requires Erlang 23+ and soon will bump to 24+. On AArch64 we used version 22 as there was no other option. Now it is. Change-Id: I667ccda5bb4edbfbfb97dfb0cea264837ed05cae
2022-01-20Merge "Clean MariaDB/MySQL"Zuul1-5/+1
2021-11-26Upgrade pip and friends in source imagesRadosław Piliszek1-1/+2
New pip has nice features for detection of conflicting requirements. When installing from PyPI, as we do in source images, running the latest pip+setuptools+wheel is recommended. Co-authored-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Change-Id: I4ae3a82cc796a60450c2a35beba32972964bc5d0
2021-10-02Clean MariaDB/MySQLRadosław Piliszek1-5/+1
We are just overinstalling these. PyMySQL is enough nowadays. Change-Id: I074d9d13f52c208c0f3d92ea060b3b9abb6a6b9e
2021-09-16toolbox: Move to ansible-core 2.11 and collectionsMichał Nasiadka3-2/+15
Change-Id: I55327cc3c686eae8f2da85ea957cae851e3041e4
2021-09-07toolbox: Move custom Ansible config to global locationMichał Nasiadka2-2/+17
In order to achieve logging to /var/log/kolla/ansible.log from different users than default ansible - the config needs to be moved to global location. Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/807679 Closes-Bug: #1942846 Change-Id: I4325fe031647a04766516afa528639d6ff0b5ae6
2021-07-23Fix missing templating block for kolla-toolbox.Gaël THEROND (Fl1nt)1-0/+2
Change-Id: I4ce8244a3fb034493a75f4096de2640e11b48931 Closes-Bug: #1931867
2021-06-29Remove last mongo refsRadosław Piliszek1-1/+0
Drop installation of pymongo because it is not used by Telemetry since at least Queens [1] [2] and MongoDB is not deployed by Kolla Ansible since Victoria. [1] https://review.opendev.org/c/openstack/ceilometer/+/512700 [2] https://review.opendev.org/c/openstack/aodh/+/373043 Change-Id: Id44ab0fe673f01490cd8ca9c51f465ae7ad95e08
2021-04-29CentOS on AArch64 has only Erlang 22Marcin Juszkiewicz1-2/+13
RabbitMQ 3.8.14 is the last version with Erlang 22 support Change-Id: I1d68a47f78b925af76c44c61af7da1465371e721
2021-04-26Pin erlangRadosław Piliszek1-0/+1
Now that we run without erlang pinned by the repository itself, let's pin it on our side. Change-Id: Ifa491b102ad0db7f6dc645ca552d83b53bcf3b46
2021-04-13centos: enable repos where neededMarcin Juszkiewicz1-1/+1
With RDO use we did not disabled some repositories. This patch disable them and enable where needed. Change-Id: Ia9d537fe9c1ad54789d2bfb4027254fbb3defe7e
2021-04-06kolla-toolbox: Upgrade openvswitch collection to newer versionMichał Nasiadka2-1/+7
Ansible 2.10 includes openvswitch.openvswitch collection in lower version than 2.0.0 - which fixes the bug that state: absent requires value: to be set. Related change: https://review.opendev.org/c/openstack/kolla-ansible/+/750631 Change-Id: I92dab4394b7eebdcff7f90765cde078c1292312b
2021-03-04Update Ansible to 2.10 in kolla-toolboxMichał Nasiadka1-1/+1
Change-Id: I63f6491919eba913bfd35a294b4cc17cc4c68603
2021-01-02Merge "Remove shade and kolla_sanity.py from kolla-toolbox"Zuul2-67/+1
2020-12-02Unify curl optionsMichał Nasiadka1-1/+1
Currently we use couple of curl options throughout Dockerfiles, this change adds all common options to curlrc (-sSLf) and removes usage of those in Dockerfiles. Change-Id: I46b77978926fc2b578a68d1aaa944b2198af0685
2020-09-25Update Ansible in kolla-toolbox to 2.9Mark Goddard1-3/+1
Change-Id: I7a05751143fbf41a4d1754049d58cd434811bcc6
2020-09-21create 'add_binary_source_envs' macro and use itMarcin Juszkiewicz1-0/+1
There is small subset of images where we need to know which install_type or install_metatype is used. So add them only there (and their children). Change-Id: Ib7d5e36b958d6c8daf2989df32e29fa24b46c62a Implements: blueprint infra-images
2020-09-21Merge "Improve pip install process for offline deployment."Zuul1-4/+0
2020-09-17Improve pip install process for offline deployment.Gaël THEROND (Fl1nt)1-4/+0
* "Use distribution-provided pip" * "Use python's pip module invocation method" * "Install pip earlier in order to avoid multiple installation" * "Remove pip_version variable requirement and call" Change-Id: Id0e738044a1931f9d611a7281a48ea4a593f1cf1 Closes-bug: #1893204
2020-09-17Add openvswitch packages to kolla-toolboxMichal Nasiadka1-0/+2
Required by https://review.opendev.org/#/c/750631/ Change-Id: I9e4e408ebc197b12ef128ec629fb648246ef6582
2020-07-09introduce 'infra_image_prefix' for infra imagesMarcin Juszkiewicz1-1/+1
Defaults to 'image_prefix' for now but shows which images gets their names changed soon. Change-Id: I0608e8f62f28d6667b4c8753c47553e4cbf75503
2020-06-19kolla-toolbox: use u-c while installing virtualenvMarcin Juszkiewicz1-4/+4
We need to be sure that we use exact same version every time. So fetch upper-constraints.txt file earlier and use it while installing virtualenv package. Change-Id: I61711a878b2bda9f0d2e88966f13121dfcddfda7
2020-06-03Remove shade and kolla_sanity.py from kolla-toolboxMichal Nasiadka2-67/+1
Shade is deprecated long time, and only kolla_sanity.py utilised by k-a swift role is using that. Closes-Bug: #1760517 Depends-On: https://review.opendev.org/733143 Change-Id: Ie2e17bba37494b320986c17b30b15b62dd71ba22
2020-04-15Remove support for CentOS 7Marcin Juszkiewicz1-11/+2
With the move to RHEL/CentOS 8 we no longer have Python 2 in our images so there is no need for checking which Python version (2.x or 3.x) is used inside of containers. We also no longer have to support yum as a value for distro_package_manager. Partially-Implements: blueprint centos-rhel-8 Change-Id: Ie45cf3465fedddbde7856961527421883ba3d5c9
2020-04-06Upgrade RabbitMQ to 3.8Dincer Celik1-7/+3
Upgrade and pin RabbitMQ to 3.8. Upgrade Erlang to 22 to meet requirements: https://www.rabbitmq.com/which-erlang.html Start using bintray repository provided by RabbitMQ. Linaro builds will be used for aarch64. Implements: blueprint rabbitmq-version-upgrade Closes-Bug: #1848452 Change-Id: I3d775fd832f2603181da89009cebc1370a61a023
2020-03-05Multiple fixes to unblock CIMark Goddard1-1/+3
This change includes a number of fixes to make CI functional. * Blacklist ansible 2.8.9 in kolla-toolbox Ansible 2.8.9 broke the OpenStack modules, see https://bugs.launchpad.net/kolla/+bug/1866181 for details. This causes us to fail with the following error: /usr/lib64/python2.7/distutils/version.py\", line 40, in __init__ self.parse(vstring) File "/usr/lib64/python2.7/distutils/version.py", line 105, in parse match = self.version_re.match(vstring)\nTypeError: expected string or buffer This change works around the issue by blacklisting ansible 2.8.9 in the kolla-toolbox image. * Drop CentOS 7 CI jobs. There are multiple issues with CentOS 7 now, and we have CentOS 8 jobs in place so it's time to move on * pin requirements to commit ea42244642c3c091cb4f70917ae8d79af217b6af. This is required to avoid oslo.cache 2.1.0, which breaks us. See https://bugs.launchpad.net/kolla-ansible/+bug/1866008. Change-Id: Iebc39bd804d2c4f553d42c285549f50f4c8bc8be Closes-Bug: #1866181 Related-Bug: #1866008
2020-03-01Add block labels to all DockerfilesChristian Berendt1-0/+2
Change-Id: I9692dda817ef134d647247431565e1b58cf9da41
2020-02-28Fix kolla_toolbox_pip_virtualenv_packages overrideXing Zhang1-1/+1
backport: train, stein, rocky Override in filter needs to follow the rule: <image_name>_<call_type>_<override/append/remove> `call_type` for `kolla_toolbox_pip_virtualenv_packages` should be `pip_virtualenv_packages`, and `pip_packages` can't match with `kolla_toolbox_pip_virtualenv_packages`, this makes the value can't be overrode in template override. Change-Id: I1dbe2dfd4bce73ce2285f45f997d45b5dcc95f4c Closes-bug: #1865119
2020-01-29CentOS 8: Update packages in imagesMark Goddard1-2/+13
* Some further changes for python2 vs python3 packages * Allow rabbitmq 3.7.*, since a newer erlang is available * Switch from qemu-img-ev to qemu-img on CentOS 8 * bridge-utils no longer available on CentOS 8 * libvirt-daemon-driver-lxc no longer available on CentOS 8 * Mark some more images buildable for CentOS 8 Change-Id: Iaf5b68ff6d944ae730ca0b1d5832172c106a6c08 Partially-Implements: blueprint centos-rhel-8 Partially-Implements: blueprint centos-rhel-python-3
2019-12-12Use APT pinning to set preferred version of RabbitMQMarcin Juszkiewicz1-10/+2
We want RabbitMQ 3.7.10-1 for Ubuntu. So set it in one place which is designed for such things instead of doing it everytime we want to install it. Change-Id: Ib2b2d4e392aaf77bcdec24f9f5551cdf15d32d91
2019-12-09Remove kolla_keystone_* modules from kolla-toolboxMark Goddard3-197/+1
These are no longer used by kolla ansible, and were not used by any other deployment tools. Change-Id: I214b0b7d94717aa9aeae88363d5721396e7b6684