10 Commits

Author SHA1 Message Date
Mark Goddard
ced8a4a528 Support linux bridge in addition to OVS
While OVS was used initially due to availability of a
networking-generic-switch driver for it, Linux bridge can be useful for
environments where OVS is not available.

This is configured via bridge_type variable. It defaults to
'openvswitch', but may be set to 'linuxbridge'.

Change-Id: I750a73cebc743edcbcd8c23c67e4920d0058bead
2020-03-13 11:12:37 +00:00
Mark Goddard
042fcb4754 CentOS 8 support
* Support Python 3
* Use Open vSwitch from Delorean master in CI
* Add a tenks-deploy-teardown-centos8 CI job

Depends-On: https://github.com/stackhpc/ansible-role-libvirt-host/pull/26
Depends-On: https://github.com/stackhpc/ansible-role-libvirt-vm/pull/53

Change-Id: Ibd504389523bf1197aa5f7c3e9ef6cad8966ddc2
2020-03-11 17:05:21 +00:00
Mark Goddard
29ce8dd0bd Use Python 2 on CentOS 7
Python 3, CentOS 7 and SELinux do not mix well.

Change-Id: I8a179aad45b89d7eee0716abd5e7428dc51e8b11
2020-02-27 15:47:20 +00:00
Mark Goddard
9dac363628 CI: Use python3 in deploy-teardown jobs
This change modifies the deploy-teardown jobs to use python 3 in the
local virtualenv in which ansible is installed. It also switches to use
python 3  on Ubuntu remote hosts via ansible_python_interpreter. Python
3 support for CentOS remote hosts will be added with CentOS 8 support.

Depends-On: https://github.com/stackhpc/ansible-role-libvirt-host/pull/19
Change-Id: I1e117525a49c1732c70a3f5925b1b88a3a865e11
2019-11-25 10:44:46 +00:00
Will Szumski
9c126332be Do not install Open vSwitch
Open vSwitch packages are no longer present in the default, or EPEL
repoistories. This means there is no clean way to install Open vSwitch
on CentOS. Instead, we should leave it up the user to decide how to
install it.

Change-Id: Ie56296230c9840e542ac70d96dc68c285d198ad6
2019-10-21 16:59:06 +01:00
Will Szumski
871d3cfd88 Use zuul checkout for stackhpc-libvirt roles
This allows us to use the Depends-On: syntax in future commits.

Depends-On: https://review.opendev.org/#/c/618511/
Depends-On: https://github.com/stackhpc/ansible-role-libvirt-vm/pull/29
Change-Id: I4007edf0939d21115b0e2699857a4593cae30b74
2019-05-07 16:17:24 +00:00
caoyuan
d7142c04d2 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I8241e8207c5caee7cb9c479bcca6196fedbc7fa3
2019-04-24 14:21:48 +02:00
Mark Goddard
3e8fecd33e Fix Zuul galaxy install task
ERROR! 'chdir' is not a valid attribute for a Task

Change-Id: Ib53bdf4af3e401df40700ae6537697e77521f883
2019-03-27 16:54:24 +00:00
Mark Goddard
6a2fb44a78 Fix deploy and teardown without node enrolment
If the ironic_config field is not present in a node definition, then
that node should not be registered with ironic. In this case we also
don't need to query glance for images or wait for resources to appear
in placement.

If nova_flavors is empty, we do not need to register flavors, so no need
to install the client or check for OS_USERNAME.

Also fixes an issue in the action plugin where it would fail if
ironic_config field is not present in a node definition.

Finally, in CI deploy/teardown tests, rather than skipping tasks, we now
remove the ironic_config field from the node definition, and set
nova_flavors to empty, such that we exercise these code paths.

Change-Id: I29b42665f1609c99e80f12ab6f3815d0e0918dae
Story: 2004412
Task: 28056
2018-11-22 19:20:59 +00:00
Will Szumski
b4bc89dfff Add a zuul job to deploy and teardown a tenks cluster
This stops short of enrolling the nodes in Ironic, but provides
some coverage of the earlier stages.

Change-Id: I48a0bafaff1555caea0a7d216ac6f6a4f11c2b55
Depends-On: https://review.openstack.org/#/c/615544/
Depends-On: https://review.openstack.org/#/c/616510/
Depends-On: https://review.openstack.org/#/c/616501/
2018-11-08 16:21:21 +00:00