2501 Commits

Author SHA1 Message Date
Michal Nasiadka
0ce066ca36 Bump up manage-lvm role version to v0.2.6
This fixes a bug that caused the role to fail on NVMe only hosts.

Change-Id: I697e83fbc6b1bd044b0e7e42e7c3c6c7468ccfb2
2022-02-09 06:32:46 +00:00
Mark Goddard
b57b94bbad CI: test ironic UEFI boot mode in overcloud TLS jobs
Set the Ironic boot mode to legacy BIOS explicitly in Tenks config in
anticipation of an upcoming change to the default boot mode.

Override the boot mode to UEFI in the overcloud TLS job to improve
coverage. This requires enabling iPXE booting.

Depends-On: https://review.opendev.org/c/openstack/tenks/+/827479/

Change-Id: Id1b4e9775c834b8b97e086241ee8b247977225a2
2022-02-08 11:16:03 +00:00
Zuul
07094b8ccd Merge "Drop kolla-host.yml playbook" 2022-02-04 18:51:28 +00:00
Mark Goddard
7173a9f731 ntp: Fix service mask when service doesn't exist
The ntp role attempts to mask NTP services that may conflict with
chrony. Currently we are seeing the following failure:

    TASK ntp : Mask alternative NTP clients to prevent conflicts
    Could not find the requested service systemd-timesyncd.service: host

The service_facts module shows that the service is not found:

    "systemd-timesyncd.service": {
        "name": "systemd-timesyncd.service",
        "source": "systemd",
        "state": "stopped",
        "status": "not-found"
    },

According to the Internet, this can happen if there are After/Before
dependencies in one service on another that does not exist.

This change fixes the handling of these not-found services to avoid the
error.

Story: 2009821
Task: 44401

Depends-On: https://review.opendev.org/c/openstack/kayobe/+/827404

Change-Id: I4b8a42704f2b0a145ee9dec433d91df67628cd9d
2022-02-02 16:46:03 +00:00
Will Szumski
156ae2bb8b Set requirements branch for IPA build
Currently we use the HEAD reference for OpenStack requirements. This can
create images that are incompatible with your version of OpenStack.

See:
https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/688911

Change-Id: I42026fafb1be0071f5ec94e81881c4a3bdd34af8
Story: 2009810
Task: 44371
2022-02-01 11:39:28 +01:00
Zuul
d6e8365867 Merge "Support for untemplated dirs in kolla config" 2022-01-28 13:01:33 +00:00
Zuul
36e9332674 Merge "Set correct gateway for the bifrost provision network" 2022-01-28 13:01:30 +00:00
Mark Goddard
fb5649bd2f Bump up Ansible supported versions
This change bumps up the maximum supported Ansible version to 5.x
(ansible-core 2.12.x) and minimum to 4.x. This synchronises Kayobe with
Kolla Ansible (see change Ia373f9cc3bb69eba0288bbb3e497e8cadb7cc4d3).

ansible 5 / ansible-core 2.12 raises the minimum version of Python to
3.8, so CentOS Stream 8 environments will typically get ansible 4 /
ansible-core 2.11.

Change-Id: If4477e7fa4c022ead6cda4a34a72b342f115936f
2022-01-28 10:44:32 +00:00
Jakub Darmach
35e0d76a96 Support for untemplated dirs in kolla config
Variable untemplated_dirs has been added to allow for
defining directories under kayobe/kolla/config which should be copied
instead of templated by kolla-openstack role.

This is needed to support custom themes for horizon -
change If9982c8e18be31772cb031ef72b7eebd4d768be5

Change-Id: I350f58c8a82f0f31608b34054e804c5c198d6806
2022-01-27 19:46:45 +00:00
Zuul
abb2edd8a0 Merge "Remove chrony cleanup from overcloud host configure" 2022-01-18 23:11:40 +00:00
Mark Goddard
b273af0e89 Drop kolla-host.yml playbook
This playbook is no longer necessary following the removal of the iSCSI
deploy driver from Ironic.

Change-Id: I9e99c04173acb7adb0d0e367b6db388b86baf5f2
2022-01-18 17:03:28 +00:00
Mark Goddard
b73e8250a0 Remove chrony cleanup from overcloud host configure
The chrony container removal was performed in the Xena cycle, so we no
longer require this in the 'overcloud host configure' command.

Change-Id: Ic6909bba42b07a5f3528e7507cb3b25199a72b43
2022-01-11 14:27:09 +00:00
LiZekun
2f1aed03d2 Update python testing classifier
Change-Id: I02eca49fed19686551990fc125a7025d54c5d6e3
2022-01-11 22:03:31 +08:00
LiZekun
13dbe7435f remove unicode from code
Change-Id: If002d845347b2e215d36df3ff73b743745e46131
2022-01-11 21:51:28 +08:00
Pierre Riteau
0eac03235c Update documentation about CentOS support
Change-Id: I0747cc8fa6fdbfa980b1263da3b3edddb725d2db
2022-01-11 11:51:37 +01:00
Stig Telfer
561ee09c03 Fix Sphinx syntax typo
A double colon (where only a single colon is wanted) was fouling up
parsing.

Change-Id: Ifaf28e85189bf438e373f165a9b3c2af1b47e834
2022-01-09 16:36:33 +00:00
Pierre Riteau
c4a116e912 Support elements repositories for overcloud host images
Change-Id: Ia8c927c330b9428a3824a6925f6274cbc54314a0
Story: 2002098
Task: 44165
2022-01-07 16:37:29 +01:00
Zuul
3ad7870944 Merge "Fix 'ModuleNotFoundError: No module named 'docker'" 2022-01-07 12:49:51 +00:00
Zuul
74d50525e6 Merge "Allow enable SNAT service on the seed hypervisor" 2022-01-07 12:45:44 +00:00
Zuul
f8ec18fe43 Merge "dnf: Add support for state parameter in custom repos" 2022-01-07 12:35:50 +00:00
Pierre Riteau
81758d14c3 Support building multiple disk images
Change-Id: I366fbe98d27fa70b1aeb398c129f626fe042b5df
Story: 2002098
Task: 19776
2022-01-07 12:25:18 +01:00
Zuul
6828184ab1 Merge "Fix seed VM configdrive when admin network is a VLAN" 2022-01-07 01:54:54 +00:00
Zuul
30efba2b0a Merge "Generate kolla config when running database commands" 2022-01-06 17:02:12 +00:00
Zuul
616ed9d44b Merge "Adds support for custom Placement configuration." 2022-01-06 16:15:27 +00:00
Zuul
3983e9525a Merge "[CI] Drop unused nodeset" 2022-01-06 13:47:25 +00:00
Pierre Riteau
3c8ce468a8 dnf: support exclude and includepkgs arguments
Change-Id: I58f7259a956b721052d9adfc935b669ff201b299
2022-01-05 18:06:03 +01:00
Will Szumski
73cb007ab9 Do not fail when admin openrc file does not exist
Change-Id: If89bb28fa2e8cc615da21893201cc438d5b6ff05
Story: 2009323
Task: 43745
2022-01-05 09:53:19 +01:00
Zuul
4028a56fac Merge "Add support for configuring proxy settings" 2022-01-04 17:22:48 +00:00
Kayobe deployment user
4321471a13 Generate kolla config when running database commands
Change-Id: Ief9adfcff28d269fc80a073cdde536e8e803ca37
Story: 2009648
Task: 43807
2022-01-04 15:58:14 +00:00
Zuul
9e4ce6c76b Merge "ipa: Use openstack_branch instead of master" 2022-01-04 10:36:19 +00:00
Zuul
2b24853862 Merge "Build neutron-sriov-agent image when enabled" 2022-01-03 13:56:16 +00:00
Zuul
fddbd7cc72 Merge "Use net_mask filter instead of ansible's ipaddr" 2022-01-03 12:00:41 +00:00
Radosław Piliszek
fa5514c0d7 [CI] Drop unused nodeset
It is required for infra cleanup.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-December/026408.html

Change-Id: I4ab7b637baee8fa2c40aae510dcefb3fa84eecd3
2022-01-03 11:26:00 +00:00
Zuul
16bfc27c46 Merge "Deploy Grafana when Monasca is enabled" 2021-12-30 13:40:20 +00:00
Mark Goddard
e0dec91689 Disable EPEL by default
EPEL is no longer required for a default installation. Let's disable it.

Also clean up the install_epel variable from Kolla Ansible globals.yml
template, since it never existed.

Story: 2009757
Task: 44227

Change-Id: I96eb4685f997e85ad2ee5318640d58d0287a016d
2021-12-23 13:04:12 +00:00
Michal Nasiadka
b62a9aaefc ipa: Use openstack_branch instead of master
ironic-python-agent-builder has stable branches since Wallaby -
let's use them.

Also as per ipab docs [1] - the env vars for overriding ipa repo
are:
- DIB_REPOREF_ironic_python_agent
- DIB_REPOLOCATION_ironic_python_agent

[1]: https://docs.openstack.org/ironic-python-agent-builder/latest/admin/dib.html#building

Story: 2009755
Task: 44224

Change-Id: I025532156de831a0e7d025d61601a38202de10ff
2021-12-22 18:16:49 +00:00
Mark Goddard
9d11a21928 dnf: Add support for state parameter in custom repos
This allows us to remove repo files if necessary.

Change-Id: I113ed858fb87d3ace093a92bf52bb772f5142219
2021-12-22 17:50:23 +00:00
Zuul
719968f694 Merge "docs: Improve all-in-one scenario" 2021-12-21 16:37:56 +00:00
Maksim Malchuk
bf318310e6 Fix 'ModuleNotFoundError: No module named 'docker'
In some cases, for example with custom inventory, we still have an
ordering issue and shouldn't rely only on 'docker.service' check.
We should use 'docker rm' shell command prior 'Docker SDK for Python'
is installed.

Change-Id: I90223a36ff3fc71585cb9302573154a5921041ff
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-12-20 14:03:13 +00:00
Zuul
327ece3fe1 Merge "Document seed_enable_snat" 2021-12-20 12:52:47 +00:00
Maksim Malchuk
e87fbf37a8 Adds support for custom Placement configuration.
Change-Id: Icb02cffe04d84c6d29f3f0c3b4af540a4ffe631d
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-12-19 17:37:27 +03:00
Zuul
60a924125c Merge "Add overcloud_dib_upper_constraints_file variable" 2021-12-16 20:31:59 +00:00
Pierre Riteau
336d6382a6 Remove deprecated kolla_tls_cert variable
Change-Id: If1671ac19dac4c36dd3a47bf2b8e2ae8dea5abdd
2021-12-13 17:31:22 +01:00
Maksim Malchuk
e10b52c588 Allow enable SNAT service on the seed hypervisor
Adds an ability to enable SNAT service on the seed hypervisor.

Depends-On: Ie42ab7a0dc9dd1ed1925b3a17134b3770ae8ba98
Change-Id: I0a2ff5caa01d54b1532d30d501b55ef23a6deff8
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-12-10 07:47:30 +03:00
Piotr Parczewski
b5f0a17acf CI: Use correct TD agent repository version
Change-Id: Ic8c212111301d6b144e3aa0fe124b022b0296ec6
2021-12-07 14:35:18 +01:00
Pierre Riteau
f88f49ec67 Document seed_enable_snat
Change-Id: Ie42ab7a0dc9dd1ed1925b3a17134b3770ae8ba98
2021-12-07 07:02:14 +01:00
Zuul
56a01a4178 Merge "Add dependencies for EFI and LVM based overcloud images" 2021-12-06 23:50:15 +00:00
Pierre Riteau
e438189a19 Fix installation prefix detection
When multiple 'lib' components are present in the installation path,
Kayobe fails to detect the right installation prefix which causes
various commands to raise an error.

Rewrite logic to detect the last 'lib' component in path instead. This
should work as long as this function is not stored under a lib directory
inside the Kayobe source tree.

Change-Id: Ie9b15db6563546ede9ce9735292ec566d540432a
Story: 2009721
Task: 44109
2021-12-02 22:41:53 +01:00
Pierre Riteau
ad3f6f10a2 Add overcloud_dib_upper_constraints_file variable
This variable allows to customise the upper constraints file used to
install packages inside the overcloud-host-image-dib virtual
environment. This can be used when we need a newer version of
diskimage-builder than the one available in upper constraints for the
current release.

Change-Id: I2f6c2f92903815973865ef0f5d6b867d5b995bd5
Story: 2002098
Task: 44101
2021-12-01 06:27:55 +01:00
Piotr Parczewski
774d01c1ef Add dependencies for EFI and LVM based overcloud images
Change-Id: I2c2378ebd99ac02586518e80e4b86a9d765476e6
2021-11-30 15:40:52 +01:00