Fix two issues that broke tobiko gates

1. mypy version needs to be bumbed to avoid [1]
2. due to a change in neutron [2], tobiko heat templates need to be
   updated: when an OVN router is created, its ha value is omitted

[1] https://github.com/python/mypy/issues/13627
[2] https://review.opendev.org/c/openstack/neutron/+/910889

Change-Id: I6c7fb32c6fa4fe6cd892a32cfeb1780d8d8be091
This commit is contained in:
Eduardo Olivares 2024-03-08 10:21:48 +01:00
parent 14f1297c60
commit cdd66eff32
5 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ repos:
files: ^tobiko/
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: 'v0.931'
rev: 'v0.981'
hooks:
- id: mypy
files: ^tobiko/

View File

@ -126,7 +126,7 @@ class ExternalNetworkStackFixture(heat.HeatStackFixture):
@property
def router_value_specs(self) -> typing.Dict[str, typing.Any]:
value_specs: typing.Dict[str, typing.Any] = {}
if self.has_l3_ha:
if self.has_l3_ha and not neutron.has_ovn():
value_specs.update(ha=bool(self.ha))
if self.distributed is not None and self.has_dvr:
value_specs.update(distributed=bool(self.distributed))

View File

@ -117,6 +117,7 @@ class FloatingIPTest(testtools.TestCase):
# --- test l3_ha extension ------------------------------------------------
@neutron.skip_unless_is_ovs()
@neutron.skip_if_missing_networking_extensions('l3-ha')
def test_l3_ha(self):
"""Test 'mtu' network attribute"""

View File

@ -52,6 +52,7 @@ class NetworkTest(testtools.TestCase):
# --- test l3_ha extension ------------------------------------------------
@neutron.skip_unless_is_ovs()
@neutron.skip_if_missing_networking_extensions('l3-ha')
def test_l3_ha(self):
"""Test l3-ha network attribute"""

View File

@ -191,8 +191,8 @@ mpmath===1.2.1
msgpack===1.0.3
munch===2.5.0
murano-pkg-check===0.3.0
mypy===0.931
mypy-extensions===0.4.3
mypy===0.981
mypy-extensions===1.0.0
ndg-httpsclient===0.5.1
netaddr===0.8.0
netifaces===0.11.0