2143 Commits

Author SHA1 Message Date
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
Zuul
9f574402f3 Merge "Document that extra kernel parameters are important for inspection" 2021-11-29 15:42:19 +00:00
Zuul
1fccaec4b0 Merge "Document variables to configure connectivity check" 2021-11-29 11:02:03 +00:00
Zuul
efbb3082d7 Merge "Build overcloud host image directly with DIB" 2021-11-26 22:57:10 +00:00
Pierre Riteau
c35f112a14 Build overcloud host image directly with DIB
As a first step towards supporting multiple overcloud disk images, this
change introduces a new command to build a disk image directly with DIB:
`kayobe overcloud host image build`.

It also disables building a root disk image during Bifrost bootstrap if
overcloud_dib_build_host_images is set to true.

Change-Id: I93d242889e225b4e60254f6b9cc5eeb457294ac8
Story: 2002098
Task: 41693
2021-11-26 09:28:00 +01:00
Zuul
a9aa8c7f7c Merge "Add support for Ironic inspection through DHCP-relay" 2021-11-25 23:25:57 +00:00
Zuul
e61d8f24a6 Merge "[release] Set previous_release to xena" 2021-11-25 19:22:59 +00:00
Zuul
dbb2b06ee5 Merge "Revert "Use OpenStack Xena release"" 2021-11-25 19:19:59 +00:00
Zuul
02dccdab85 Merge "Uninstall ansible-base package only if exists" 2021-11-25 19:18:31 +00:00
Maksim Malchuk
8986173237 Limit ip-routing and snat to seed hosts only
Even if kayobe itself limit [1] ip-routing and snat playbooks to the
seed hosts only the playbooks should have same hosts specified.

TrivialFix

1. 52d7523c0c/kayobe/cli/commands.py (L610)

Change-Id: I35788e69eeace41d5bcbf89922145f1c35f58ff2
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-11-24 02:27:33 +03:00
Maksim Malchuk
1aacc0f9fb Uninstall ansible-base package only if exists
We have the list of package installed, so its nice to decide when we
can skip the task.

TrivialFix

Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
Change-Id: I4884cccf8a54f6c5af37f0ee418bb3821dc87091
2021-11-24 01:08:22 +03:00
Zuul
52d7523c0c Merge "CI: always return host configure test results" 2021-11-19 11:33:19 +00:00
Pierre Riteau
7ed91dd066 Document that extra kernel parameters are important for inspection
When customising kolla_bifrost_inspector_extra_kernel_options, for
example to define which console to use, operators should note that
Kayobe defines extra kernel parameters that are important for
inspection, such as ipa-collect-lldp=1.

Change-Id: Id789dede2d1886ef5ec66ebc86968d6cf62fa2de
2021-11-19 09:38:27 +01:00
Mark Goddard
5e9affb62c Infra VMs: fix some playbook host patterns
The infra-vms group was not added to some playbook host patterns where
it should have been. This change fixes that.

TrivialFix

Change-Id: I5df2918035df7577627fd2bd68417beddbcbf848
2021-11-15 20:54:19 +00:00
Zuul
e55fab9674 Merge "CI: add Infra VM jobs" 2021-11-11 22:20:57 +00:00
Mark Goddard
8df7b75c06 Ubuntu: add upgrade jobs to gate
Follow up to I69868dca6e1f3e4a1bf123c9e7f1f3412162b264

Change-Id: I7812c4b66bac30648c00054381703e390671a821
2021-11-10 09:19:17 +00:00
Mark Goddard
4bf7cdf1e3 [release] Set previous_release to xena
Also remove some Wallaby upgrade compatibility code in CI playbooks

Change-Id: I84e336bec37eac12c659c7a9d9fc4ddd191a379d
2021-11-09 17:31:53 +00:00
Mark Goddard
7f72fdbe55 Revert "Use OpenStack Xena release"
This reverts commit e0c42ea940717ae586e9d99258ef5bd829e4924c.

Xena has branched and is almost ready for release.

Change-Id: I9315110fa767ff62681486e436fca5503339cabf
2021-11-09 17:31:48 +00:00
Zuul
97a7dc6b22 Merge "Fix --check argument for overcloud host configure" 2021-10-28 15:27:04 +00:00
Zuul
0df859db43 Merge "infra VMs: use wait_for rather than wait_for_connection" 2021-10-28 15:27:02 +00:00
Mark Goddard
b87d89aae3 infra VMs: use wait_for rather than wait_for_connection
wait_for_connection requires a python interpreter to be available, which
may not be the case in some images (CentOS Stream cloud images, cirros
etc.). Instead, use wait_for to wait for the SSH port to open, then rely
on the bootstrapping process to install an interpreter. This is the same
method used for the seed VM.

This change also syncs the SSH wait timeout for infra VMs which the one
used for seed VM provisioning (360 seconds).

Change-Id: I758aff1d3ef714f1c8ef82d29dd2217734a9aae6
2021-10-28 08:53:33 +00:00
Zuul
f1ea2b7d4d Merge "Drop become in stackhpc.libvirt-vm for seed vm provision" 2021-10-27 17:37:43 +00:00
Zuul
7000b794fe Merge "CI: Disable heat in upgrade jobs to save disk space" 2021-10-27 16:02:08 +00:00
Mark Goddard
50e04bb06f Drop become in stackhpc.libvirt-vm for seed vm provision
Prior to this change, the seed VM was provisioned using the
stackhpc.livirt-vm role with become=true. This resulted in the cached
image being owned by root. The infra VM provisioning uses
stackhpc.libvirt-vm without become=true. If an infra VM uses the same
image as the seed, this can lead to permission denied errors when
downloading a new image of the same name.

This change adds a workaround to fix up the ownership of the cached
image during infra VM provisioning to avoid this issue.

This change also drops become=true from stackhpc.libvirt-vm during seed
VM provisioning, and adds the same workaround there.

Story: 2009277
Task: 43534

Change-Id: Iade0d74cdb398365a567dbdc4b23de2416f3726d
2021-10-27 10:00:03 +01:00
Pierre Riteau
80c13e75de Fix link syntax in release note
Change-Id: Ic337c6fe61343f1ba15f977f13e88c3bd9d5ec18
2021-10-26 17:34:49 +02:00
Mark Goddard
104e383fc7 CI: add Infra VM jobs
Depends-On: https://review.opendev.org/c/openstack/kayobe/+/812670
Depends-On: https://review.opendev.org/c/openstack/kayobe-config-dev/+/805239
Depends-On: https://review.opendev.org/c/openstack/kayobe/+/813212

Change-Id: I7dbd643fec72223bfda20cbbc37809ae78073804
2021-10-26 09:35:17 +01:00
17c628db90 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: If1a94728c4a31557d7a2b615d25c6d2bc92e1970
2021-10-25 10:02:24 +00:00
a23bdfd67f Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I207634cc8454b019105098c2ee2cfe24a58f0511
2021-10-25 10:02:21 +00:00
Pierre Riteau
06a51ceaec CI: Disable heat in upgrade jobs to save disk space
We see frequent failures of upgrade jobs on stable branches due to lack
of disk space. Disable heat in an attempt to free up extra space, since
we do not need it for our testing.

Change-Id: I20c99ca9dd6e78b041e4662c9b1b54eac904e3c9
2021-10-22 09:54:00 +02:00
Zuul
bf440c5dd2 Merge "Support Ansible diff mode" 2021-10-21 16:31:56 +00:00
Zuul
b594e1bc48 Merge "Add the missing documentation for mariadb recovery" 2021-10-21 15:47:14 +00:00
Zuul
d345e6dac5 Merge "Infra VMs: follow up" 2021-10-21 15:47:12 +00:00
Zuul
686ec8cea3 Merge "Add missing hook support for environment-create" 2021-10-21 14:21:32 +00:00
Zuul
7b8a8fdb94 Merge "Remove stale config dump from seed hypervisor host configure" 2021-10-21 14:21:30 +00:00
Zuul
b150f57a4e Merge "CI: add host configure tests for firewalld" 2021-10-21 14:21:28 +00:00
Mark Goddard
9c2565a60c Support Ansible diff mode
Adds a '--diff' argument to kayobe CLI commands. This is passed through
to ansible-playbook for Kayobe Ansible playbooks, and can be used with
the '--check' argument to see changes that would be made to files.

This change also passes through --check and --diff arguments to
kolla-ansible.

Story: 2009038
Task: 42794

Change-Id: I350795c328c0dc0a91a5cd500c252c5b7b1eafc1
2021-10-21 12:00:33 +00:00
Maksim Malchuk
8710a7766e Add the missing documentation for mariadb recovery
This change is a missing part for the new Kayobe functionality
introduced in Ie16354cd01ea7dd83cd3d4058dd8451b8387600b.

Change-Id: Ia3d665d53ccdb9e3b1d40949e96b720fab6df348
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2021-10-21 09:48:30 +00:00
Zuul
0ff94df353 Merge "CI: enable DNF tests on all CentOS versions" 2021-10-20 13:07:37 +00:00
Zuul
c47376febe Merge "CI: enable DNF tests on CentOS Stream 8" 2021-10-20 13:07:27 +00:00
Pierre Riteau
3d4792ee32 Document variables to configure connectivity check
If ICMP is filtered, it can be useful to change the IP and hostname used
by the network connectivity check feature.

Change-Id: I7432287dcb43992688600415fbb360709a532565
2021-10-20 10:38:38 +00:00
Mark Goddard
49218b34db Remove stale config dump from seed hypervisor host configure
The config dump was removed from host configure commands in
I85670be7242bc436f73c689f027670b0938ba031, but somehow the seed
hypervisor was missed.

Change-Id: I4ae457a784423dcce96e51b4bb21219831acc854
2021-10-20 08:31:35 +02:00
Zuul
0b1a052b0e Merge "Prevent Bifrost from using firewalld" 2021-10-19 14:43:40 +00:00
Zuul
1703a27341 Merge "Allow Docker to use insecure registry when deployed by Kayobe" 2021-10-19 14:10:14 +00:00
Pierre Riteau
bdba7a923e Add missing hook support for environment-create
Change-Id: I914c22c6338421bcd0f37277253fe42572300612
2021-10-19 15:06:10 +02:00
Zuul
7c9dbf4117 Merge "Ubuntu systemd-networkd: VLAN ifname heuristics" 2021-10-19 12:34:27 +00:00
Zuul
615d9b8f49 Merge "Set proxy option in early dnf invocation" 2021-10-19 11:30:18 +00:00
Pierre Riteau
9f6c912b34 Prevent Bifrost from using firewalld
This is to avoid conflicting with iptables rules configured on the seed
host by Kayobe.

A new variable kolla_bifrost_use_firewalld is introduced to configure
whether Bifrost uses firewalld.

Change-Id: I7049eae6518f818f9e180dfdb6f515d527644808
Story: 2009252
Task: 43442
2021-10-19 11:55:37 +02:00
Pierre Riteau
2e2c96e394 Allow Docker to use insecure registry when deployed by Kayobe
Kolla Ansible has recently updated the default Docker configuration to
stop using an insecure registry [1]. To avoid breaking existing Kayobe
deployments, automatically set docker_registry_insecure to true if we
deploy a registry without TLS.

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

Change-Id: Ifec7102812b5503cb02f207098192e99e7193d49
2021-10-19 11:50:59 +02:00
Zuul
96a9d861cf Merge "Add missing apt playbook for infrastructure VMs" 2021-10-19 07:15:03 +00:00
Zuul
9b1a46060c Merge "Add reno about chrony removal" 2021-10-19 05:36:09 +00:00