13480 Commits

Author SHA1 Message Date
Michal Nasiadka
1497ab2ab3 systemd: handle running container without systemd unit
MariaDB bootstrap has a phase where the first MariaDB container
is running with Galera bootstrap - after a check that WSREP
is synced is successful - we restart the container.

The bootstrap container is named mariadb and running with
docker_restart_policy: "no" - the restarted container should be running
in systemd.

Before this patch the code created a systemd unit but it was initially
stopped - so stopping was always a success - and the container would be
killed with SIGKILL on removal (which obviously breaks MariaDB).

This patch also improves docker/systemd stops by waiting for real
unit/container stop and adds failing CI for containers that are
killed with signal 9.

Closes-Bug: #2029613

Change-Id: I0a03e509ce228a50e081fcab44d2b4831251190c
2023-08-17 14:57:39 +00:00
Zuul
01a911b27d Merge "Fix an undefined variable bug for venus deployment" 2023-08-15 09:23:14 +00:00
Zuul
b64cd8bc3c Merge "CI: bump ansible version in linter" 2023-08-11 15:02:36 +00:00
Zuul
9b74433054 Merge "cephadm: log to file" 2023-08-11 10:59:00 +00:00
Michal Nasiadka
6e76ed2e40 CI: bump ansible version in linter
Change-Id: I2326225ddde2216cc94a0486366d5ef4782384d7
2023-08-11 09:36:57 +00:00
likui
8d98a89b64 update ansible version
Update the version of ansible because ansible-core was updated to 2.13-2.14

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/883525

Change-Id: If3223fe17f9e480a9782c2696ed945d24a8dae5e
2023-08-11 09:10:31 +08:00
Maksim Malchuk
e365f4b70d Deny access to public /server-status in http Openstack services
This change block access to the public /server-status url on all
http services exposed by HAProxy, also fixes an issue with Horizon
where 'Require all granted' open access to the /server-status in
the HAProxy-less configurations. Without this change the issue
affects only Ubuntu/Debian installations where mod_status in Apache2
enabled by default.

Closes-Bug: #1996913
Change-Id: I3ec1af6353c3ecc64589599abe375b0ae9b14d5c
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2023-08-10 10:28:10 +00:00
Zuul
0a0eb30bc9 Merge "ironic: add ironic_agent_files_directory parameter" 2023-08-09 16:34:41 +00:00
Zuul
b49694ff99 Merge "rabbitmq: add rabbitmq_datadir_volume parameter" 2023-08-09 16:22:01 +00:00
Zuul
7575f4a485 Merge "Enable nova libvirt driver skip_cpu_compare_on_dest workaround" 2023-08-08 09:07:20 +00:00
Michal Nasiadka
b3ef7a9943 CI: venus - replace elastic with opensearch in gate deps
Change-Id: I4c5ade2d687684f37df83b44a852d88c77067680
2023-08-07 09:51:32 +02:00
Zuul
1938f555e3 Merge "Correct glance.conf example in external Ceph guide" 2023-08-04 11:49:34 +00:00
Christian Berendt
58b5ca2783 ironic: add ironic_agent_files_directory parameter
With the parameter ironic_agent_files_directory it is possible to provide
the directory for the ironic-agent.kernel and ironic-agent.initramfs
files. By default the parameter is set to the value of node_custom_config.
This corresponds to the existing behaviour.

Change-Id: I53bb0eddc5380713a967356c85897d8df8ce505f
2023-08-02 14:14:47 +02:00
howardlee
7cb92baf05 Fix an undefined variable bug for venus deployment
The external_protocol variable does not exist, resulting in an error
during the venus deployment process. This commit will fix that.

Closes-Bug: #2029353

Change-Id: I2d983eecd8861689fdab7d60bdb9dd34ea0c159e
2023-08-02 18:15:01 +08:00
Zuul
e0b212d72d Merge "Fix L3 agent docs typo" 2023-08-02 09:48:56 +00:00
Zuul
4bfd9d85cd Merge "zun: Fix capsule functionality and tests" 2023-08-01 13:15:46 +00:00
Bartosz Bezak
bcf002509d Enable nova libvirt driver skip_cpu_compare_on_dest workaround
With the libvirt driver, during live migration,skip comparing guest CPU
with the destination host. When using QEMU >= 2.9 and libvirt >= 4.4.0,
libvirt will do the correct thing with respect to checking CPU
compatibility on the destination host during live migration.[1]

[1] 267a40663c

Change-Id: I947c94b59368c7a2740583bf57e407296473d75e
2023-08-01 10:44:24 +02:00
Michal Nasiadka
3431f124c8 cephadm: log to file
Currently we don't gather mon/mgr logs, which are essential for
debugging Ceph integration issues - this patch improves that.

Change-Id: I4ec34511b022707d0069d7a07f2f92b34acf0085
2023-07-28 14:58:48 +02:00
Jake Hutchinson
bb05f3b862 Fix L3 agent docs typo
Change-Id: I149bc646d2e5fb1e32be9c94c6a8d75fd92893e1
2023-07-28 10:46:59 +01:00
Paul Arthur
acf9375edc Fix loop label syntax error with ansible-core 2.15
Labels are supposed to be strings, but prior to
https://github.com/ansible/ansible/pull/80040 Ansible
did not enforce this.

Change-Id: Iefad160be12f1b5e689a74a82714857fa867d69a
Signed-off-by: Paul Arthur <paul.arthur@flowerysong.com>
2023-07-27 18:05:47 +00:00
Zuul
af2ccd1572 Merge "Trivial: Add deploy-containers for skyline" 2023-07-27 10:37:17 +00:00
Zuul
7dbe8184de Merge "haproxy: support single external frontend" 2023-07-25 10:11:17 +00:00
Doug Szumski
bacd6c7f4f Fix OpenSearch Dashboards health check
The OpenSearch Dashboards container does not have a health
check defined when created. This causes the container to always
restart when reconfigured, even if no change has been made.

Change-Id: I0b437a77aeb61bc5ae9238f900a1fa00cbc34e18
Partial-Bug: #2028362
2023-07-21 16:54:34 +01:00
Matt Crees
618d056369 Correct glance.conf example in external Ceph guide
Under the Glance section of the external Ceph guide, to enable
copy-on-write the config heading should be ``[DEFAULT]``, rather than
``[GLOBAL]``. For reference, see the Glance docs:
https://docs.openstack.org/glance/latest/configuration/glance_api.html#DEFAULT.show_image_direct_url

Closes-Bug: #2017643
Change-Id: I2d77e01637ecae0bd10319eac4bc75340dd6f61f
2023-07-17 22:14:36 +02:00
Michal Arbet
6baa18a666 Trivial: Add deploy-containers for skyline
Change-Id: I7ea236f59a7ede1f5a9ab4c60e7e5aba907ea5b8
2023-07-17 21:25:44 +02:00
Michal Nasiadka
778523816b zun: Fix capsule functionality and tests
Change-Id: I7b998b34881084a68669dc9351ea1937c61534fa
2023-06-29 17:37:09 +02:00
Michal Nasiadka
49d891e85f CI: drop ceph jobs ulimit config for EL9
It's not needed anymore, since both Ceph and ansible-collection-kolla
are setting that by default.

Also fix test-core-openstack so it doesn't delete a server before
volume attachment test.

Change-Id: I20bd352479ee5562514084d0d11063e45e8b956a
2023-06-29 13:27:34 +00:00
Michal Nasiadka
4bc410c6ca haproxy: support single external frontend
Use case: exposing single external https frontend and
load balancing services using FQDNs.

Support different ports for internal and external endpoints.

Introduced kolla_url filter to normalize urls like:
- https://magnum.external:443/v1
- http://magnum.external:80/v1

Change-Id: I9fb03fe1cebce5c7198d523e015280c69f139cd0
Co-Authored-By: Jakub Darmach <jakub@stackhpc.com>
2023-06-29 01:44:00 +02:00
Michal Nasiadka
a0e614ee10 loadbalancer: Add option to not define track script
We've seen issues in CI when keepalived haproxy check script returns
an error and keepalived is switching to backup and then again to primary
on a single node environment.

Closes-Bug: #2025219

Change-Id: Iba62e76b3cf83f3ade6df81288d2d77129ffc725
2023-06-28 08:58:51 +00:00
Zuul
1e9f19aa6b Merge "Use friendly prometheus instance labels" 2023-06-22 17:01:47 +00:00
Zuul
0126e0900e Merge "Fix issue with octavia security group rules creation" 2023-06-22 15:42:32 +00:00
Zuul
3497cb6fb8 Merge "Fixing kolla_container_engine option" 2023-06-22 11:18:03 +00:00
Michal Arbet
f1bb97dd85 Fix issue with octavia security group rules creation
This patch fixing issue with octavia security group
rules creation when using IPv6 configuration for octavia
management network.

Closes-Bug: #2023502
Change-Id: I3f8fbb0632ec6ecdc9f3820ebbcf01480de59e1f
2023-06-21 11:19:51 +02:00
wu.chunyang
45ec9c020b Add python 3.10 to setup.cfg metadata
Add python 3.10 to setup.cfg
refer to: https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: Ic2915f1b57a75d1865f5c239111c0859f76073f2
2023-06-21 09:47:26 +08:00
Zuul
e637978e26 Merge "Set previous_release to stable/2023.1" 2023-06-20 15:53:42 +00:00
Bartosz Bezak
309793d425 Set previous_release to stable/2023.1
Change-Id: Idbbd02b966922d5857ed54bac57668f0cf22113c
2023-06-20 10:43:20 +02:00
Dawud
eef3ff3084 Use friendly prometheus instance labels
Replaces the instance label on prometheus metrics with the inventory
hostname as opposed to the ip address. The ip address is still used as
the target address which means that there is no issue of the hostname
being unresolvable. Can be optionally enabled or set to FQDNs by
changing the prometheus_instance_label variable as mentioned in the
release notes.

Co-Authored-By: Will Szumski <will@stackhpc.com>
Change-Id: I387c9d8f5c01baf6054381834ecf4e554d0fff35
2023-06-20 06:44:10 +00:00
Zuul
d5bfc5a05c Merge "Refactor MariaDB and RabbitMQ restart procedure" 2023-06-20 06:12:49 +00:00
Ivan Halomi
72f2945c10 Fixing kolla_container_engine option
Hardcoded docker value in commands is not supported anymore
and kolla_container_engine is used instead.

Change-Id: I25d9563c82842ac51d41467ff7b4144b306fdb12
Signed-off-by: Ivan Halomi <i.halomi@partner.samsung.com>
2023-06-19 13:27:20 +02:00
Maksim Malchuk
0104f3e334 Fix Bifrost: remove an extra curly bracket
Closes-Bug: #2024314
Change-Id: I608b84905fa69346a33a1cef10f159b3412cbfd7
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2023-06-18 23:13:52 +03:00
Mark Goddard
6c037790f2 Refactor MariaDB and RabbitMQ restart procedure
Ansible 2.14.3 introduced a change that broke the method used for
restarting MariaDB and RabbitMQ serially [1][2]. In
I57425680a4cdbf0daeb9b2cc35920f1b933aa4a8 we limited to 2.14.2 to work
around this. Ansible upstream claim this behaviour was unintentional,
and will not fix it.

This change moves to a different approach where we use separate plays
with a 'serial' keyword to execute the restart.

This change also removes the restriction on the maximum supported
version of 2.14.2 on ansible-core - any 2.14 release is now supported.

[1] 65366f663d
[2] https://github.com/ansible/ansible/issues/80848

Depends-On: https://review.opendev.org/c/openstack/kolla/+/884208

Change-Id: I5a12670d07077d24047aaff57ce8d33ccf7156ff
2023-06-17 21:02:49 +00:00
Zuul
a53052ede3 Merge "Add support for multiple ceph files" 2023-06-16 16:51:23 +00:00
Michal Arbet
fdf2385f14 Add support for multiple ceph files
This patch is adding a feature for an option to copy different
ceph configuration files and corresponding keyrings for cinder,
glance, manila, gnocchi and nova services.

This is especially useful when the deployment uses availability
zones as below example.

  - Individual compute can read/write to individual ceph
    cluster in same AZ.
  - Cinder can write to several ceph clusters in several AZs.
  - Glance can use multistore and upload images to
    several ceph clusters in several AZs at once.

Change-Id: Ie4d8ab5a3df748137835cae1c943b9180cd10eb1
2023-06-14 10:18:11 +02:00
Zuul
d690016418 Merge "Fix the Cyborg service" 2023-06-13 10:16:16 +00:00
Zuul
7f67352176 Merge "opensearch-dashboard: fix permissions" 2023-06-13 08:56:50 +00:00
Zuul
917d540af5 Merge "Clarifies misleading error on ceilometer role`s precheck task" 2023-06-13 06:01:03 +00:00
Mathias Fechner
5aaab8dc20 opensearch-dashboard: fix permissions
Fix permissions for opensearch-dashboard data directory.

Closes-bug: #2020152

Change-Id: Ie4cec7649d89df5b8bb306563da2c62ea0cdd2c0
Signed-off-by: Mathias Fechner <fechner@osism.tech>
2023-06-12 20:43:03 +02:00
Zuul
9e70532ccb Merge "Fix Venus containers start issue" 2023-06-12 14:00:18 +00:00
Zuul
02f97f2bc2 Merge "Fix passwords.yml permissions" 2023-06-12 08:37:48 +00:00
Maksim Malchuk
8c8dad0187 Fix Venus containers start issue
The venus containers failed to start with an error
(venus_api container):
/usr/local/bin/kolla_start: line 24: exec: venus-api: not found
because of [1] and also changes the encoding of the files form
dos to unix introduced in [2].

1. https://opendev.org/openstack/venus/src/branch/master/setup.cfg#L29-L30
2. If3562bbed6181002b76831bab54f863041c5a885

Change-Id: I8bee27882c15e39a3d2946787d56bc90db994887
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2023-06-07 21:56:16 +03:00