]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove run-time version checking for openvswitch features
authorTerry Wilson <twilson@redhat.com>
Thu, 17 Apr 2014 01:48:04 +0000 (21:48 -0400)
committerTerry Wilson <twilson@redhat.com>
Wed, 4 Jun 2014 14:25:53 +0000 (09:25 -0500)
commitab4dc5261eea8662adabd0c326ab6297e6556b32
tree5ef3d1b723619fe4bf457d09f7ce80dd80aae565
parentb33ecb3d1617e61e7ff1bb84d774d2a14dc31a54
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
14 files changed:
neutron/agent/linux/ovs_lib.py
neutron/cmd/sanity/__init__.py [new file with mode: 0644]
neutron/cmd/sanity/checks.py [new file with mode: 0644]
neutron/cmd/sanity_check.py [new file with mode: 0644]
neutron/common/config.py
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/plugins/openvswitch/common/constants.py
neutron/tests/functional/agent/linux/test_ovs_vxlan.py [deleted file]
neutron/tests/functional/sanity/__init__.py [new file with mode: 0644]
neutron/tests/functional/sanity/test_ovs_sanity.py [new file with mode: 0644]
neutron/tests/unit/agent/linux/test_ovs_lib.py
neutron/tests/unit/openvswitch/test_ovs_tunnel.py
setup.cfg