1441 Commits

Author SHA1 Message Date
Zuul
afa42f72a1 Merge "Bump Ansible version range to 2.8 - 2.9" 2020-02-28 21:47:00 +00:00
Zuul
bc655cbe00 Merge "CentOS 8: Bump MichaelRigart.interfaces to 1.4.0" 2020-02-28 21:22:08 +00:00
Zuul
382c38c92b Merge "Make Kayobe code compatible with Python 3" 2020-02-28 21:18:49 +00:00
Zuul
7ebe1def69 Merge "Allow setting pip_proxy" 2020-02-28 14:18:37 +00:00
Mark Goddard
ebd5aa4477 Bump Ansible version range to 2.8 - 2.9
Updates the minimum version of Ansible from 2.6 to 2.8, and the maximum
supported version from 2.8 to 2.9.

CentOS 8 requires Ansible 2.8.

Change-Id: I3f8f7f8d7d37e3cb851965a491ac9c43030869d5
Story: 2006574
Task: 38826
2020-02-27 15:39:27 +00:00
Mark Goddard
3c9daababe CentOS 8: Bump MichaelRigart.interfaces to 1.4.0
This release provides support for CentOS 8.

Change-Id: Ie597e1bee46e1f7b7a7129d37e70d88c08cade74
Story: 2006574
Task: 38869
2020-02-27 15:39:27 +00:00
Pierre Riteau
15109ccb54 Make Kayobe code compatible with Python 3
Co-Authored-By: Mark Goddard <mark@stackhpc.com>

Change-Id: I2a7a82d7f576739c5516a0072f953712ffa5c233
Story: 2004959
Task: 29392
2020-02-27 11:10:29 +00:00
Zuul
9eb0254275 Merge "CI: set previous_release to train" 2020-02-27 09:32:37 +00:00
Michal Nasiadka
a0ab81d752 Allow setting pip_proxy
Change-Id: I2547ef2556ca96b614854515069aaca3349cd692
2020-02-26 11:10:01 +01:00
Mark Goddard
a91135179d CentOS 8: Use ansible_playbook_python for localhost dependencies
Currently we install python dependencies on the Ansible control host
each time the ip-allocation and console-allocation roles are executed.
This is inefficient, particularly in the case of the ip-allocation role
which is run serially for all hosts. It is also unnecessary since we
have these packages available in the Python environment used to execute
kayobe.

The kolla-ansible role also has an implicit dependency on PyYAML for
managing kolla passwords.

This change uses ansible_playbook_python as the Python interpreter for
the necessary tasks in these roles to avoid installing dependencies on
the system on CentOS 8 and Ubuntu. For CentOS 7 we still need to use the
platform Python, due to needing SELinux bindings.

Change-Id: Ic6a1c69a34241f4fbe617a0b12aec9b1528ba352
Story: 2006574
Task: 38825
2020-02-25 16:15:09 +00:00
Mark Goddard
f1a4b8cafc CI: set previous_release to train
This controls which release we are upgrading from.

Change-Id: I6b56a56e94f0b00b042c693a18ec1685724c7683
Depends-On: https://review.opendev.org/709189
2020-02-21 16:42:42 +00:00
Mark Goddard
2e842ab3f5 Remove activate-virtualenv and deactivate-virtualenv roles
These roles are no longer necessary now that Ansible supports setting
ansible_python_interpreter via a task- or role-scoped variable.

Change-Id: I4121d01dc83ac028350d4d98d3e1158e15fdfd63
Story: 2006574
Task: 38824
2020-02-20 15:28:56 +00:00
Mark Goddard
2de3a2c578 Switch from shade to openstacksdk
Upstream Ansible OpenStack modules now use openstacksdk rather than shade.
Switch local Ansible modules to follow suit. Also switch to use the
stackhpc.os_openstacksdk role from stackhpc.os-shade.

The stackhpc.os-shade role is removed during 'kayobe control host upgrade'.

Change-Id: Id3894c3c36ef99f00ed463de6a3457e11733d6b7
Story: 2007294
Task: 38759
2020-02-20 15:28:56 +00:00
Zuul
3de40b57ba Merge "Use latest release of StackHPC iDRAC role" 2020-02-19 14:41:13 +00:00
Zuul
2822e9d77c Merge "Stop gzipping logs in get-logs.sh" 2020-02-18 19:31:54 +00:00
Doug Szumski
f2d46a57e4 Use latest release of StackHPC iDRAC role
This pulls in a number of fixes to the iDRAC role which includes
a change to allow the role to work with a recent version of the
python-dracclient library.

Change-Id: I6aa1fcece42f93cf404cf06dc96b2d70b140775e
2020-02-18 11:23:41 +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
Mark Goddard
c657ead4f2 Stop gzipping logs in get-logs.sh
As per [1] we should stop compressing the logs sent to swift in order
to get them back readable via a browser.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-January/011875.html

Change-Id: Ieb1577f859d388a0f326cb6933c953f486dfca15
Co-Authored-By: Michal Nasiadka <mnasiadka@gmail.com>
2020-02-11 13:04:37 +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