1958 Commits

Author SHA1 Message Date
Mark Goddard
9d3045dbf0 ntp: check for ntp group in inventory
The Wallaby release adds support for configuring a chrony daemon on
hosts in the ntp group. The kolla chrony container is disabled by
default, meaning that users could be left without an NTP client if they
forget to add hosts to the ntp group.

This change adds a check for the existence of an ntp group in the
inventory. The group may be empty.

Change-Id: Ic0ff71bb11692eb6c5699a1673df2d16b8f894ec
Story: 2007872
Task: 42533
2021-05-27 15:19:33 +01:00
Zuul
211c68aa6c Merge "Support additional pass through host variables" 2021-05-18 13:24:03 +00:00
Zuul
7fc375e68c Merge "Make docker registry network mode configurable" 2021-05-18 11:28:08 +00:00
Zuul
7f41b14b7b Merge "Remove default time sources from customisable configuration" 2021-05-18 02:16:24 +00:00
Pierre Riteau
223e310bc2 Remove default time sources from customisable configuration
It seems unlikely that anyone would want to extend the time servers
variable, so let's keep it simple and not add an additional variable
where one isn't necessary. This is also consistent with how we configure
DNS.

These variables haven't made it into an official release yet, so now
is the time to clean up.

Change-Id: I3c15c6976296abf9c78f1480c1779b854145c7ca
2021-05-13 16:35:57 +01:00
Zuul
928d0a5cb3 Merge "Fixes for Ansible 2.10" 2021-05-13 11:20:52 +00:00
Zuul
bc4c16f004 Merge "CentOS Stream: update DNF repo file names" 2021-05-13 10:49:33 +00:00
Mark Goddard
0ce6ea2ee2 docs: add reno and upgrade info for CentOS Stream
Story: 2008795
Task: 42459

Change-Id: I1f55a2f47ac614fea983e19802e469efd810e849
2021-05-12 10:41:58 +01:00
Mark Goddard
ece41b7a67 CentOS Stream: update DNF repo file names
CentOS repositories were renamed following the separation of CentOS
Linux and Stream. This change updates their names when using a local
mirror. It also removes the old files.

Change-Id: Ifcc3781d771e150b5771f2bf20cd8bcbc5faa443
Story: 2008795
Task: 42435
2021-05-11 22:50:31 +02:00
Mark Goddard
e187ad7955 Make docker registry network mode configurable
Adds a new flag, 'docker_registry_network_mode', which defaults to
'host'. This may be used to set the network mode of the Docker registry
container.

This is a follow up to I404dd52701426a10c2e92727bd52b7fd7112abf6, which
changed the network mode from the default of bridge to host. It allows
that change to be backported to stable branches, without modifying the
default value.

Change-Id: Ic8ec3bb98f8f016e1d089bf10bd0538264394241
2021-05-11 22:48:21 +02:00
Mark Goddard
c44f4815cf Fixes for Ansible 2.10
os_image_facts renamed to os_image_info, and no longer sets a fact.
Instead we use the registered result. The same is true for
os_networks_facts and os_networks_info.

We did not catch the networks issue in CI because the code only runs
with a VLAN provisioning network, and we use a flat network.

Change-Id: I6a801e8bb5171bebd2b3f20d6140329d38ea36a5
2021-05-11 20:41:17 +00:00
Zuul
4daf293e78 Merge "CI: Remove unused Docker images after overcloud upgrade" 2021-05-11 17:05:14 +00:00
Zuul
0000a13118 Merge "Adds support for configuring chrony" 2021-05-11 16:51:35 +00:00
Pierre Riteau
93a8baca93 CI: Remove unused Docker images after overcloud upgrade
Overcloud upgrade jobs often fail when running on nodes with a 38G root
disk. The overcloud upgrade itself generally works, but post-upgrade
testing fails, for example when RabbitMQ gets in alarm state due to lack
of free disk space, which prevents Nova from functioning correctly and
makes it return "Unknown Error (HTTP 504)".

Change-Id: I536a526340f6d7dea7a69372904b777292774eba
2021-05-11 11:45:04 +02:00
Zuul
bd47fd025d Merge "docs: aio: add note with link to automated setup" 2021-05-10 11:21:58 +00:00
Will Szumski
085cf7d175 Adds support for configuring chrony
Some hosts in the kayobe inventory might not be in the kolla-ansible
inventory so it makes sense for kayobe to manage NTP.

Change-Id: Iacb579a46b0e9769a4c404a858d17968f74dd7e0
Depends-On: https://review.opendev.org/c/openstack/kayobe-config-dev/+/786040
Story: 2007872
Task: 40240
2021-05-07 18:27:50 +02:00
Zuul
9c0bec4d3c Merge "Ubuntu: add documentation & release note" 2021-05-06 10:35:43 +00:00
Zuul
b5321e5483 Merge "Ubuntu: avoid shadowing of networkd config files" 2021-05-05 14:26:07 +00:00
Zuul
cbf9082294 Merge "Add os_release variable, build CentOS stream images" 2021-05-05 11:24:19 +00:00
Zuul
7efa1439c3 Merge "Ubuntu: install qemu-img on seed-hypervisor" 2021-05-05 11:20:00 +00:00
Mark Goddard
dfdff656f5 Ubuntu: add documentation & release note
Change-Id: I3c4d81f59bb61fdd23234777b8d839adecfe86f2
Story: 2004960
Task: 42324
2021-05-05 10:26:31 +01:00
Pierre Riteau
8315542318 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I831f08154dad5a80e8f34aeb9ae161d2de5ffa57
2021-05-05 10:02:11 +02:00
Mark Goddard
1cac2ccbc8 Add os_release variable, build CentOS stream images
* add os_release variable
* build CentOS stream overcloud root disk images
* build CentOS stream IPA images

Story: 2008795
Task: 42417

Change-Id: I3d231076052fbfa8416f34c038c02fd10a1c37f2
2021-05-04 16:03:08 +00:00
Zuul
11103602f8 Merge "Revert to binary images for nova" 2021-05-04 10:59:00 +00:00
7abf6360e4 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I59a2a1e00b148f20e5a01dced5dc818a56ed5056
2021-05-03 08:22:03 +00:00
872d874e39 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: Iaa54c3c176d1dfb8e8a7e882640741419116d4c0
2021-05-03 08:21:59 +00:00
Mark Goddard
c355935c9c Ubuntu: avoid shadowing of networkd config files
Kayobe removes any systemd-networkd configuration generated by netplan,
since it can shadow our own configuration. This is performed via a
handler, but in practice it may run after the handler that restarts
systemd-networkd. This can leave the system using the netplan
configuration, which might not be correct. For example, if the interface
should be a bridge port.

This change fixes the issue by flushing handlers before importing the
systemd-networkd role.

Change-Id: I62ef7746aca4c6889526692cd0897e422937e70e
Story: 2004960
Task: 42415
2021-04-30 13:52:04 +01:00
Zuul
42a1303737 Merge "Ubuntu: simplify OS distro selection" 2021-04-29 16:39:27 +00:00
Zuul
c98cd6c520 Merge "Ubuntu: define implied VLAN parent interfaces in networkd" 2021-04-29 12:12:45 +00:00
Mark Goddard
d6aa4ea16e Ubuntu: simplify OS distro selection
Adds a new 'os_distribution' variable which can be used to select the OS
distribution, with sensible defaults for other variables. The default
value is 'centos'.

This patch changes the default value for the '*_bootstrap_user'
variables from using the $USER environment variable to using fixed
defaults equal to the os_distribution variable. This aligns with the
standard user configured in most cloud images, and images created via
DIB.

Note that we are continuing to use a CentOS based IPA image, since we
have been unable to get IPA to build for Ubuntu.

Depends-On: https://review.opendev.org/c/openstack/kayobe-config-dev/+/788234

Change-Id: I9e10239f58fe209867116fa2e10f1ce74220b966
Story: 2004960
Task: 42323
2021-04-29 11:16:42 +01:00
Zuul
48fdca1dfc Merge "[release] Tidy release notes for Wallaby" 2021-04-28 18:26:40 +00:00
Zuul
65f1c48597 Merge "[release] add kolla feature flag sync scripts and update docs" 2021-04-28 18:26:33 +00:00
Zuul
66bc197afd Merge "[release] Sync Kolla Ansible feature flags and inventory for Wallaby" 2021-04-28 18:26:26 +00:00
Zuul
4a6bc785cd Merge "Switch to reboot module" 2021-04-28 14:59:11 +00:00
Mark Goddard
1ae12dc6f8 Ubuntu: define implied VLAN parent interfaces in networkd
On CentOS, when using the MichaelRigart.interfaces role, defining a VLAN
interface implies the existence of its parent interface. This is handled
via the CentOS network interface scripts. With systemd-networkd, the
parent interface is not implicit, and must be configured. The parent
interface network configuration file needs to contain this:

    [Network]
    VLAN = eth0.42

This change adds support for these implied parent interfaces. It also
removes the Broadcast = true option, which was added in an attempt to
fix an issue but is not supported in the [Network] section, and
generates a warning:

    Unknown key name 'Broadcast' in section 'Network', ignoring.

Story: 2004960
Task: 42368
Task: 42367

Change-Id: I5d105006fad6e7e80473b9d9fa693de644c35a6d
2021-04-28 14:50:16 +01:00
Pierre Riteau
0fad6c1e23 Revert to binary images for nova
The centos binary images now include nova 23.0.0 packages.

Change-Id: I0c7d57231a63e1f9ff3fdcdef1be7fff57160e08
2021-04-28 12:55:19 +02:00
Mark Goddard
f190f739e3 [release] Tidy release notes for Wallaby
Change-Id: I5ecb42bc752c272c8a2b48b6c8499344f27fef5e
2021-04-28 11:36:43 +02:00
Mark Goddard
f2cca07c7f Ubuntu: install qemu-img on seed-hypervisor
On systems without qemu-img installed, seed VM provisioning will fail
when creating qcow2 disk images. This is the case with some Ubuntu
images. This change updates the stackhpc.libvirt-vm role to v1.14.1,
which installs qemu-img.

Change-Id: I205b40c142adcbe0deb2ea6296c246533fd49def
Story: 2004960
Task: 42330
2021-04-28 09:55:29 +01:00
Michał Nasiadka
4d886ff176 docs: aio: add note with link to automated setup
Change-Id: I6f21c76a0308db3783d8fa0f28e7a47febabd09e
2021-04-28 08:41:52 +00:00
Zuul
174e3994df Merge "Use OpenStack Wallaby release" 2021-04-27 22:53:07 +00:00
Zuul
4be5629d38 Merge "Disable Bifrost cleaning by default" 2021-04-27 12:41:30 +00:00
Zuul
15bad223c3 Merge "Remove ntp.yml configuration file" 2021-04-27 11:02:51 +00:00
Will Szumski
932a619981 Switch to reboot module
The manual SSH command is buggy since it does not respect things
like ansible_ssh_extra_args.

TrivialFix

Change-Id: I30709df86b4cc334413b76507700dc03e7df2ea1
2021-04-27 11:13:55 +01:00
Michał Nasiadka
3f76d7d134 Use OpenStack Wallaby release
Switch all dependencies to use the OpenStack Wallaby release.

This commit should be reverted on the master branch once the
Kayobe stable/wallaby branch has been cut and RC1 released.

Change-Id: I977943e81a79e4a40cca04d80d786ca49afd3d39
2021-04-26 08:45:42 +00:00
Pierre Riteau
7411e624de Use released version of mrlesmithjr.mdadm
An initial version of the mrlesmithjr.mdadm role was released 2 days
ago. There are only minimal changes compared to the commit we were
using. This should avoid the following issue seen in CI:

[WARNING]: - mrlesmithjr.mdadm was NOT installed successfully: - the specified
version (5be3ee7d330aa17317897bd104dc87ff0df11915) of mrlesmithjr.mdadm was not
found in the list of available versions ([{'id': 152374, 'url': '', 'related':
{}, 'summary_fields': {}, 'created': '2021-04-24T02:51:30.453954Z', 'modified':
'2021-04-24T02:51:30.453980Z', 'name': 'v0.1.0', 'version': '0.1.0',
'commit_date': '2021-04-23T22:50:00-04:00', 'commit_sha':
'b8a9853b7eafa9afc62bbb7728f64fd5dc9f54de', 'download_url':
'https://github.com/mrlesmithjr/ansible-mdadm/archive/v0.1.0.tar.gz', 'active':
None}]).
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

Change-Id: I3d85b341cf541cfb9b486021e66b316833fe9130
2021-04-26 10:04:45 +02:00
Zuul
83951b01ac Merge "zuul: add more irrelevant files" 2021-04-26 07:44:09 +00:00
Zuul
b0a5cadac0 Merge "Add release note for multiple environments" 2021-04-26 07:24:28 +00:00
Mark Goddard
b7287ec586 [release] add kolla feature flag sync scripts and update docs
Adds a script for syncing feature flags from Kolla Ansible, and updates
the release docs to include this step. Also adds the inventory sync
step.

Change-Id: Id2bd48897d6b37a5006bad7f6e8597db20aa1b8b
2021-04-23 17:16:20 +01:00
Mark Goddard
0b279474e0 [release] Sync Kolla Ansible feature flags and inventory for Wallaby
Syncs with Kolla Ansible feature flags and inventory for Wallaby
release, at commit 058dd6828d788b60b6803f24f53f1dfca0876e6b.

Change-Id: Ibd20a72bd29e20de016fe41de2f1691302e7e24d
2021-04-23 17:16:20 +01:00
Mark Goddard
d45812d3ba Disable Bifrost cleaning by default
Cleaning was disabled by default in Bifrost
(Ie1198768889bd468176cd68c8ccb48791c724262) until the Victoria release,
when the default was changed. The 'kayobe overcloud provision' command
does not handle cleaning states when moving nodes from manageable to
available. This can lead to provisioning failures.

This change disables cleaning to maintain backwards
compatibility with earlier versions of Kayobe.

Change-Id: I23eb5116d8d1944167a0d50cafe5b99f766ad687
Story: 2008850
Task: 42363
2021-04-23 15:03:40 +00:00