neutron/neutron/tests/unit
Terry Wilson ab4dc5261e Remove run-time version checking for openvswitch features
The current method of checking openvswitch and kernel versions for
specific feature support is brittle, distro-specific and unsupportable.

This patch removes the runtime version checks and implements a test
script which allows testing specific neutron features or can test
that all features required by a specific configuration are available.

For example, to test VXLAN support in openvswitch, either:

  neutron-sanity-check --ovs_vxlan

or pass in the deployed configuration files with AGENT/tunnel_types
containing 'vxlan', like:

  neutron-sanity-check --config-file /etc/neutron/plugins/ml2.conf.ini

Deployment tools can then test that the required features exist without
relying on version numbers and without incurring a penalty every time
the agent is started.

Implements: blueprint remove-openvswitch-version-check
DocImpact
Change-Id: I5e822d97b9bece9242ba5ac8901aa0ca4f090cfe
2014-06-04 09:25:53 -05:00
..
agent Remove run-time version checking for openvswitch features 2014-06-04 09:25:53 -05:00
api Fix misleading error message about failed dhcp notifications 2014-03-17 16:32:44 -07:00
bigswitch Big Switch: Check source_address attribute exists 2014-05-08 16:34:23 -07:00
brocade Neutron network delete fails with brocade plugin 2013-09-24 01:32:00 +00:00
cisco Fix non-existent 'assert' calls to mocks 2014-05-20 22:07:58 -07:00
db Merge "Unit test cases for quota_db.py" 2014-05-19 15:52:05 +00:00
embrane Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
extensions Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
hyperv Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
ibm Merge "Fixes bugs for requests sent to SDN-VE controller" 2014-05-27 00:07:11 +00:00
linuxbridge Fix non-existent 'assert' calls to mocks 2014-05-20 22:07:58 -07:00
metaplugin Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
midonet Fix non-existent 'assert' calls to mocks 2014-05-20 22:07:58 -07:00
ml2 Merge "Add physical_network to binding:vif_details dictionary" 2014-05-26 17:41:48 +00:00
mlnx Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
nec Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
notifiers Replace loopingcall in notifier with a delayed send 2014-04-22 16:22:02 +00:00
nuage Extraroute extension support for nuage plugin 2014-05-22 17:35:55 -07:00
ofagent Merge "OFAgent: Fixing lost vlan ids on interfaces" 2014-05-28 12:25:06 +00:00
oneconvergence Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
openvswitch Remove run-time version checking for openvswitch features 2014-06-04 09:25:53 -05:00
plumgrid Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
ryu Fix H302 violations in plugins package 2014-05-04 12:40:05 +02:00
services Disallow regular user to update firewall's shared attribute 2014-05-28 17:37:17 +04:00
vmware Merge "NSX: allow net-migration only in combined mode" 2014-05-22 19:51:20 +00:00
__init__.py Update lockutils and fixture in openstack.common 2014-01-09 15:59:10 +04:00
_test_extension_portbindings.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
_test_rootwrap_exec.py
database_stubs.py Use built-in print() instead of print statement 2013-09-21 07:30:33 -07:00
dummy_plugin.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
extension_stubs.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_agent_config.py
test_agent_ext_plugin.py Reschedule router if new external gateway is on other network 2014-04-10 15:24:14 +04:00
test_agent_linux_utils.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_agent_netns_cleanup.py fixes broken neutron-netns-cleanup 2014-04-02 13:37:24 +00:00
test_agent_ovs_cleanup.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_agent_rpc.py Add l2 population base classes 2013-09-12 01:06:51 +02:00
test_api_api_common.py
test_api_v2.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_api_v2_extension.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_api_v2_resource.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
test_attributes.py Merge "Fix _validate_mac_address method" 2014-04-08 06:05:09 +00:00
test_auth.py Return request-id in API response 2014-02-10 04:58:38 +09:00
test_common_log.py Make neutron.common.log.log print module path 2013-09-07 02:10:57 +09:00
test_common_utils.py Common decorator for caching methods 2014-05-22 13:17:51 +02:00
test_config.py Utilizes assertIsNone and assertIsNotNone 2013-10-23 10:59:16 +08:00
test_db_migration.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_db_plugin.py Disallow regular user to update firewall's shared attribute 2014-05-28 17:37:17 +04:00
test_db_rpc_base.py Avoid long transaction in plugin.delete_ports() 2014-03-16 00:19:51 +09:00
test_debug_commands.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_dhcp_agent.py Fix KeyError exception while updating dhcp port 2014-05-28 11:46:13 -07:00
test_dhcp_scheduler.py Fix DetachedInstanceError for Agent instance 2014-02-27 14:48:11 +00:00
test_extension_allowedaddresspairs.py Allowed Addresspairs: Removing check for overlap with fixed ips 2014-05-21 18:41:55 +00:00
test_extension_ext_gw_mode.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_extension_ext_net.py Fix for multiple misspelled words 2014-05-23 17:07:56 -07:00
test_extension_extended_attribute.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_extension_extradhcpopts.py extra_dhcp_opt add checks for empty strings 2013-12-13 08:40:28 -07:00
test_extension_extraroute.py tests/unit: clean up notification driver 2014-03-20 11:42:59 +09:00
test_extension_firewall.py tests/service: consolidate setUp/tearDown logic 2014-02-25 10:33:56 +09:00
test_extension_pnet.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_extension_portsecurity.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_extension_security_group.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_extensions.py Fix issubclass() hook behavior in PluginInterface 2014-05-12 21:59:12 +03:00
test_hacking.py Add missing translation support 2014-05-19 12:16:56 +02:00
test_iptables_firewall.py Allow DHCPv6 solicit from VM 2014-05-06 18:17:46 +08:00
test_iptables_manager.py Log iptables rules when they fail to apply 2014-05-20 20:42:17 -07:00
test_ipv6.py Calculate stateless IPv6 address 2014-03-17 15:48:46 -04:00
test_l3_agent.py Merge "Install SNAT rules for ipv4 only" 2014-05-28 03:23:23 +00:00
test_l3_plugin.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_l3_schedulers.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
test_linux_daemon.py Make pid file locking non-blocking 2014-05-21 13:29:01 -07:00
test_linux_dhcp.py Support 'infinite' dhcp_lease_duration 2014-05-28 07:33:20 -06:00
test_linux_external_process.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_linux_interface.py Merge "Set onlink routes for all subnets on an external network" 2014-05-28 01:11:29 +00:00
test_linux_ip_lib.py ip-lib : use "ip neigh replace" instead of "ip neigh add" 2014-04-22 15:37:24 +02:00
test_metadata_agent.py Metadata agent caches networks for routers 2014-05-22 13:19:13 +02:00
test_metadata_namespace_proxy.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_neutron_context.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_neutron_manager.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_policy.py Perform policy checks only once on list responses 2014-05-06 03:52:29 -07:00
test_post_mortem_debug.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_provider_configuration.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
test_quota_ext.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_routerserviceinsertion.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_security_groups_rpc.py Allow DHCPv6 solicit from VM 2014-05-06 18:17:46 +08:00
test_servicetype.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_wsgi.py Fix H302 violations in db package and services 2014-04-22 15:31:00 +02:00
testlib_api.py add portbinding host into vip port 2013-09-25 14:41:31 +08:00