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
This commit is contained in:
Mark Goddard 2019-11-25 10:57:54 +00:00
parent 512174a828
commit 042fcb4754
5 changed files with 36 additions and 6 deletions

View File

@ -4,7 +4,7 @@
physnet_mappings: {} physnet_mappings: {}
system_requirements: system_requirements:
- python-virtualenv - "python{% if ansible_python.version.major == 3 %}3{% endif %}-virtualenv"
# Naming scheme for bridges created by tenks for physical networks is # Naming scheme for bridges created by tenks for physical networks is
# {{ bridge_prefix + i }}, where `i` is the index of the physical network in # {{ bridge_prefix + i }}, where `i` is the index of the physical network in

View File

@ -87,7 +87,7 @@
--{{ iface }}-interface {{ node.ironic_config[iface + '_interface'] }} --{{ iface }}-interface {{ node.ironic_config[iface + '_interface'] }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for key, val in properties.iteritems() %} {% for key, val in properties.items() %}
--property '{{ key }}={{ val }}' --property '{{ key }}={{ val }}'
{% endfor %} {% endfor %}
vars: vars:

View File

@ -28,7 +28,30 @@
- name: Install Open vSwitch - name: Install Open vSwitch
include_role: include_role:
name: fkautz.openvswitch-install name: fkautz.openvswitch-install
when: ansible_os_family == "RedHat" when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version(8, '<')
- block:
- name: Install the Delorean repositories
get_url:
url: "{{ item }}"
dest: /etc/yum.repos.d/
with_items:
- https://trunk.rdoproject.org/centos8-master/consistent/delorean.repo
- https://trunk.rdoproject.org/centos8-master/delorean-deps.repo
- name: Install Open vSwitch
package:
name: openvswitch
- name: Start openvswitch service
service:
name: openvswitch
state: started
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version(8, '>=')
- block: - block:
- name: Install packages - name: Install packages

View File

@ -8,13 +8,18 @@
tox_envlist: alint tox_envlist: alint
- job: - job:
name: tenks-deploy-teardown-centos name: tenks-deploy-teardown-centos7
parent: tenks-deploy-teardown-base parent: tenks-deploy-teardown-base
nodeset: centos-7 nodeset: centos-7
required-projects: required-projects:
- name: openstack/requirements - name: openstack/requirements
override-checkout: stable/train override-checkout: stable/train
- job:
name: tenks-deploy-teardown-centos8
parent: tenks-deploy-teardown-base
nodeset: centos-8
- job: - job:
name: tenks-deploy-teardown-ubuntu name: tenks-deploy-teardown-ubuntu
parent: tenks-deploy-teardown-base parent: tenks-deploy-teardown-base

View File

@ -9,7 +9,8 @@
check: check:
jobs: jobs:
- tenks-tox-ansible-lint - tenks-tox-ansible-lint
- tenks-deploy-teardown-centos - tenks-deploy-teardown-centos7
- tenks-deploy-teardown-centos8
- tenks-deploy-teardown-ubuntu - tenks-deploy-teardown-ubuntu
# Until we have ironic jobs using tenks, gate on the kayobe overcloud # Until we have ironic jobs using tenks, gate on the kayobe overcloud
# deploy job, which uses tenks to test bare metal compute provisioning. # deploy job, which uses tenks to test bare metal compute provisioning.
@ -19,7 +20,8 @@
queue: tenks queue: tenks
jobs: jobs:
- tenks-tox-ansible-lint - tenks-tox-ansible-lint
- tenks-deploy-teardown-centos - tenks-deploy-teardown-centos7
- tenks-deploy-teardown-centos8
- tenks-deploy-teardown-ubuntu - tenks-deploy-teardown-ubuntu
# Until we have ironic jobs using tenks, gate on the kayobe overcloud # Until we have ironic jobs using tenks, gate on the kayobe overcloud
# deploy job, which uses tenks to test bare metal compute provisioning. # deploy job, which uses tenks to test bare metal compute provisioning.