1743 Commits

Author SHA1 Message Date
Zuul
f56432b89c Merge "Disable broken linting of literalinclude sphinx directive" 2020-06-11 09:37:17 +00:00
zhaoleilc
e75b4a7854 Correct a typo in the document
This patch changes 'Note that is is'
to 'Note that it is' in doc/source/
configuration/kolla.rst

Change-Id: Ide2e9a7582b78b25eac3462dc3477faf0ee66d38
2020-06-11 15:30:38 +08:00
Michal Nasiadka
aefd6e5a56 Add framework to deploy user-defined containers on seed
Task: 39811

Change-Id: I6f065073feee42b2a0921a4aea98f7004fe5f7bf
2020-06-10 19:34:04 +01:00
Will Szumski
c96803d8d1 Disable broken linting of literalinclude sphinx directive
Previously we were seeing:

AttributeError: 'Values' object has no attribute 'env'

TrivialFix
Change-Id: I2b376303a9fef8fb3c1ada0c168bbb494216aa94
2020-06-10 19:33:26 +01:00
4b960d94b8 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

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

Change-Id: Ie2c272d1f185083537274adb534001b2d8664154
2020-06-10 12:48:58 +00:00
34499fa56a Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

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

Change-Id: Iee73855fa78f80150b89e32cc9f3f79b98e5f95e
Sem-Ver: feature
2020-06-10 12:48:55 +00:00
Mark Goddard
76fa5ac3a7 Remove DIB kernel cleanup workaround
The issue being addressed was resolved by
https://review.opendev.org/#/c/713988/ and released in diskimage-builder
3.0.0.

Change-Id: Ie25e88bb96f186399ae69837e93185127628ce86
2020-06-08 12:34:38 +01:00
Zuul
fe4dea965d Merge "Fix documented name of time configuration file" 8.0.0.0rc1 2020-06-08 08:41:08 +00:00
Pierre Riteau
bdbed2697c Fix documented name of time configuration file
Change-Id: I6bb3c211c186ee1acfc842d5828741334a95b125
Story: 2007766
Task: 39988
2020-06-08 08:51:39 +02:00
Zuul
c2f049c6f0 Merge "[Community goal] Update the contributor guide" 2020-06-06 12:32:25 +00:00
Zuul
e379bfbd90 Merge "CentOS 8: separate kolla build tag from deploy tag" 2020-06-05 21:13:52 +00:00
Zuul
f6967fc6bb Merge "Don't disable SELinux if it is not installed" 2020-06-05 17:58:30 +00:00
Zuul
df3fd89fc5 Merge "Enable 'data' LVM group only for Docker devicemapper" 2020-06-05 15:22:37 +00:00
Mark Goddard
d124ab2090 [Community goal] Update the contributor guide
Adapted from Kolla Ansible guide
(https://review.opendev.org/#/c/729642).

Co-Authored-By: Michal Nasiadka <mnasiadka@gmail.com>
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>

Change-Id: I3a5a1d0a6fb65b95166fe564e15b655d72002639
Story: #2007236
Task: #39821
2020-06-05 15:58:35 +02:00
Zuul
e8cd20958e Merge "Use Ansible connection reset support in docker role" 2020-06-05 13:49:37 +00:00
Zuul
b4a6004829 Merge "Add ussuri prelude to release notes" 2020-06-05 13:49:36 +00:00
Zuul
4133d4e4e1 Merge "Fix concurrency issues while adding SSH keys to known_hosts" 2020-06-05 13:49:32 +00:00
Zuul
29c5405f9d Merge "Remove newline from default public_net_name" 2020-06-05 13:41:27 +00:00
Zuul
c497567669 Merge "Make the root disk image build command more visible" 2020-06-05 13:40:01 +00:00
Zuul
2b6ded0335 Merge "CI: mark pytest results as a Zuul artifact" 2020-06-05 13:19:31 +00:00
Zuul
c7285c4709 Merge "Fix external API interface with out an IP address" 2020-06-05 12:47:11 +00:00
Pierre Riteau
a633536bfa Update openrc files after overcloud service upgrade
We could end up with openrc files not matching the latest templates
after an upgrade.

Change-Id: I2dbaed7d698b630b1c79cf72fa338e29148dd6e7
2020-06-05 12:58:15 +02:00
Zuul
222cd5fdde Merge "Stop to use the __future__ module." 2020-06-04 17:20:37 +00:00
Zuul
1153011dd4 Merge "docs: fix route configuration example syntax" 2020-06-04 17:19:02 +00:00
Zuul
d01e7d3f4c Merge "Add note about hardware package dropping python 2 support" 2020-06-04 15:22:42 +00:00
Mark Goddard
1d12ca545e Copy custom certificates
Various kolla-ansible TLS features (including backend TLS and custom CA
certs) require certificates to be passed via
$KOLLA_CONFIG_PATH/certificates/. Currently Kayobe does not support
this.

This change adds support for copying across files from
$KAYOBE_CONFIG_PATH/kolla/certificates.

It also uses the kolla-ansible default value for
kolla_external_fqdn_cert and kolla_internal_fqdn_cert when
kolla_external_tls_cert and kolla_internal_tls_cert are respectively
not set. This allows for the standard kolla-ansible configuration
approach of dropping these certificates into the
$KAYOBE_CONFIG_PATH/kolla/certificates directory, rather than defining
them as variables. This can be useful if using the kolla-ansible
certificates command to generate certificates for testing.

Change-Id: I646930ad8ea70991d6ffa00f15f93f72d922141b
Story: 2007679
Task: 39790
2020-06-04 15:08:18 +00:00
Will Szumski
1b95bdf5f3 Add note about hardware package dropping python 2 support
Change-Id: I10432c914e05cde6b07ff1250b2a5c9b0c796500
Story: 2007752
Task: 39942
2020-06-04 08:49:59 +00:00
Pierre Riteau
4ba18116ff Fix docker-devicemapper playbook
Backport: train

Commit efb8b8bd27d08469c94f103b7314e9905cf6aa0e introduced in Train uses
docker_storage_driver in a Kayobe top-level playbook, but this variable
was only defined in defaults of the docker-devicemapper role. Unless
docker_storage_driver is explicitly set by the operator, the
docker-devicemapper playbook would fail due to the variable being
undefined.

Change-Id: I5e8219d1807b1a4e3ec65f5478eb3f1c7c02b241
Story: 2007719
Task: 39857
2020-06-03 18:06:05 +02:00
Hervé Beraud
7e59c14530 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ib07f0ea6fb944a7c3ed42d11575a420035c854cc
2020-06-02 20:19:56 +02:00
Zuul
436a28b9c8 Merge "Bump version of os-images role" 2020-06-02 12:14:05 +00:00
Mark Goddard
35f30a61b1 Fix external API interface with out an IP address
Steps to reproduce:

* Define a separate network for the external API network
* Don't define a cidr field for the new network (prevents IPs being
  allocated to hosts on this network)
* Set the vip_address field for the network (and optionally fqdn)
* kayobe overcloud host configure
* kayobe overcloud service deploy
* kayobe overcloud host configure (again)

On the final command, keepalived will have created a VIP on the
interface, causing the command to fail with an error like the following:

    Interface eth0 has an IPv4 address but none was requested

This change fixes the issue by passing the VIP address as an allowed
address to the MichaelRigart.interfaces role. This depends on
https://github.com/michaelrigart/ansible-role-interfaces/pull/71.

Change-Id: Ic86c0ca1b8209c968cb20a11bb3f40da71f296d0
Story: 2007736
Task: 39902
2020-06-01 09:18:27 +00:00
Stig Telfer
d4120473c6 Bump version of os-images role
Version 1.9.0 of stackhpc.os-images removes the dependency
on shade and replaces it with openstacksdk.  This version
is required for python3 support.

Change-Id: If0d73e13b5922ae071671d2c7983dda6a6c5ae5e
Co-Authored-By: Sebastian Luna Valero <sebastian.luna.valero@gmail.com>
Story: 2006574
Task: 39485
2020-05-31 11:18:15 +01:00
Mark Goddard
ffce6fa641 Use OpenStack Ussuri release
Switch all dependencies to use the OpenStack Ussuri release.

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

Change-Id: Id126ea109e6dfcba09b524129876985547ad368f
2020-05-29 15:42:07 +01:00
Mark Goddard
68f4ea5e59 docs: fix route configuration example syntax
TrivialFix

Change-Id: I126a1a630fcd1b2e804fbaa920a4a5bad32d87da
2020-05-29 15:36:39 +01:00
Mark Goddard
b49edbd275 CI: mark pytest results as a Zuul artifact
Change-Id: Icb57b908be9c83700274c042185e4481d5ca6ea5
2020-05-29 14:49:03 +01:00
Mark Goddard
09754df82f Don't disable SELinux if it is not installed
Kayobe has a role to disable SELinux. Some systems do not have SELinux
installed (this can be reproduced by removing the selinux-policy package
and removing /etc/selinux/config). This causes the selinux
Ansible module to fail, since it can't write to /etc/selinux/config:

    Please install SELinux-policy package, if this package is not
    installed previously.

This change fixes the issue by only disabling SELinux if the config file
exists.

Change-Id: I25c7282c1e8dcdee3e7feddef9d66ca5beeb1bce
Story: 2007704
Task: 39820
2020-05-28 19:34:20 +01:00
Zuul
f2c2114370 Merge "CI: Encrypt passwords.yml in overcloud host configure job" 2020-05-28 17:51:58 +00:00
Zuul
68fb5ec429 Merge "Move timezone configuration from ntp.yml to time.yml" 2020-05-28 15:59:40 +00:00
Zuul
f19b25b8ab Merge "CentOS 8: add docs and release note" 2020-05-28 15:59:35 +00:00
Zuul
6ea786fe27 Merge "Remove six" 2020-05-28 15:59:34 +00:00
Zuul
990ab26ef0 Merge "Remove support for CentOS 7 and Python 2" 2020-05-28 15:54:26 +00:00
Mark Goddard
3b03bfe3fd CI: Encrypt passwords.yml in overcloud host configure job
This gives us some test coverage with Ansible Vault.

Change-Id: Ic9db7f84e9f0dcbe69c31b6fff6bda3dfb401a33
Story: 2004959
Task: 39813
2020-05-28 12:10:24 +00:00
Mark Goddard
49c3e1dab4 Python 3: fix Ansible Vault password helper
In Python 3, the return type of subprocess.check_output is bytes by
default. It needs to be decoded to a string.

Passing universal_newlines=True to the subprocess functions results in
file objects opened in text mode, decoded using the system locale. A
unit test has also been added.

Change-Id: Idb4e66aa1f2c973a956907d7986d1c05c7ce2e67
Story: 2004959
Task: 39483
2020-05-28 10:57:00 +01:00
jacky06
b540482171 Remove six
Six is a python 2 and 3 compatibility library, remove it since openstack
use python3

Change-Id: Ib0e84ce417759843eccc2606ccb621242411e6c2
2020-05-28 10:30:07 +01:00
Mark Goddard
922175ebd2 CentOS 8: add docs and release note
Adds a support matrix page to documentation.

Change-Id: Ie42900d89afff40b8a12364b38de9854ed817275
Story: 2006574
Task: 39552
2020-05-28 10:26:31 +01:00
Mark Goddard
b05ba768e3 Move timezone configuration from ntp.yml to time.yml
Change-Id: I0814f62d25ebc9c6d007d2514d57f023308f54c4
Story: 2006574
Task: 39812
2020-05-28 10:25:51 +01:00
Mark Goddard
b9d76f6ef5 Remove support for CentOS 7 and Python 2
* Always use Python 3
* Drop code paths for CentOS 7
* Drop support for Yum
* Remove support for host NTP daemon, always use chrony
* Switch references from 'yum_install_epel' to 'dnf_install_epel'
* Remove overcloud host image workaround for tagged VLAN admin network
* Remove the kayobe.utils.yum_install function, which is unused

Change-Id: I368f6edafed9779658798fc342116b4c1b3ffd48
Story: 2006574
Task: 39481
2020-05-28 10:25:51 +01:00
Zuul
8fb3020827 Merge "Add ability to run playbooks before and after a kayobe command" 2020-05-27 17:19:53 +00:00
Will Szumski
e240a29a92 Add ability to run playbooks before and after a kayobe command
Sometimes there is a need to develop site specific playbooks. Currently,
it is necessary to manually invoke these at the right point during the
deployment. Adding the ability to automatically run these custom
playbooks will reduce the chance of running these playbooks at the wrong
point or forgetting to run them at all.

Change-Id: I1ae0f1f94665925326c8b1869dd75038f6f1b87d
Story: 2001663
Task: 12606
2020-05-26 14:16:02 +01:00
Zuul
1fd8f323c1 Merge "Add support for encrypted block devices" 2020-05-21 11:13:10 +00:00