Drop useless sanity check of nova notification support

It was added when novaclient was a runtime dependency[1], but now
novaclient is part of the install dependencies and should be always
available.

[1] a630b3bae8

Change-Id: I556cce2e2edfbca91becf6c1403e09ceb2245057
This commit is contained in:
Takashi Kajinami
2025-02-09 02:22:29 +09:00
parent 1ab3ad4d00
commit df95168a8d
3 changed files with 0 additions and 26 deletions

View File

@@ -147,15 +147,6 @@ def patch_supported():
return port != ovs_lib.INVALID_OFPORT
def nova_notify_supported():
try:
# pylint:disable=import-outside-toplevel
import neutron.notifiers.nova # noqa since unused
return True
except ImportError:
return False
def ofctl_arg_supported(cmd, **kwargs):
"""Verify if ovs-ofctl binary supports cmd with **kwargs.

View File

@@ -163,15 +163,6 @@ def check_keepalived_garp_on_sighup_support():
return result
def check_nova_notify():
result = checks.nova_notify_supported()
if not result:
LOG.error('Nova notifications are enabled, but novaclient is not '
'installed. Either disable nova notifications or '
'install python-novaclient.')
return result
def check_arp_responder():
result = checks.arp_responder_supported()
if not result:
@@ -362,8 +353,6 @@ OPTS = [
help=_('Check for iproute2 vxlan support')),
BoolOptCallback('ovs_patch', check_ovs_patch, default=True,
help=_('Check for patch port support')),
BoolOptCallback('nova_notify', check_nova_notify,
help=_('Check for nova notification support')),
BoolOptCallback('arp_responder', check_arp_responder,
help=_('Check for ARP responder support')),
BoolOptCallback('arp_header_match', check_arp_header_match,
@@ -458,9 +447,6 @@ def enable_tests_from_config():
if (constants.TYPE_VXLAN in cfg.CONF.ml2.type_drivers or
cfg.CONF.VXLAN.enable_vxlan):
cfg.CONF.set_default('iproute2_vxlan', True)
if (cfg.CONF.notify_nova_on_port_status_changes or
cfg.CONF.notify_nova_on_port_data_changes):
cfg.CONF.set_default('nova_notify', True)
if cfg.CONF.AGENT.arp_responder:
cfg.CONF.set_default('arp_responder', True)
if not cfg.CONF.AGENT.use_helper_for_ns_read:

View File

@@ -32,9 +32,6 @@ class SanityTestCase(base.BaseLoggingTestCase):
# needed for test_dnsmasq_version()
cfg.CONF.register_opts(dhcp_conf.DNSMASQ_OPTS)
def test_nova_notify_runs(self):
checks.nova_notify_supported()
def test_dnsmasq_version(self):
checks.dnsmasq_version_supported()