1425 Commits

Author SHA1 Message Date
Will Szumski
06ad1c3a96 Make docker registry volume configurable
One use case is to use seperate disk for the registry storage. This
can prevent the rootfs from filling up.

Change-Id: I9634ee7f5730e93b8ddd96de04982d638dd4dae2
2020-02-19 10:16:00 +00:00
Pierre Riteau
c9474bf9b0 Revert "Use OpenStack Train release"
This reverts commit a93b85ba07113a77a6c0db498a59cef3bca15b94.

The local Python executable for Kolla Ansible is changed to Python 3
because Kolla Ansible master no longer supports Python 2.

Change-Id: I768ce8db9cec1c70d94f271997bbcc64d370403e
2020-02-14 14:54:23 +00:00
Mark Goddard
6b47717c43 Make local kolla-ansible Python executable configurable
The default is still Python 2. This is a necessary prerequisite for using
the master branch of kolla-ansible, which requires Python 3.

Change-Id: Ida5b60b723c8208bb7305c3d669eafdab6dbbe01
Story: 2004959
Task: 38767
2020-02-14 14:54:23 +00:00
Andreas Jaeger
030ede06e8 Fix error logging of dev/functions
In case of failures in kayobe-overcloud-centos, the error message fails
with:
kayobe/dev/functions: line 569: LOGDIR: unbound variable

Example:
https://zuul.opendev.org/t/openstack/build/ce1fadc3ee6d4842a599da57a670cc18

This can be reproduced with:
set -eu

if [[ -n ${LOGDIR} ]]; then
    echo "LOGDIR set"
else
    echo "else"
fi

Fix the error reporting with assigning an empty string to LOGDIR by
default.

Change-Id: Ieef73950f89e4dfb727ddc59ef2750d9b81f3c58
2020-02-13 15:32:49 +00:00
Mark Goddard
2fcdff101f Fix sphinx8 script used by pep8
We wrap doc8 to register the directives we use in our documentation.
Previously the 'app' argument was passed as None, however sphinx has
started to use the argument.

This change uses a mock object since we don't need to use the
application object.

Change-Id: Id9e8d5f6d09f14d294cd493538780456f98c7dbe
2020-02-13 11:32:50 +00:00
Zuul
cc219bc0b5 Merge "[ussuri][goal] Drop python 2.7 support and testing" 2020-02-11 19:56:10 +00:00
Julia Kreger
baadf62635 [docs] Change CoreOS URLs to Centos URLs fir IPA
The ironic-python-agent coreos images are unsupported and are
anticipated to be removed from the tarballs.openstack.org site.

In advance of this, we need to remove references to these images.

Change-Id: Ifb402418d7962cf507b190e028a59b94ad5d46ac
2020-02-11 16:05:57 +00:00
chenxing
b41311f128 Docs: show other versions
Change-Id: I9bc19aa9dcea6dad242d93cecfb4f201ae855463
2020-02-11 19:23:39 +08:00
Ghanshyam Mann
c0a1216afa [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

kayobe is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Idbbdd96ff23846d29833c5997d1e32e65b5169f2
2020-02-11 10:12:39 +00:00
Andreas Jaeger
d5a3c74b16 Update docs building
* Use storyboard instead of launchpad since this project uses
  storyboard. This fixes the "Report a bug" link.
* Remove unneeded configuration bits for doc building, the
  defaults of openstackdocstheme are fine.

Change-Id: Id7513b245d1b4eac09f717a7f47469fd7bb4d3b5
2020-01-30 09:40:39 +01:00
Zuul
2056983a56 Merge "Fix overcloud provisioning due to Bifrost IPA rename" 2020-01-06 16:02:51 +00:00
Zuul
b22ef99114 Merge "Fix IPA builds without packages specified" 2020-01-06 15:58:32 +00:00
Zuul
bbe0f32fcc Merge "Fix seed VM provision" 2020-01-06 13:10:58 +00:00
Zuul
c41b2d714f Merge "CI: Increase job run attempts" 2020-01-06 10:06:14 +00:00
Mark Goddard
a076ae6dc3 Fix seed VM provision
Since I56533ead8357945a42b079fda7edbd9912fc135a (present in 7.0.0.0rc1),
seed VM provisioning fails due to a missing configdrive volume. The
problem is caused by the stackhpc.libvirt-vm role at version 1.8.0, and
the issue is described in
https://github.com/stackhpc/ansible-role-libvirt-vm/issues/45.

This change bumps the requirement for stackhpc.libvirt-vm to v1.10.0,
which includes a fix for the issue.

Change-Id: I7361510a1c9c9c25356c5abd2a68b661c6b52692
Story: 2007063
Task: 37929
2020-01-06 10:11:39 +01:00
Mark Goddard
beba4d29b5 Fix IPA builds without packages specified
Since story 2006855, it is possible to specify a list of packages when
building IPA images. However, this introduced an issue in the case where
no packages are specified. See
https://github.com/stackhpc/ansible-role-os-images/issues/26.

This change fixes the issue by updating stackhpc.os-images role to
v1.7.0, which has a fix for this issue.

Change-Id: I70d20381bec3f5b92bb467e6c506e32bb13548c2
Story: 2007069
Task: 37952
2020-01-03 15:20:36 +00:00
Mark Goddard
fa7d29b47e Fix overcloud provisioning due to Bifrost IPA rename
Kolla recently upgraded bifrost from 7.0.0 to 7.1.0 on the stable/train
branch. This switched to IPA builder to build the IPA image, and
introduced a rename of the IPA kernel file from ipa.vmlinuz to
ipa.kernel, which breaks overcloud provisioning. The iPXE kernel
download fails with a 404, since Kayobe introspection rules use
ipa.vmlinuz for the driver_info.deploy_kernel URL.

This change works around the issue by setting two Bifrost variables,
ipa_kernel and ipa_kernel_url, to reference the old kernel filename of
ipa.vmlinuz. This works both in the case where the image is downloaded
from a URL (ipa_kernel sets the destination file name), and where it is
built via 'kayobe seed deployment image build' (kayobe uses the legacy
ironic-agent DIB element rather than IPA builder, which creates a
hardlink to ipa.vmlinuz).

We chose the above approach rather than switching to IPA builder due to
it being a less risky change at a time close to release. A future
release of Kayobe should switch to IPA builder, but this will be a
larger effort.

[1] https://review.opendev.org/#/c/692200/1/playbooks/roles/bifrost-ironic-install/defaults/main.yml

Change-Id: I7f75c25602fd7ae4bfeb6abbdd3b42d8ee465abf
Story: 2007068
Task: 37951
2020-01-03 15:07:07 +00:00
4acc1b64ec Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

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

Change-Id: I8ee7a008dc6dfc07f2fd079323d43a28f15ecb42
Sem-Ver: feature
2019-12-20 16:49:21 +00:00
Zuul
47aeacbacb Merge "Add Nova Cells documentation" 2019-12-20 13:43:14 +00:00
Zuul
b78c95fb23 Merge "Support customising nova-conductor and proxy groups for cells" 2019-12-20 12:11:45 +00:00
Zuul
e65ac9ac08 Merge "Support custom Kolla group_vars" 2019-12-20 11:37:29 +00:00
Pierre Riteau
6b0f1c68c4 Add prelude to mark the first release as part of Kolla
Change-Id: Ie8cad275089315ef62b826ff3ab720537bc71cdb
2019-12-19 11:37:02 +01:00
Doug Szumski
aee2af7a75 Add Nova Cells documentation
Clearly not very user friendly at the moment. We probably want to
include these files as part of test.

Change-Id: Ib6ed0e68b55a98920cbaf3e8ec828901b4b9ed9f
Story: 2004291
Task: 37810
2019-12-18 18:34:34 +01:00
Doug Szumski
05ae35bf6c Support customising nova-conductor and proxy groups for cells
Change-Id: Ife90d839a5184a3b692c49e0411cd1ac6467f25a
Story: 2004291
Task: 37804
2019-12-18 18:34:31 +01:00
Doug Szumski
72d4d64609 Support custom Kolla group_vars
In Kayobe hosts which are part of a Nova cell can be managed via the
existing controller and compute groups. However, since Nova Cells are
configured via group vars in Kolla Ansible we need some way of setting
these. We could pass vars through to Kolla Ansible host vars using
`kolla_overcloud_inventory_pass_through_host_vars` but the list of
variables which may be set on a per cell basis is large and undefined.

This change allows the user to directly specify Kolla Ansible group vars
as part of Kayobe config, allowing the deployment of Nova Cells by
Kayobe to be largely unchanged from the procedure documented in Kolla
Ansible.

Change-Id: I2695034d36936fcc77a4828c67f9552155781dd6
Story: 2004291
Task: 37804
2019-12-18 16:45:36 +01:00
Zuul
4a6e0c42a9 Merge "Bump stack.libvirt-vm role to 1.8.0" 2019-12-17 17:33:11 +00:00
Zuul
327adbf6a9 Merge "Sync comment with default value of pip_upper_constraints_file" 2019-12-17 13:27:30 +00:00
Pierre Riteau
f09afa9a31 Sync comment with default value of pip_upper_constraints_file
Change-Id: Ib552236f724a863de5809ef268b428cc12ad6229
2019-12-17 10:28:26 +01:00
Pierre Riteau
319827e1a8 Fix Train release notes
These are mostly formatting fixes, but also a correction of the default
value of pip_upper_constraints_file.

Change-Id: Iadb1b45644865d67e170f94d301d3eeeab2654ee
2019-12-17 10:20:49 +01:00
Will Szumski
f16ff2b64e Switch default IPA images to centos
The CoreOS images are no longer built or maintained.

Change-Id: I8928c2def85070f6310e5fb859abf21b3e234256
Story: 2007021
Task: 37808
2019-12-16 10:11:17 +00:00
Zuul
01f04e500d Merge "Improve detection of base path" 2019-12-13 15:01:35 +00:00
Pierre Riteau
ff71473828 Bump stack.libvirt-vm role to 1.8.0
This version adds the ACPI feature [1] to the guest definition, which
should help to support graceful shutdowns with `virsh shutdown`.

[1] 8405c20cf9

Change-Id: I56533ead8357945a42b079fda7edbd9912fc135a
2019-12-13 14:52:49 +01:00
Zuul
95b6747686 Merge "Adds support for Ansible 2.8, bump mimimum to 2.6" 2019-12-13 12:58:44 +00:00
Zuul
f6a93bbc21 Merge "Use OpenStack Train release" 2019-12-12 15:02:34 +00:00
Zuul
30e9c3af8a Merge "Use mariabackup for database backups" 2019-12-12 13:07:45 +00:00
Zuul
001c8d9101 Merge "Support internal API TLS encryption" 2019-12-12 13:07:42 +00:00
Zuul
b98728f3d6 Merge "Use {{ openstack_branch }} as version of kolla-ansible in ansible tests" 2019-12-12 12:39:01 +00:00
Will Szumski
8454cf8551 Adds support for Ansible 2.8, bump mimimum to 2.6
Updates the minimum version of Ansible from 2.5 to 2.6, and the maximum
supported version from 2.7 to 2.8.

Change-Id: I5aeb28424a8d1920b58ca73e37131d8cbfeabf29
2019-12-12 11:20:40 +00:00
Will Szumski
a93b85ba07 Use OpenStack Train release
Switch all dependencies to use the OpenStack Train release.

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

Change-Id: I6006e14df27a180f1438f9eb01b9ebefdddaff72
2019-12-12 11:55:56 +01:00
Mark Goddard
e93bbd9ed5 Use mariabackup for database backups
Kolla ansible switched its database backup support to mariabackup from
xtrabackup due to incompatibilities. See
https://bugs.launchpad.net/kolla/+bug/1843043 for details.

Change-Id: Ib95771f09fd6d5e71a2af471de47f811e1cab88b
Related-Bug: #1843043
Story: 2006952
Task: 37634
2019-12-11 17:16:59 +00:00
Mark Goddard
c8f105a907 Support internal API TLS encryption
Kolla Ansible Train introduces support for TLS encryption of the
internal API. This change introduces support for internal API encryption
in Kayobe.

The following new variables are introduced:

* kolla_enable_tls_internal
* kolla_internal_tls_cert
* kolla_internal_fqdn_cacert

Also only set kolla_*_fqdn_cacert in globals.yml if set.

Change-Id: If432afde374fe247d09c952e110c9567e17daea1
Story: 2006959
Task: 37649
2019-12-11 17:13:38 +00:00
Zuul
9332c211f4 Merge "Add kayobe as openstack project for release notes" 2019-12-11 17:07:06 +00:00
Zuul
ea46396050 Merge "Add example to Bridges and VLANs section" 2019-12-11 15:23:23 +00:00
Will Szumski
5f688777ba Add kayobe as openstack project for release notes
This allows you to use a project reference for documentation, e.g

features:
  - |
    :kayobe-doc:`Testing versioned docs <configuration/kayobe.html#configuration-patterns>`

Change-Id: Ie25a7f12b99b8b02dfd76848ec7c3fc08c8b8108
2019-12-11 15:07:58 +00:00
Zuul
074c1c249a Merge "Switch to generic package module" 2019-12-11 11:04:31 +00:00
Pierre Riteau
5d6de8fc8b Add example to Bridges and VLANs section
Change-Id: I45c64dfe6a28f73b3c4f7ac4444e49b8488e55f7
2019-12-10 15:44:09 +00:00
Zuul
30cedca968 Merge "Improve docs on kolla-ansible" 2019-12-09 21:02:31 +00:00
Mark Goddard
8b80e8f2c5 Improve docs on kolla-ansible
Change-Id: Iff5788914c111944f1b4d74362c0f86428ebebe8
Story: 2004337
Task: 28504
2019-12-09 16:14:19 +00:00
Doug Szumski
00002f25e1 Add support for custom Elasticsearch config
Elasticsearch Curator will be driven by custom config. This adds
support in Kayobe for managing it.

Change-Id: Ie739ffbd67c6c26175f152449a7b7276ffa87824
Story: 2006852
Task: 37443
2019-12-09 12:07:39 +00:00
Zuul
74da0d4531 Merge "Remove stop-chrony.yml" 2019-12-09 11:27:14 +00:00