Slawek Kaplonski 3a5d5a3bb7 Switch ovn devstack jobs to be ovs now
With [1] default Neutron backend set by Devstack is changed to OVN.
So now most of the Tobiko jobs are running on the Neutron with ML2/OVN
backend.
Jobs which were before "-ovn" jobs are now changed to the "-ovs" jobs
and runs ML2/OVS backend in Neutron.

Additionally this patch switched devstack-tobiko-gate-octavia job to be
run with ML2/OVS backend in Neutron.

Jobs devstack-tobiko-faults and devstack-tobiko-gate-multinode are
for now explicitly set to be run on ML2/OVS backend as some tests are
failing in those multinode jobs while running on OVN and that needs
further investigation.

[1] https://review.opendev.org/c/openstack/devstack/+/791436

Change-Id: Iefc255a33d3da509b31d93f13c771357d2ef5fa7
2021-05-28 09:07:01 +02:00

258 lines
8.1 KiB
YAML

---
- job:
name: devstack-tobiko
parent: devstack
abstract: true
description: |
Base Devstack Tobiko Plugin job.
This job provides the base for both the single and multi-node
test setup. To run a multi-node test inherit from devstack-tobiko
job and set the nodeset to a multi-node one.
required-projects:
- openstack/devstack-gate
- openstack/heat
- openstack/neutron
- openstack/requirements
- x/devstack-plugin-tobiko
- x/tobiko
roles:
- zuul: x/tobiko
timeout: 10800
vars:
configure_swap_size: 8192
devstack_localrc:
MULTI_HOST: 0
LOG_COLOR: false
NETWORK_API_EXTENSIONS: >-
address-scope,agent,allowed-address-pairs,auto-allocated-topology,
availability_zone,binding,default-subnetpools,
dns-domain-ports,dns-integration,dvr,empty-string-filtering,
ext-gw-mode,external-net,extra_dhcp_opt,extraroute,filter-validation,
fip-port-details,flavors,ip-substring-filtering,l3-flavors,l3-ha,
logging,metering,multi-provider,net-mtu,
net-mtu-writable,network-ip-availability,network_availability_zone,
pagination,port-security,project-id,provider,qos,
qos-bw-minimum-ingress,qos-fip,quotas,quota_details,rbac-policies,
router,router_availability_zone,security-group,
port-mac-address-regenerate,port-security-groups-filtering,
segment,service-type,sorting,standard-attr-description,
standard-attr-revisions,standard-attr-segment,
standard-attr-timestamp,standard-attr-tag,subnet_allocation,
trunk,trunk-details,uplink-status-propagation
TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS:
"{{ ipv4_dns_nameservers | join(',') }}"
TOBIKO_NEUTRON_IPV6_DNS_NAMESERVERS:
"{{ ipv6_dns_nameservers | join(',') }}"
devstack_plugins:
heat: https://opendev.org/openstack/heat.git
neutron: https://opendev.org/openstack/neutron.git
devstack-plugin-tobiko: https://opendev.org/x/devstack-plugin-tobiko.git
devstack_services:
heat: true
h-api: true
h-api-cfn: true
h-eng: true
n-cpu: true
# NOTE(slaweq): we need to enable it as "legacy" service because for
# Fedora job it has to be disabled. If it would be disabled as
# "neutron-dns: false" then it devstack would consider that
# neutron-legacy isn't used and would not load proper files
q-dns: true
# see bug #1860753 (https://bugs.launchpad.net/devstack/+bug/1860753)
memory_tracker: false
neutron-qos: true
neutron-segments: true
neutron-trunk: true
neutron-uplink-status-propagation: true
tempest: false
tls-proxy: false
# NOTE(slaweq): Swift can't run with python3 currently
s-account: false
s-container: false
s-object: false
s-proxy: false
# NOTE(slaweq): without Swift, c-bak cannot run (in the Gate at least)
c-bak: false
devstack_local_conf:
post-config:
$NEUTRON_CONF:
QUOTAS:
quota_router: 100
quota_floatingip: 500
quota_security_group: 100
quota_security_group_rule: 1000
$NOVA_CONF:
quota:
instances: -1
ipv4_dns_nameservers:
- 1.0.0.1
- 8.8.8.8
ipv6_dns_nameservers: []
zuul_copy_output:
'{{ stage_dir }}/stackviz': logs
"{{ devstack_base_dir }}/data/ovn": "logs"
"{{ devstack_base_dir }}/data/ovs": "logs"
"{{ devstack_log_dir }}/ovsdb-server-nb.log": "logs"
"{{ devstack_log_dir }}/ovsdb-server-sb.log": "logs"
extensions_to_txt:
conf: true
log: true
yaml: true
yml: true
test_log_debug: true
test_case_timeout: 1800
requirements_dir: >-
{{ ansible_user_dir }}/src/opendev.org/openstack/requirements
upper_constraints_file: '{{ requirements_dir }}/upper-constraints.txt'
pre-run: playbooks/devstack/pre.yaml
run: playbooks/devstack/run.yaml
post-run: playbooks/devstack/post.yaml
irrelevant-files:
- ^.*\.rst$
- ^doc/
- ^infrared_plugin/
- ^releasenotes/
- ^report/
- ^tobiko/tests/unit/
- job: &DEVSTACK_TOBIKO_GATE_JOB
name: devstack-tobiko-gate
parent: devstack-tobiko
description: |
Tobiko devstack job for gating Tobiko changes.
nodeset: openstack-single-node-focal
voting: true
vars:
test_workflow: gate
irrelevant-files:
- ^.*\.rst$
- ^doc/
- ^infrared_plugin/
- ^releasenotes/
- ^report/
- job:
name: devstack-tobiko-gate-centos
parent: devstack-tobiko-gate
nodeset: devstack-tobiko-centos
voting: false
- job:
name: devstack-tobiko-multinode
parent: devstack-tobiko
abstract: true
description: Base DevStack Tobiko job with multinode.
pre-run: playbooks/multinode-setup.yaml
vars:
topology: multinode
devstack_localrc:
ENABLE_FILE_INJECTION: true
MULTI_HOST: 1
# NOTE(slaweq): remove those lines when switching to the default
# (ML2/OVN) backend in Neutron
Q_AGENT: openvswitch
Q_ML2_TENANT_NETWORK_TYPE: vxlan
Q_ML2_PLUGIN_MECHANISM_DRIVERS: openvswitch
devstack_local_conf:
post-config:
/$NEUTRON_CORE_PLUGIN_CONF:
AGENT:
tunnel_types: gre,vxlan
devstack_services:
n-cpu: false
neutron-qos: true
# Disable OVN services
# It's temporary workaround until test
# OvnControllerTest::test_restart_ovn_controller test
# will be fixed in multinode job running on the OVN backend
ovn-controller: false
ovn-northd: false
ovs-vswitchd: false
ovsdb-server: false
q-ovn-metadata-agent: false
# Neutron services
q-agt: true
q-dhcp: true
q-l3: true
q-meta: true
group-vars:
subnode:
devstack_localrc:
# NOTE(slaweq): remove those lines when switching to the default
# (ML2/OVN) backend in Neutron
Q_AGENT: openvswitch
devstack_local_conf:
post-config:
/$NEUTRON_CORE_PLUGIN_CONF:
AGENT:
tunnel_types: gre,vxlan
devstack_services:
c-vol: true
dstat: true
heat: false
h-api: false
h-api-cfn: false
h-eng: false
n-api-meta: true
placement-client: true
n-cpu: true
# Disable OVN services
# It's temporary workaround until test
# OvnControllerTest::test_restart_ovn_controller test
# will be fixed in multinode job running on the OVN backend
ovn-controller: false
ovn-northd: false
ovs-vswitchd: false
ovsdb-server: false
q-ovn-metadata-agent: false
# Neutron services
q-agt: true
q-l3: true
q-meta: true
neutron-qos: true
# see bug #1860753 (https://bugs.launchpad.net/devstack/+bug/1860753)
memory_tracker: false
tls-proxy: false
- job:
<<: *DEVSTACK_TOBIKO_GATE_JOB
name: devstack-tobiko-gate-multinode
parent: devstack-tobiko-multinode
description: |
Tobiko devstack job for gating Tobiko changes.
nodeset: devstack-tobiko-multinode-ubuntu
voting: true
- job:
name: devstack-tobiko-faults
parent: devstack-tobiko-multinode
nodeset: devstack-tobiko-multinode-ubuntu
voting: true
description: |
Base Tobiko devstack job to execute scenario+faults+scenario test cases.
vars:
test_workflow: faults
irrelevant-files:
- ^.*\.rst$
- ^doc/
- ^infrared_plugin/
- ^releasenotes/
- ^report/
- ^tobiko/tests/functional/
- ^tobiko/tests/unit/
- job:
name: devstack-tobiko-faults-centos
parent: devstack-tobiko-faults
nodeset: devstack-tobiko-multinode-centos
voting: false