12580 Commits

Author SHA1 Message Date
Pierre Riteau
72e0673989 Fix neutron upgrade using host limit without controllers
When running kolla-ansible upgrade with a host limit that does not
include controllers, the neutron upgrade fails.

Change-Id: I7125a6ef1f180db6997026ff27e84feb04ee239d
Closes-Bug: #1939691
2021-09-10 22:22:40 +02:00
Radosław Piliszek
c7bec2f30a [CI] Fix upgrade with kolla-build
Continuing fixing CI after [1], this patch fixes the other branch
that [2] has not previously included.

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/805449
[2] 02e07a0860e8ca8bc1d6d7716e44bd2888591ecd

Change-Id: I44014a93b92b5a8782e34cf394881dec74cdeea1
2021-09-10 12:56:58 +00:00
Michał Nasiadka
02e07a0860 CI: Temporarily enable insecure registry
As a result of https://review.opendev.org/c/openstack/kolla-ansible/+/805449
CI is failing, because we don't have a TLS certificate on our registry.

This workaround will get our CI to be green while a proper patch
(TLS certs for registry) can be worked out.

Change-Id: Ia45c8a764a1f87d1c44717c4da3b9a3f94cdc967
2021-09-10 07:31:33 +02:00
Zuul
a1a22b3a89 Merge "toolbox: Allow different users logging to ansible.log" 2021-09-09 15:55:27 +00:00
Zuul
2bd945b0f6 Merge "Add a ovsdb_timeout variable for better configuration" 2021-09-09 11:01:11 +00:00
Zuul
f27c409eea Merge "Bump libvirtd memlock ulimit" 2021-09-09 10:58:27 +00:00
Zuul
f99bf8325f Merge "Never make Docker registry insecure by default" 2021-09-09 10:49:03 +00:00
Zuul
3b13a87288 Merge "[CI] Test instance health after upgrade" 2021-09-09 10:46:03 +00:00
Zuul
44c7b166cf Merge "Use Docker healthchecks for mistral services" 2021-09-08 16:07:51 +00:00
Hongbin Lu
21b4dc5416 Zun: Temporarily skip capsule test for ubuntu
Related-Bug: #1941982
Change-Id: I0e03db1177931ee6d17b21f614573575c3493eef
2021-09-07 21:09:55 +08:00
Michał Nasiadka
24e6a6ced0 toolbox: Allow different users logging to ansible.log
Currently only operations done with default kolla_toolbox user are logged
to /var/log/kolla/ansible.log.

In order to fix logging, permissions to ansible.log must allow writing
for other users in kolla group - and then a separate patch will follow
to make custom ansible.cfg file usable by other toolbox users.

Partial-Bug: #1942846
Change-Id: I1be60ac7647b1a838e97f05f15ba5f0e39e8ae3c
2021-09-07 14:12:11 +02:00
Zuul
c48469d2ac Merge "Allow override of rabbitmq config in kolla toolbox" 2021-09-07 10:34:54 +00:00
Zuul
39931aedb4 Merge "Fix kolla-toolbox with IPv6 and disabled RabbitMQ" 2021-09-07 10:34:52 +00:00
Radosław Piliszek
11d7233ccc Bump libvirtd memlock ulimit
This is required for libvirtd with cgroupsv2 (Debian Bullseye and
soon others).
Otherwise, device attachments simply fail.
The warning message suggests filtering will be disabled but it
actually just fails the action entirely.

Change-Id: Id1fbd49a31a6e6e51b667f646278b93897c05b21
Closes-Bug: #1941940
2021-09-03 15:37:13 +00:00
Zuul
b16e676be7 Merge "reno: follow up" 2021-09-03 08:34:31 +00:00
Zuul
0e9a6fe773 Merge "Rename role haproxy to loadbalancer" 2021-09-02 16:18:58 +00:00
Piotr Parczewski
d9e0ca5b3f reno: follow up
corrected nits from:
https://review.opendev.org/c/openstack/kolla-ansible/+/800068
https://review.opendev.org/c/openstack/kolla-ansible/+/803644

Change-Id: Ia30afd795067a36b132a8c75c72dd7c65d624a83
2021-09-02 14:59:26 +02:00
Radosław Piliszek
24e48d4dae [tox] Add docs-iterative command
This is useful for iterative work with docs as it avoids trashing
results from previous builds and thus saves time.

Change-Id: Ic4f710725cbc2d85c28ca4e00c3a32a00a72c2da
2021-08-31 18:32:40 +00:00
Radosław Piliszek
4e473a7848 [tox] Optimise docs actions
Streamline all actions to behave the same (start with clean
env).

Additionally:

- doc envs do not require k-a to be (re)installed (skip_install)

- this change turns on nitpicky mode to catch reference issues
  early

Change-Id: I8ae8a1ca5f6f77ea498573e343889611559b5c97
2021-08-31 18:23:44 +00:00
Radosław Piliszek
daf534b4e0 [CI] Test instance health after upgrade
Just like I added Cinder volume upgrade testing before, let's
also test similarly for Nova and Neutron. :-)

More robust debugging and refactor included.

Related-Bug: #1941706
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/806476
Change-Id: Id79df44254603f9b37ce7da2bfc796fc0b1ac91f
2021-08-30 09:53:45 +00:00
Radosław Piliszek
34c49b9dbe Restore libvirtd cgroupfs mount
It was removed in [1] as part of cgroupsv2 cleanup.
However, the testing did not catch the fact that the legacy
cgroups behaviour was actually still breaking despite latest
Docker and setting to use host's cgroups namespace.

[1] 286a03bad20955aa4d3f7009cef5856d328b76f1

Closes-Bug: #1941706
Change-Id: I629bb9e70a3fd6bd1e26b2ca22ffcff5e9e8c731
2021-08-30 09:33:31 +00:00
Zuul
d04eb75a2a Merge "CI: Don't generate certificates before upgrade" 2021-08-28 14:41:41 +00:00
Zuul
7f5be46c35 Merge "CI: Reduce neutron RPC service workers to 1" 2021-08-27 19:28:15 +00:00
Zuul
415cb6d048 Merge "Replace auth_uri with www_authenticate_uri" 2021-08-27 12:47:41 +00:00
Zuul
83c5d95b47 Merge "Support monitoring Fluentd with Prometheus" 2021-08-27 09:34:12 +00:00
Zuul
81a320482a Merge "[CI] Test Swift upgrades" 2021-08-27 09:31:11 +00:00
Zuul
d104846204 Merge "Use Docker healthchecks for nova-spicehtml5proxy service" 2021-08-27 09:04:51 +00:00
Zuul
26c480ca6f Merge "Use Docker healthchecks for memcached services" 2021-08-27 09:02:17 +00:00
Zuul
e78f4330dd Merge "Use Docker healthchecks for keystone-fernet container" 2021-08-27 09:02:15 +00:00
Zuul
6362dfa942 Merge "Fix Masakari in multi-region deploys" 2021-08-27 08:55:06 +00:00
Zuul
ad093c01ee Merge "Use api-paste.ini from /etc/neutron" 2021-08-27 08:55:04 +00:00
Mark Goddard
d8641e90c3 docs: Add placeholder page for CI & testing information
Change-Id: Iebcac0827c6f715c6b804223cdcf2cc2e425120b
2021-08-25 17:25:30 +01:00
Mark Goddard
d9a3758952 Add kolla-ansible gather-facts command
In some situations it may be helpful to populate the fact cache on
demand. The 'kolla-ansible gather-facts' command may be used to do this.

One specific case where this may be helpful is when running kolla-ansible
with a --limit argument, since in that case hosts that match the limit
will gather facts for hosts that fall outside the limit. In the extreme
case of a limit that matches only one host, it will serially gather
facts for all other hosts. To avoid this issue, run 'kolla-ansible
gather-facts' without a limit to populate the fact cache in parallel
before running the required command with a limit.

Change-Id: I79db9bca23aa1bd45bafa7e7500a90de5a684593
2021-08-25 16:45:39 +01:00
Zuul
0f1c1981bb Merge "Remove an unused file" 2021-08-24 10:17:47 +00:00
Zuul
1a538cce0e Merge "Add ability to retry image pulling" 2021-08-23 13:22:31 +00:00
Marc 'risson' Schmitt
ca6fc69ee8
docs: adding and removing host: add --all-projects option
When running without that option, the list of servers might be empty,
resulting in leftover instances on the host that is about to be
migrated.

Change-Id: I85915f0f86655f3a1eb5f54911d24e4e0e75f340
2021-08-22 11:34:40 +02:00
Zuul
8f6ab211af Merge "[CI] Fix Debian upgrade" 2021-08-21 11:26:46 +00:00
Radosław Piliszek
3c68e82585 Fix Masakari in multi-region deploys
to behave like it is most commonly expected - query Nova in the
same region.

Closes-Bug: #1939291
Change-Id: I584a83d352c747a799b5dab1d3b8159ba3805454
2021-08-20 18:53:46 +00:00
Radosław Piliszek
802f7c6218 Never make Docker registry insecure by default
To follow best security practices and help fellow operators.

More details inline and in the linked bug report.

Closes-Bug: #1940547
Change-Id: Ide9e9009a6e272f20a43319f27d257efdf315f68
2021-08-20 18:23:56 +00:00
Michal Arbet
4900bbf5a5 Use Docker healthchecks for neutron-bgp-dragent service
This change enables the use of Docker healthchecks for
neutron-bgp-dragent service.

Change-Id: I8c7e69b04d87acd1742c33269cde5b88ce75e619
2021-08-20 15:04:57 +02:00
Michal Arbet
ffd53512af Rename role haproxy to loadbalancer
For now role haproxy is maintaining haproxy
and keepalived. In follow-up changes there is also
proxysql added.

This patch is *only* renaming/moving stuff to more
prominent role loadbalancer, and moving also specific
templates to subdirectory.

This was done only to better diff in follow-up
changes.

Change-Id: I1d39d5bcaefc4016983bf267a2736b742cc3a555
2021-08-19 21:20:33 +02:00
Radosław Piliszek
cbb567cb86 Add ability to retry image pulling
Sometimes, the registries may intermittently fail to deliver the
images. This is often seen in the CI, though it also happens with
production deployments, even those with internal registries and/or
registry mirrors - due to sheer load when trying to pull the
images from many hosts.

This patchs adds two new vars to control retry behaviour.
The default has been set to make users happier by default. :-)

Change-Id: I81ad7d8642654f8474f11084c6934aab40243d35
2021-08-19 18:38:59 +00:00
Zuul
a98076f11c Merge "Use more RMQ flags for less busy wait" 2021-08-19 18:20:13 +00:00
Radosław Piliszek
16a4a9e5ac Remove an unused file
It seems to have been mistakenly introduced by
de00bf491dfbabc8e11009fce4410bce5c2110ed
"Simplify handler conditionals"

Change-Id: I65b6e322fa11a870f32099bbfd62150cbea4feb5
2021-08-19 13:23:44 +00:00
Zuul
98479f5e28 Merge "tools: use /usr/bin/env bash instead of /bin/bash" 2021-08-19 09:22:42 +00:00
Marc 'risson' Schmitt
0858d5487e
Fix haproxy precheck when kolla_externally_managed_cert is used
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Closes-Bug: #1940286
Change-Id: I647f8615e9fd0cc0db7c737ce4afbd1bdd0d40d4
2021-08-18 16:07:09 +02:00
Michal Arbet
90fd9152a4 Use Docker healthchecks for keystone-fernet container
This change enables the use of Docker healthchecks for
keystone-fernet container. It checks if "key 0" has
right permissions, and if rsync is able to distribute
keys to other keystones.

Implements: blueprint container-health-check
Change-Id: I17bea723d4109e869cd05d211f6f8e4653f46e17
2021-08-17 15:07:01 +02:00
Marc 'risson' Schmitt
839ec629bf
tools: use /usr/bin/env bash instead of /bin/bash
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Change-Id: I374f7427a4318d00ca474367818117e11789ec13
2021-08-17 14:29:33 +02:00
Skylar Kelty
8d5dde3723
Update Manila deploy steps for Wallaby
Manila has changed from using subfolders to subvolumes.
We need a bit of a tidy up to prevent deploy errors.
This change also adds the ability to specify the ceph FS
Manila uses instead of relying on the default "first found".

Closes-Bug: #1938285
Closes-Bug: #1935784
Change-Id: I1d0d34919fbbe74a4022cd496bf84b8b764b5e0f
2021-08-17 10:01:58 +01:00
Zuul
ea008fd7fe Merge "Validate if running CentOS OS is CentOS Stream" 2021-08-16 10:25:16 +00:00