12372 Commits

Author SHA1 Message Date
Maksim Malchuk
6409d62650 Fix usage of Subject Alternative Name for TLS
All TLS certificates are incorrectly generated in the 'certificates'
role. The generated certificates don't contain both the 'X509v3
extensions' and 'X509v3 Subject Alternative Name' blocks at all.

This change fixes the 'openssl x509' commands used to generate all the
certificates to include the 'Subject Alternative Name'.

Also, this change fixes both internal and external templates to
constantly use alternative names as described in the RFCs [1] [2].
We use DNS Name in SAN extension only when 'kolla_internal_fqdn' or
'kolla_external_fqdn' is set.

1. https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.6
2. https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2

Closes-Bug: #1935978
Change-Id: Ie5d82a2e4575bd74674ac38a042df49cfe7f74c9
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-08-24 15:33:22 +03: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
Zuul
8f6ab211af Merge "[CI] Fix Debian upgrade" 2021-08-21 11:26:46 +00: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
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
Zuul
ea008fd7fe Merge "Validate if running CentOS OS is CentOS Stream" 2021-08-16 10:25:16 +00:00
Radosław Piliszek
b6d9cf7685 [CI] Fix Debian upgrade
Debian upgrades failed on using the ansible command to remove
chrony service because of broken python autodetection.
This patch uses the same workaround we have in globals-default.j2.
This is not nice long-term but there is no reason to keep the two
out of sync. We should remove this workaround from both places
when the situation fixes itself (possibly with newer Ansible).

Change-Id: I8b7f0c76d55cd31311285ce746acb6335e044470
2021-08-12 19:11:53 +00:00
Michał Nasiadka
d56dc34034 Validate if running CentOS OS is CentOS Stream
Change-Id: I2fe738249018e25e79fd726bc931be6b7bd91934
2021-08-12 12:45:45 +00:00
Michal Arbet
85879afc0b Trivial fix nova's healthchecks
Kolla-ansible upgrade task is calling different
handlers as deploy task and these handlers are
missing healthcheck key. This patch is fixing
this.

Closes-Bug: #1939679
Change-Id: Id83d20bfd89c27ccf70a3a79938f428cdb5d40fc
2021-08-12 13:39:50 +02:00
Zuul
61f2bd86b0 Merge "fluentd: Fix check for external elasticsearch" 2021-08-11 14:32:59 +00:00
Zuul
e017e40968 Merge "Remove deprecated Designate option" 2021-08-11 13:09:06 +00:00
Zuul
6dff0305c0 Merge "Remove redundant Monasca Kafka client option" 2021-08-11 11:40:12 +00:00
Zuul
6d371d47ca Merge "Support multiple inventories" 2021-08-11 11:24:20 +00:00
Zuul
3be572f67f Merge "ironic: Follow up for ironic_enable_keystone_integration" 2021-08-11 09:50:58 +00:00
Zuul
578ca1d647 Merge "Add suppress_type_name to stop warnings with ES7" 2021-08-10 16:26:11 +00:00
Zuul
9cd7ed8074 Merge "Refactor and optimise image pulling" 2021-08-10 14:59:45 +00:00
Radosław Piliszek
9ff2ecb031 Refactor and optimise image pulling
We get a nice optimisation by using a filtered loop instead
of task skipping per service with 'when'.

Partially-Implements: blueprint performance-improvements
Change-Id: I8f68100870ab90cb2d6b68a66a4c97df9ea4ff52
2021-08-10 11:57:54 +00:00
Zuul
c0540760e0 Merge "monasca-thresh: Fix topology submission to storm" 2021-08-10 10:59:17 +00:00
Mark Goddard
46df30d871 ironic: Follow up for ironic_enable_keystone_integration
Follow up for I0c7e9a28876a1d4278fb2ed8555c2b08472864b9 which added a
ironic_enable_keystone_integration variable to support Ironic in
multi-region environments. This change skips Keystone service
registration based on ironic_enable_keystone_integration rather than
enable_keystone. It also updates the ironic-inspector.conf template to
use the new variable.

Change-Id: I2ecba4999e194766258ac5beed62877d43829313
2021-08-10 09:36:25 +01:00
Zuul
63be501318 Merge "baremetal: use docker_yum_gpgkey to fetch docker GPG key" 2021-08-09 15:36:49 +00:00
Zuul
a81c6dabdc Merge "neutron: fix neutron-server config.json with VMware" 2021-08-09 11:09:23 +00:00
Zuul
214d34ca7b Merge "Extra var ironic_enable_keystone_integration added." 2021-08-09 10:53:20 +00:00
Zuul
c1e14025ad Merge "Remove unused imports in merge_yaml" 2021-08-09 10:52:27 +00:00
Zuul
01a4868ba6 Merge "Fix release note for ansible_facts" 2021-08-09 10:26:01 +00:00
Mark Goddard
a08aaf7d8e Fix release note for ansible_facts
Change-Id: I0103d7ef55e6aebe043a582d36f1a2efa137f447
2021-08-09 08:48:21 +00:00
Mark Goddard
2c786a0faf neutron: fix neutron-server config.json with VMware
Missing comma in config.json template rendered invalid JSON with VMware
plugin agent.

Closes-Bug: #1939080

Change-Id: I3d0c6421e3da7e1e753b99cf87c32fc238a21523
2021-08-09 09:29:51 +01:00
Victor Morales
d15d94300f Remove unused imports in merge_yaml
Dumper and Loader are classes seem to be loaded but not used in the merge_yaml
file. This change removes them for reducing the number of lines.

Change-Id: I87ef305903ab02226fcaa725ece622647d17811c
2021-08-06 14:45:45 -07:00
Zuul
a63b4ef85a Merge "Elevated privileges required to set owner/group/mode by ansible" 2021-08-06 15:12:52 +00:00
Ilya Popov
da4fd2d6a2 Extra var ironic_enable_keystone_integration added.
Basically, there are three main installation scenario:

Scenario 1:
Ironic installation together with other openstack services
including keystone. In this case variable enable_keystone
is set to true and keystone service will be installed
together with ironic installation. It is possible realise this
scenario, no fix needed

Scenario 2:
Ironic installation with connection to already installed
keystone. In this scenario we have to set enable_keystone
to “No” to prevent from new keystone service installation
during the ironic installation process. But in other hand,
we need to have correct sections in ironic.conf to provide
all information needed to connect to existing keystone.
But all sections for keystone are added to ironic.conf only
if enable_keystone var is set to “Yes”. It isn’t possible
to realise this scenario. Proposed fix provide support for
this scenario, where multiple regions share the same
keystone service.

Scenario 3:
No keystone integration. Ironic don't connect to Keystone.
It is possible realise this scenario, no fix needed

Proposed solution also keep the default behaviour: if no
enable_keystone_integration is manually defined by default
it takes value of enable_keystone variable and all behaviour
is the same. But if we don't want to install keystone and
want to connect to existing one at the same time, it will be
possible to set enable_keystone var to “No”
(preventing keystone from installation) and at the same
time set ironic_enable_keystone_integration to Yes to allow
needed section appear in ironic.conf through templating.

Change-Id: I0c7e9a28876a1d4278fb2ed8555c2b08472864b9
2021-08-06 17:58:48 +03:00
Zuul
1a4a8c1615 Merge "Reduce container metrics cardinality" 2021-08-06 14:47:38 +00:00
Zuul
be129d3100 Merge "Fix config action when OVN is enabled" 2021-08-06 14:25:55 +00:00
Zuul
3f67a96510 Merge "Blazar: Fix support for external keystone in multiregion deploy" 2021-08-06 14:12:21 +00:00
Zuul
bb05cf1150 Merge "Remove support for Prometheus v1" 2021-08-06 14:12:18 +00:00
Zuul
bb1522e380 Merge "[manila] Drop tenant_id templating from v2 endpoint" 2021-08-06 14:12:15 +00:00
Zuul
295c69b5ee Merge "Remove tempest role" 2021-08-06 14:04:55 +00:00
Zuul
caf763f7c3 Merge "Use Docker healthchecks for kuryr services" 2021-08-06 14:04:53 +00:00
Zuul
762e840a50 Merge "Use Docker healthchecks for zun services" 2021-08-06 14:04:51 +00:00
Zuul
c6f7feec48 Merge "Use Docker healthchecks for ceilometer services" 2021-08-06 13:58:58 +00:00
Zuul
ea52dd9748 Merge "nova: Use cinder user for Ceph" 2021-08-06 13:58:56 +00:00
Piotr Parczewski
30e0eae8b2 Remove deprecated Designate option
Change-Id: Ib9ea83dd0019a4c4703e673a783c45ab07afe4e7
2021-08-06 15:31:07 +02:00
Alexander Evseev
7f98238b64 Elevated privileges required to set owner/group/mode by ansible
Elevated (root) privileges are required to set owner/group/mode when
target owner does not math the user running Ansible. Without it the
playbook fails with 'Permission denied' error.

Change-Id: Ie7455a5f1ed709dfb9c9d7c653c6f808c00af4c2
2021-08-06 12:39:32 +00:00
Zuul
851f2c799c Merge "Check config when checking the containers" 2021-08-05 21:00:59 +00:00
Piotr Parczewski
0d79d25fe9 Remove support for Prometheus v1
Change-Id: I0d7c7f47e6653cf2903589a9c86798a8c6404af5
2021-08-05 21:07:22 +02:00
Zuul
01c62fa1b6 Merge "Fix nova deployment failure when rabbitmq is disabled" 2021-08-04 13:12:14 +00:00
Zuul
d5b7af30e8 Merge "Fix deployment failure when kolla_dev_mod is enabled" 2021-08-04 13:00:58 +00:00