6 Commits

Author SHA1 Message Date
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
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