瀏覽代碼

Enable tempest DNS tests

This patch is enabling the tempest DNS tests in our gate which was
previously being skipped.

The "dns-integration" integration is being enabled as a supported
extension and q-dns has been enabled by default in gate.

The following tests are now expect to run in gate:

neutron_tempest_plugin.api.test_networks.NetworksTestJSON.test_create_update_network_dns_domain
neutron_tempest_plugin.api.test_ports.PortsTestJSON.test_create_update_port_with_dns_name
neutron_tempest_plugin.api.test_ports.PortsTestJSON.test_create_update_port_with_no_dns_name

After OVS 2.12 release with merged patch [1] this test should be enabled:
neutron_tempest_plugin.scenario.test_internal_dns.InternalDNSTest.test_dns_name

[1] https://patchwork.ozlabs.org/patch/1102717/

Co-Authored-By: Maciej Józefczyk <mjozefcz@redhat.com>

Change-Id: I828d04dca62dfd913460048694d49fdba3956001
tags/7.0.0.0b1
Lucas Alvares Gomes 1 年之前
父節點
當前提交
349f68e7f3

+ 4
- 0
devstack/lib/networking-ovn 查看文件

@@ -255,6 +255,10 @@ function configure_ovn_plugin {
else
populate_ml2_config /$Q_PLUGIN_CONF_FILE ovn ovn_metadata_enabled=False
fi

if is_service_enabled q-dns neutron-dns ; then
iniset $NEUTRON_CONF DEFAULT dns_domain ovngate.local
fi
fi

if is_service_enabled q-dhcp ; then

+ 1
- 0
devstack/local.conf.sample 查看文件

@@ -40,6 +40,7 @@ disable_service q-meta
# Enable services, these services depend on neutron plugin.
enable_plugin neutron https://opendev.org/openstack/neutron
enable_service q-trunk
enable_service q-dns
#enable_service q-qos

# Enable neutron tempest plugin tests

+ 1
- 0
devstack/override-defaults 查看文件

@@ -4,6 +4,7 @@ Q_ML2_PLUGIN_MECHANISM_DRIVERS=${Q_ML2_PLUGIN_MECHANISM_DRIVERS:-ovn,logger}
Q_ML2_PLUGIN_TYPE_DRIVERS=${Q_ML2_PLUGIN_TYPE_DRIVERS:-local,flat,vlan,geneve}
Q_ML2_TENANT_NETWORK_TYPE=${Q_ML2_TENANT_NETWORK_TYPE:-"geneve"}
Q_ML2_PLUGIN_GENEVE_TYPE_OPTIONS=${Q_ML2_PLUGIN_GENEVE_TYPE_OPTIONS:-"vni_ranges=1:65536"}
Q_ML2_PLUGIN_EXT_DRIVERS=${Q_ML2_PLUGIN_EXT_DRIVERS:-port_security,dns}
ML2_L3_PLUGIN="networking_ovn.l3.l3_ovn.OVNL3RouterPlugin,trunk"

# This function is invoked by DevStack's Neutron plugin setup

+ 7
- 0
doc/source/admin/features.rst 查看文件

@@ -39,6 +39,11 @@ services:
The networking-ovn driver does support VLAN tenant networks when used
with OVN version 2.11 (or higher).

* DNS

Native implementation. Since the version 2.8 OVN contains a built-in
DNS implementation.


The following Neutron API extensions are supported with OVN:

@@ -93,3 +98,5 @@ The following Neutron API extensions are supported with OVN:
+----------------------------------+---------------------------+
| Time Stamp Fields | standard-attr-timestamp |
+----------------------------------+---------------------------+
| Domain Name System (DNS) | dns_integration |
+----------------------------------+---------------------------+

+ 1
- 0
networking_ovn/common/extensions.py 查看文件

@@ -34,6 +34,7 @@ ML2_SUPPORTED_API_EXTENSIONS_OVN_L3 = [
'pagination',
'sorting',
'project-id',
'dns-integration',
]
ML2_SUPPORTED_API_EXTENSIONS = [
'address-scope',

+ 2
- 2
networking_ovn/common/ovn_client.py 查看文件

@@ -1947,7 +1947,7 @@ class OVNClient(object):
for old_hostname, old_ips in old_records.items():
if records_to_add.get(old_hostname) != old_ips:
txn.add(self._nb_idl.dns_remove_record(
ls_dns_record.uuid, old_hostname))
ls_dns_record.uuid, old_hostname, if_exists=True))

for hostname, ips in records_to_add.items():
if ls_dns_record.records.get(hostname) != ips:
@@ -1980,4 +1980,4 @@ class OVNClient(object):
for hostname in hostnames:
if ls_dns_record.records.get(hostname):
txn.add(self._nb_idl.dns_remove_record(
ls_dns_record.uuid, hostname))
ls_dns_record.uuid, hostname, if_exists=True))

+ 4
- 0
zuul.d/networking-ovn-jobs.yaml 查看文件

@@ -23,6 +23,9 @@
vars:
tox_envlist: all-plugin
tempest_test_regex: "^(?!.*(?:.*\\[.*slow.*\\])|(?:tempest.api.network.admin.test_quotas.QuotasTest.test_lbaas_quotas.*)|(?:tempest.api.network.test_load_balancer.*)|(?:tempest.scenario.test_load_balancer.*)|(?:tempest.api.network.admin.test_load_balancer.*)|(?:tempest.api.network.admin.test_lbaas.*)|(?:tempest.api.network.test_fwaas_extensions.*)|(?:tempest.api.network.test_metering_extensions.*)|(?:tempest.thirdparty.boto.test_s3.*)|(?:tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_port_security_macspoofing_port)|(?:tempest.api.identity*)|(?:tempest.api.image*)|(?:tempest.api.volume*)|(?:tempest.api.compute.images*)|(?:tempest.api.compute.keypairs*)|(?:tempest.api.compute.certificates*)|(?:tempest.api.compute.flavors*)|(?:tempest.api.compute.test_quotas*)|(?:tempest.api.compute.test_versions*)|(?:tempest.api.compute.volumes*)|(?:tempest.api.compute.admin.test_flavor*)|(?:tempest.api.compute.admin.test_volume*)|(?:tempest.api.compute.admin.test_hypervisor*)|(?:tempest.api.compute.admin.test_aggregate*)|(?:tempest.api.compute.admin.test_quota*)|(?:tempest.scenario.test_volume*))((^neutron_tempest_plugin.api)|(^neutron_tempest_plugin.scenario)|(tempest.(api|scenario|thirdparty))).*$"
# TODO(mjozefcz): Remove this blacklist when OVS 2.12 will be released and
# https://patchwork.ozlabs.org/patch/1102717/ merged.
tempest_black_regex: "(^neutron_tempest_plugin.scenario.test_internal_dns.InternalDNSTest)"
tempest_concurrency: 2
devstack_localrc:
Q_USE_PROVIDERNET_FOR_PUBLIC: true
@@ -67,6 +70,7 @@
ovsdb-server: true
placement-api: true
q-svc: true
q-dns: true
c-bak: false
etcd: false
peakmem_tracker: false

Loading…
取消
儲存