aboutsummaryrefslogtreecommitdiff
path: root/docker/kolla-toolbox
AgeCommit message (Collapse)AuthorFilesLines
2024-11-15Add mechanism for patching files in containersMichal Arbet1-0/+2
This patch adds a way to patch files in a Docker image built by Kolla. This is very useful for several reasons, specifically: - Custom modifications - The stable branch of some library has a fix but no pip package has been released - Eliminates the need to package your own pip packages - Eliminates the need to invent your own versioning to prevent upstream versioning - Eliminates the need to manage a pip server - In other words, it eliminates the need to get a wheel into the image and install it manually using any method not previously mentioned It is also highly desirable because, although Kolla can replace the source for a service with a custom URL for a tarball or its own Git repo, it cannot do this for dependencies pulled from pip. I would also like to point out that this is a feature with its own code path and works only if the user "inserts" a patch into the folder patches/docker-image/something.patch and creates an analogous series file for patch source code. Simply said, this code will never interfere with the upstream build process since this feature is not intended for use in upstream. It is rather meant for downstream users who know what they are doing. Now they just have an option to patch their images. Everything works on all layers of the Docker image and stores a report of applied patches which can then be seen in /etc. This mechanism is similar as debian patch quilt. Change-Id: I61d0790c5d4d070b7ea9e8c99c0a76ff5d22bf9d
2024-09-19Switch to Dynamic Python Version DetectionMichal Arbet1-7/+25
This commit removes the hardcoded KOLLA_DISTRO_PYTHON_VERSION and replaces it with dynamic Python version detection during container images build. Dockerfiles and scripts now use general python3 references, simplifying maintenance and ensuring compatibility with future Python versions. Test cases relying on distro_python_version were also cleaned up. Change-Id: I891749598247a5e951ed4a873b16acfd0566f59c
2024-07-16toolbox: Bump ansible-core to 2.17Michal Nasiadka1-4/+4
And also python3.11 to python3.12 on rpm distro side Change-Id: I000e2f2aacb011618a0b3c7b41fe286b3680614f
2024-06-04Pass rabbitmq apt preferences into kolla-toolboxMatt Crees3-0/+8
If the latest and targeted rabbitmq-server dependencies mismatch, kolla-toolbox will fail to build. Closes-Bug: #2066171 Change-Id: I64e9442545d98364585e3c632ae9142cd6b4f9bf
2024-04-18kolla-toolbox: Use py311 on rpm distrosMichal Nasiadka1-11/+9
ansible-core 2.16 requires py3.10+ on the host running ansible-playbook - let's use Python 3.11 on RPM distros to have the same version of ansible-core used on all distributions. Change-Id: I2caf2c972cd0283889fadde01bdd6a53e5f66ed9
2024-04-17Merge "kolla-toolbox: Bump ansible-core to 2.16"Zuul1-1/+6
2024-04-17kolla-toolbox: Bump ansible-core to 2.16Michal Nasiadka1-1/+6
2.15 patch was 2023.2 only - because we missed it last cycle [1] ansible-core 2.16 requires python3.10 which is not the default python in Rocky Linux 9 - therefore we use 2.15 there for now [1]: https://review.opendev.org/c/openstack/kolla/+/910148 Change-Id: Ic8cc29230d82f4d1f07a3c97c3dcbcd14ac76074
2024-04-15CI: Add codespell for spell checkingMichal Nasiadka1-3/+3
Fix existing spell checking Change-Id: Ief7b8f2d427b2557c84fda9b3774ed85ceb105f4
2024-03-11Bump rabbitmq to 3.13Michal Nasiadka1-2/+2
Pinning Erlang to 26.2.* (max supported version as per [1]), so we don't break this in future when Erlang 26.3 becomes available. [1]: https://rabbitmq-website.pages.dev/docs/which-erlang Change-Id: I1fd03a67914386129d7b0bb9be6aca86982f98f3
2024-02-02toolbox: Improve retry loop for ansible-galaxyMichal Nasiadka1-2/+4
Currently if it somehow fails for 5 times - we get exit code 0. Closes-Bug: #2052293 Change-Id: I2bdeb77e3133123053b05adcbde3a426c60f3304
2023-09-18Merge "toolbox: Add sleep script handling signals"Zuul2-0/+18
2023-09-06Merge "Improve kolla-toolbox offline support."Zuul1-3/+6
2023-08-23toolbox: Add sleep script handling signalsMichal Nasiadka2-0/+18
Closes-Bug: #2031692 Change-Id: I8b69869cca98d83d3b1be3f4add88ff83b22b4a1
2023-08-16rabbitmq: bump version to 3.12Michal Nasiadka1-2/+2
Erlang has been bumped to 26 as well. Change-Id: I5a6e90790d9c3c148e118fdf2ce6089e0a6a343e
2023-08-01Improve kolla-toolbox offline support.Gaël THEROND (Fl1nt)1-3/+6
* Use structure that allow for custom package version and base URL. Change-Id: I169e51c0f5c691518ada1837990b5bdd2a3d1481 Closes-bug: #2020761
2023-06-21Revert "rabbitmq: pin to 3.11.16"Michal Nasiadka1-1/+1
This reverts commit 600ed4f149a1cf542f54d7fc5005030f53c69a83. Reason for revert: 3.11.18 is out with a fix Change-Id: I4659bcd48ea32294b3ee84af9af94fae32b38bf3
2023-05-30rabbitmq: pin to 3.11.16Michal Nasiadka1-1/+1
Seems rabbitmq node drain got broken in 3.11.17 Related-Bug: https://github.com/rabbitmq/rabbitmq-server/issues/8414 Change-Id: I3a23670f85336344d8aebaded74dd65871837b82
2023-05-18Merge "Revert "toolbox: pin ansible.posix to <1.5.4""Zuul1-1/+1
2023-05-17toolbox: use venv instead of virtualenvMichal Nasiadka1-9/+5
Change-Id: Id20394d06747b7f56e8745f129149c3f1c492ca7
2023-05-17Revert "toolbox: pin ansible.posix to <1.5.4"Michal Nasiadka1-1/+1
This reverts commit d965b1b3da9b8c2780a91781834a46f5886bd9c2. Reason for revert: Not required in master? Change-Id: I03b8ed63687ed854a50d521043b04deaf76f7067
2023-05-16toolbox: pin ansible.posix to <1.5.4Michal Nasiadka1-1/+1
ansible.posix 1.5.4 has been released and it broke the way we use JSON callback plugin (it requires play.path) - see [1] and [2]. [1]: https://github.com/ansible-collections/ansible.posix/commit/3bbf2e3cd56775096fc8ce69e281142472b73cac [2]: https://github.com/ansible-collections/ansible.posix/issues/461 Change-Id: I2f879e59a64b9039a8a27c40bd462fde4df73f43
2023-04-21docker: implement macros to alter upper-constraints.txtMarcin Juszkiewicz1-1/+1
upper_constraints_remove() macro allows to remove line upper_constraints_version_change() allows to change versions This way we have cleaner way to alter u-c in those images which need it. Change-Id: I8fc354b8aa4d03fcd3ecfb9cbfe75de67492a0e3
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