Commit Graph

142 Commits

Author SHA1 Message Date
Michal Nasiadka 6efbc371f0 kolla-toolbox: Bump ansible-core to 2.16
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-17 06:20:36 +00:00
Michal Nasiadka a0e22caa8a Bump rabbitmq to 3.13
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-03-11 15:11:54 +00:00
Michal Nasiadka 94bd013ed5 toolbox: Improve retry loop for ansible-galaxy
Currently if it somehow fails for 5 times - we get exit code 0.

Closes-Bug: #2052293
Change-Id: I2bdeb77e3133123053b05adcbde3a426c60f3304
2024-02-02 14:58:49 +00:00
Zuul 3d703b60e6 Merge "toolbox: Add sleep script handling signals" 2023-09-18 18:36:17 +00:00
Zuul fab86165eb Merge "Improve kolla-toolbox offline support." 2023-09-06 07:21:45 +00:00
Michal Nasiadka 8c5b6dc5bd toolbox: Add sleep script handling signals
Closes-Bug: #2031692

Change-Id: I8b69869cca98d83d3b1be3f4add88ff83b22b4a1
2023-08-23 08:55:34 +00:00
Michal Nasiadka 63e5fc7fbb rabbitmq: bump version to 3.12
Erlang has been bumped to 26 as well.

Change-Id: I5a6e90790d9c3c148e118fdf2ce6089e0a6a343e
2023-08-16 06:55:45 +00:00
Gaël THEROND (Fl1nt) 7f38e1df71 Improve kolla-toolbox offline support.
* Use structure that allow for custom package version and base URL.

Change-Id: I169e51c0f5c691518ada1837990b5bdd2a3d1481
Closes-bug: #2020761
2023-08-01 11:37:59 +00:00
Michal Nasiadka 1dba21d012 Revert "rabbitmq: pin to 3.11.16"
This reverts commit 600ed4f149.

Reason for revert: 3.11.18 is out with a fix

Change-Id: I4659bcd48ea32294b3ee84af9af94fae32b38bf3
2023-06-21 17:20:03 +00:00
Michal Nasiadka 600ed4f149 rabbitmq: pin to 3.11.16
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-30 15:35:18 +00:00
Michal Nasiadka 7aa6450491 toolbox: use venv instead of virtualenv
Change-Id: Id20394d06747b7f56e8745f129149c3f1c492ca7
2023-05-17 14:00:38 +00:00
Marcin Juszkiewicz 19e40f1608 docker: implement macros to alter upper-constraints.txt
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-04-21 14:13:24 +02:00
Marcin Juszkiewicz ca16f7ae7d docker: use python3-venv to create virtual env
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-03-20 17:45:08 +01:00
Michal Nasiadka 575a090af2 toolbox: Increase galaxy timeout and retry download
Change-Id: I6e66aea5dc0af61fbc074b4c8ed3910435c98dbd
2023-02-28 14:38:10 +00:00
Michal Nasiadka a83585d928 toolbox: use ansible-collections-openstack >2
Change-Id: I6564886f68a997b82b49b6f975283a6d95831ce6
2023-02-23 18:03:47 +00:00
Zuul 421fa62d0c Merge "rabbitmq: upgrade to 3.11" 2023-02-08 11:25:39 +00:00
Michal Nasiadka d9f4c78e87 rabbitmq: upgrade to 3.11
Change-Id: I4836806c0434caaff1e6fd1646aa5566b0c3d7e1
2023-02-01 11:26:44 +01:00
Michal Nasiadka 61f649febe toolbox: bump ansible-core to 2.14
Change-Id: I17045980b6f73a0395b1bdfd3b1b6b63679284c9
2023-02-01 11:26:13 +01:00
Marcin Juszkiewicz 3c70d5fc4e rabbitmq: use Erlang 25 on AArch64/CentOS/Rocky
We switched repo to provide Erlang 25 but not switched to it.

Change-Id: I8b0a2f27ccb3db61a38d8fe89676f99eed1e3d75
2022-10-27 11:11:00 +00:00
Michal Nasiadka 3f07d8f7f6 kolla-toolbox: bump ansible-core to 2.13
Change-Id: I13e3cf5a02dadcedd1ebbd54d56f7f633e6e3d68
2022-10-05 12:01:01 +02:00
Marcin Juszkiewicz ac1ae84386 centos: use Erlang 24 on AArch64
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-28 17:05:29 +00:00
Marcin Juszkiewicz 878b00013b Move to CentOS Stream 9
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-09-27 07:40:06 +00:00
Michal Nasiadka 07a65c9061 Switch OPENSTACK_RELEASE back to master
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-06-09 12:52:16 +02:00
Marcin Juszkiewicz e21aeb5ae9 flatten images a bit
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-21 18:53:14 +00:00
Tim Shearer 1d96a2bbe1 Adjust permissions on _extend_start files.
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-11 17:22:24 +02:00
Marcin Juszkiewicz 3915785884 drop add_binary_source_envs() macro
With binary install type dropped there is no need for this macro.

Change-Id: I7bdd29eb48a23faa04a98e785129d97258f05e64
2022-04-11 12:09:29 +02:00
Marcin Juszkiewicz a1510870e8 drop infra_image_prefix
We have one install_type only now so that infra stuff is not needed
anymore.

Change-Id: I60d50ba7699d46d001eaef365fb84b0ce8e9b262
2022-04-11 06:22:21 +00:00
Radosław Piliszek ac371617c9 toolbox: Add ironic client
Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/832159
Change-Id: Ie90f13a568b4120531bbbf5982d2cbbf1f9c5995
2022-03-22 15:32:13 +01:00
Maksim Malchuk 83efe32546 Unify curl use (customisation options)
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-03-11 15:58:05 +03:00
Michal Nasiadka 732860302c rabbitmq: update to 3.9
Also update Erlang to 24

Change-Id: Ifbaccc54896bab096a6d16dc7733941dd600cf39
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/828594
2022-02-09 17:26:39 +00:00
Marcin Juszkiewicz f943c7d773 erlang: use packages from Erlang Solutions on AArch64
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-02-05 10:37:41 +01:00
Zuul f7ef6c243a Merge "Clean MariaDB/MySQL" 2022-01-20 20:51:22 +00:00
Radosław Piliszek a41001f714 Upgrade pip and friends in source images
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-11-26 12:11:12 +00:00
Radosław Piliszek 6b203efde7 Clean MariaDB/MySQL
We are just overinstalling these.
PyMySQL is enough nowadays.

Change-Id: I074d9d13f52c208c0f3d92ea060b3b9abb6a6b9e
2021-10-02 17:41:33 +00:00
Michał Nasiadka 6eeb2cbdd1 toolbox: Move to ansible-core 2.11 and collections
Change-Id: I55327cc3c686eae8f2da85ea957cae851e3041e4
2021-09-16 10:19:54 +00:00
Michał Nasiadka 88f1e32aa9 toolbox: Move custom Ansible config to global location
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-09-07 18:00:46 +00:00
Gaël THEROND (Fl1nt) fb218ff9bf Fix missing templating block for kolla-toolbox.
Change-Id: I4ce8244a3fb034493a75f4096de2640e11b48931
Closes-Bug: #1931867
2021-07-23 16:04:52 +02:00
Radosław Piliszek d55cd5e5c2 Remove last mongo refs
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-06-29 13:50:17 +00:00
Marcin Juszkiewicz 0ec6049a73 CentOS on AArch64 has only Erlang 22
RabbitMQ 3.8.14 is the last version with Erlang 22 support

Change-Id: I1d68a47f78b925af76c44c61af7da1465371e721
2021-04-29 11:16:24 +02:00
Radosław Piliszek b54789d093 Pin erlang
Now that we run without erlang pinned by the repository itself,
let's pin it on our side.

Change-Id: Ifa491b102ad0db7f6dc645ca552d83b53bcf3b46
2021-04-26 16:54:11 +00:00
Marcin Juszkiewicz 38fcd184e8 centos: enable repos where needed
With RDO use we did not disabled some repositories. This patch disable
them and enable where needed.

Change-Id: Ia9d537fe9c1ad54789d2bfb4027254fbb3defe7e
2021-04-13 11:21:39 +00:00
Michał Nasiadka 910153f342 kolla-toolbox: Upgrade openvswitch collection to newer version
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-04-06 12:12:05 +00:00
Michał Nasiadka 0f22d3c2eb Update Ansible to 2.10 in kolla-toolbox
Change-Id: I63f6491919eba913bfd35a294b4cc17cc4c68603
2021-03-04 11:50:10 +01:00
Zuul a792ac3591 Merge "Remove shade and kolla_sanity.py from kolla-toolbox" 2021-01-02 20:42:30 +00:00
Michał Nasiadka 22c32a30e6 Unify curl options
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-12-02 18:48:22 +01:00
Mark Goddard df8016bf56 Update Ansible in kolla-toolbox to 2.9
Change-Id: I7a05751143fbf41a4d1754049d58cd434811bcc6
2020-09-25 11:39:30 +01:00
Marcin Juszkiewicz 87730f8f7c create 'add_binary_source_envs' macro and use it
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-21 12:10:57 +00:00
Zuul e068a3fb3d Merge "Improve pip install process for offline deployment." 2020-09-21 09:31:35 +00:00
Gaël THEROND (Fl1nt) b93c40a363 Improve pip install process for offline deployment.
* "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-17 13:50:15 +00:00
Michal Nasiadka bb71138fc6 Add openvswitch packages to kolla-toolbox
Required by https://review.opendev.org/#/c/750631/

Change-Id: I9e4e408ebc197b12ef128ec629fb648246ef6582
2020-09-17 13:13:39 +02:00