1683 Commits

Author SHA1 Message Date
Zuul
620b4e61f7 Merge "Remove support for deprecated Yum variables" 2020-09-17 20:47:06 +00:00
Mark Goddard
26cea075f2 Remove support for deprecated Yum variables
The variables in yum.yml and yum-cron.yml were deprecated in Ussuri.
This patch removes them, and updates the defaults in dnf.yml.

Story: 2008160
Task: 40906

Change-Id: I97cc98dd2ff726e5885fefcab17f17796d9fd453
2020-09-17 14:32:28 +00:00
Zuul
78b272eab0 Merge "Avoid setting IPADDR=0.0.0.0" 2020-09-17 13:46:44 +00:00
Pierre Riteau
7d4d48b1c4 Update shebang for Python 3 script
The feature-flags.py script uses pathlib which is only supported in
Python 3. Update shebang to ensure it is run with the correct
interpreter.

Change-Id: I69ea0c90f68909399709626bddfc418e9df31acc
2020-09-16 15:54:13 +02:00
Pierre Riteau
2606c23812 Avoid setting IPADDR=0.0.0.0
Configuring network interfaces with IPADDR=0.0.0.0 may fail with:
Error, some other host (FF:FF:FF:FF:FF:FF) already uses address 0.0.0.0.

Change-Id: I908dc3320cb1dce7a040a1dbfeac414ace22d6e3
Co-Authored-By: Bartosz Bezak <bartosz@stackhpc.com>
Story: 2007900
Task: 40289
2020-09-16 15:29:14 +02:00
Zuul
84f98f4c04 Merge "docs: Move getting started to a separate page" 2020-09-16 11:16:22 +00:00
Michal Nasiadka
1094358033 Move dnf.yml earlier in host configure workflow
Since kayobe is installing python3-pip in pip.yml - and dnf proxy is set
later, it fails on no-direct-internet systems.

Change-Id: I93f29ec4334829bfec107ba7aa6df05a47d2ab96
Story: 2008067
Task: 40750
Depends-On: https://review.opendev.org/748587
Depends-On: https://review.opendev.org/750804
2020-09-11 19:59:02 +00:00
Pierre Riteau
7b60585134 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Ignore bashate failure on one-liner loops.

Add pcre devel packages to fix failing pep8 jobs.

Change-Id: I3442174b378cc6e361550fcb9b32a62f61fa7972
2020-09-11 15:44:17 +02:00
Zuul
d3f01bdfd1 Merge "docs: Move configuration reference to subpath" 2020-09-01 10:09:26 +00:00
Zuul
cfc0a1a43b Merge "Performance: refactor pip configuration" 2020-08-31 18:04:14 +00:00
Mark Goddard
354113c20b docs: Move configuration reference to subpath
This allows us to add configuration scenarios.

Change-Id: Id636f78c61237fb27fa65fa3d4b3fc1a4cf0ba6a
Story: 2004360
Task: 40777
2020-08-28 08:28:40 +01:00
Mark Goddard
731957c58a docs: Move getting started to a separate page
People often seem to miss this useful information. Let's make it the
first page of the docs, rather than being buried in the index.

This was agreed at the Kayobe docs review call.

Change-Id: If464e2dbaafaaeb69029c4f4d81717c72e91dd6c
Story: 2008079
Task: 40773
2020-08-27 19:05:16 +01:00
Zuul
e92724feea Merge "Remove XenAPI integration" 2020-08-26 12:44:59 +00:00
Michal Nasiadka
49885a2b8d Install bash-completion in dev-tools
bash-completion is useful to tab-complete commands, especially docker container
names - this change adds it to default packages list for dev-tools role.

Change-Id: Ic630e0cfa059969046194b9761b9b5e07978f202
2020-08-25 12:59:23 +02:00
Mark Goddard
43650cb966 Performance: refactor pip configuration
Currently we perform pip configuration for a list of users, including
pip_conf.yml in a loop for each user. It is slightly more efficient to
loop over each task, since individual tasks have a higher overhead than
loops.

This change refactors the code into multiple loops, with a single
include. We keep the include to allow skipping the tasks when pip
configuration is not required.

Change-Id: I698d38613f45bd03a2e51572f6e6fb69e934f614
Story: 2007993
Task: 40719
2020-08-24 10:29:02 +01:00
zhoulinhui
597263e804 Remove XenAPI integration
the XenAPI is removed from kolla-ansible[1], this PS to remove it from kayobe

[1]: 60e03d7bf3

Change-Id: I3de408d384141eee1a088d222dca7d583251a298
2020-08-22 05:29:06 +00:00
Zuul
faf03dbf35 Merge "Add support for custom Aodh configuration" 2020-08-22 00:46:57 +00:00
Zuul
cd834045c8 Merge "Make pip_index_url variable conditional" 2020-08-22 00:07:07 +00:00
Zuul
a0bdcdb309 Merge "Support setting ethtool options on network interfaces" 2020-08-21 21:07:25 +00:00
Pierre Riteau
878fe5728b Add support for custom Aodh configuration
Change-Id: I19ef5a46dccacc00db495993cc744938921996a1
Story: 2008019
Task: 40671
2020-08-21 20:54:21 +00:00
Bartosz Bezak
7113ae4617 Make pip_index_url variable conditional
Setting pip's proxy variable, operator needs to set also pip_index_url,
even when one wants to use default value of index_url.
This patch sets pip's index_url only when pip_index_url is not empty.

Change-Id: If435e9025f3d78364b229bbe4458f5f1e1ab49aa
2020-08-21 20:01:44 +00:00
Pierre Riteau
f40dde18df Fix ansible-lint after upgrade to 4.3.1
- Skip rule 106 which fails due to the hyphen in "kolla-openstack"
- Fix code failing "File permissions not mentioned" rule

Change-Id: I7ce8a591b4e1eeef749c439e1140ecfb74dcb40e
2020-08-21 14:48:07 +02:00
Pierre Riteau
a33ba678df Skip broken ansible-lint
See [1].

[1] https://github.com/ansible/ansible-lint/issues/969

Change-Id: I849d9b09e973316308e574c447a78868e93a5420
2020-08-19 13:30:55 +02:00
Pierre Riteau
ea4a507f04 Support setting ethtool options on network interfaces
Change-Id: I5650b8b489d5968b42526e45667dfc7fa6ad7b2f
Story: 2008020
Task: 40672
2020-08-17 16:35:11 +02:00
Pierre Riteau
f6f08df6b1 Block Ansible 2.9.12
Ansible 2.9.12 changed default permissions of created files to 600 [1].
This breaks kayobe because kolla-ansible generates admin-openrc.sh owned
by root:root with mode 0600, which kayobe fails to read to generate
public-openrc.sh.

Block only Ansible 2.9.12 as the next release should include a revert of
this change.

[1] https://github.com/ansible/ansible/issues/71200

Depends-On: https://review.opendev.org/746220

Change-Id: I3de408d384141eee1a088d222dca7d583251a297
Story: 2008011
Task: 40661
2020-08-13 20:30:30 +00:00
Zuul
dce3545efb Merge "Add support for custom Masakari configuration" 2020-08-07 18:14:39 +00:00
Zuul
80e0e671ba Merge "Docker registry TLS" 2020-08-06 12:14:48 +00:00
Mark Goddard
bc32529008 Add support for custom Masakari configuration
Change-Id: Ibcf12f4d80bd9744867688ba986cd59be82f3e5a
Story: 2007969
Task: 40470
2020-08-05 09:28:25 +01:00
Zuul
fd53039a00 Merge "Sync kolla-ansible inventory for Ussuri" 2020-07-28 22:44:55 +00:00
Zuul
30ad2ff968 Merge "Support configuration of Bifrost's Ironic extra kernel parameters" 2020-07-28 17:10:00 +00:00
Zuul
96dfbe4483 Merge "Add support for custom options in static routes" 2020-07-28 16:50:28 +00:00
Zuul
a2bdcc0cc7 Merge "Fix network configuration when no eth0 interface is present" 2020-07-28 16:50:23 +00:00
Zuul
e495b172fd Merge "Update hook link instructions to use relative path" 2020-07-28 14:50:47 +00:00
Mark Goddard
411e148450 Docker registry TLS
Adds support for enabling TLS on the Docker registry.

Change-Id: Idac6a1dfb17f4a22b3043531d1181a5585cafe6a
Story: 2007952
Task: 40428
2020-07-24 09:11:45 +01:00
Pierre Riteau
271bc72dae Set endpoint type variables to publicURL in public-openrc.sh
Change-Id: I9d7f0bf7daa6d1abe31de0e76a508820ed123c28
Story: 2007950
Task: 40426
2020-07-23 15:43:31 +02:00
Zuul
97373c0519 Merge "Fix network configuration of network hosts" 2020-07-22 20:36:22 +00:00
Zuul
8e444d9f8e Merge "Update seed VM image to CentOS 8.2" 2020-07-21 21:54:34 +00:00
Mark Goddard
f618a2c4b8 Update seed VM image to CentOS 8.2
If using a CentOS 8.2 bifrost_deploy image on a CentOS 8.1 seed host, we
may see an error such as the following:

    TASK [Ensure the overcloud host image has bogus name server entries removed]
    fatal: [seed]: FAILED!

Running virt-customize with more debug in the Bifrost container, we see
this output:

qemu-kvm: error: failed to set MSR 0x48e to 0xfff9fffe04006172
qemu-kvm: /builddir/build/BUILD/qemu-4.2.0/target/i386/kvm.c:2695: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

This appears to be an incompatibility between qemu/libvirt in CentOS 8.1
and 8.2.

This change fixes the issue for new deployments by updating the seed VM
image to CentOS 8.2.  Existing deployments will need to update packages
on the seed host to match the bifrost_deploy container.

Change-Id: Icf64b15e58c84f31a11cdefcdb79558b58737da1
Story: 2007942
Task: 40407
2020-07-21 14:16:21 +01:00
Mark Goddard
936f393d63 Sync kolla-ansible inventory for Ussuri
Backport: Ussuri

A few services were added at the end of the release which we missed.

Change-Id: Icc5d1e22a1e0f3b5a9cc23a7c756335b4d4a13c5
2020-07-20 14:56:59 +01:00
Mark Goddard
f5816d791e Add common groups to kolla-ansible inventory
These groups were added to kolla-ansible in
I6a4676bf6efeebc61383ec7a406db07c7a868b2a. They are required for the
common services to be deployed.

Change-Id: Iaa0a8c851dac8b2a71a8c021435b26cc8c1998da
2020-07-20 14:52:26 +01:00
Zuul
2052b4b942 Merge "Add py38 package metadata" 2020-07-20 11:10:49 +00:00
Zuul
3a9c589666 Merge "Remove opendaylight support" 2020-07-15 17:04:55 +00:00
wu.chunyang
5e0ad3ad91 Add py38 package metadata
Change-Id: I7f757098211745671ec891fdd4e0b52dc1fe7602
2020-07-15 17:32:50 +08:00
Zuul
fed87a1e9d Merge "Allow to customise hardware inspection timeouts" 2020-07-14 10:01:11 +00:00
jacky06
3f6ffb9d83 Remove opendaylight support
It has been deprecated in Ussuri cycle.

Change-Id: I01da8af2255e2ac4751279db712292f9b862adad
2020-07-10 17:52:14 +00:00
Pierre Riteau
1a4f3ed23e Sync zookeeper feature flag with kolla-ansible
Change-Id: If78edb12d699a47c911d28afbb365230a3021c7b
2020-07-10 16:48:38 +00:00
Pierre Riteau
fa19513ed4 Update hook link instructions to use relative path
The original instructions used an absolute path for the symbolic link,
which would not be valid if the kayobe-config repository was cloned in a
different location.

Change-Id: Id595a12845f445203993fc6ed567e7f7f393742f
2020-07-10 17:42:58 +02:00
Pierre Riteau
ca648622b1 Fix network configuration when no eth0 interface is present
Change-Id: Idbdd494f9435d663564346fd0e0a053b656168c3
Story: 2007913
Task: 40316
2020-07-10 15:06:01 +02:00
Mark Goddard
2b86fd9945 Add support for custom options in static routes
Currently it is possible to set the CIDR, gateway and route table for
static routes. Other options cannot be set. This change adds support for
setting arbitrary options via an 'options' attribute in the route, which
should be a list of additional options to apply.

Depends on
https://github.com/michaelrigart/ansible-role-interfaces/pull/74.

Story: 2007835
Task: 40122

Change-Id: Ib27deac4ddf4976a571b192ee5d1b8ca57701916
2020-07-08 19:25:40 +02:00
jacky06
335ed05a5d Remove mongodb integration
more info: a6c97d7284

Depends-On: https://review.opendev.org/#/c/735030/
Change-Id: Ib94da2b14182ddc4157ca09066bd049c842fdf9c
2020-07-07 23:38:12 +08:00