Fix pyroute2 import issue
Also use zed python jobs instead of xena Change-Id: I3e8cdf0046ec561922d88e3e2f24254aa76b9f74
This commit is contained in:
parent
db5173ad7e
commit
ad87834bda
@ -16,6 +16,7 @@ import ipaddress
|
|||||||
import os
|
import os
|
||||||
import pyroute2
|
import pyroute2
|
||||||
|
|
||||||
|
from pyroute2 import netlink as pyroute_netlink
|
||||||
from pyroute2.netlink.rtnl import ndmsg
|
from pyroute2.netlink.rtnl import ndmsg
|
||||||
from socket import AF_INET6
|
from socket import AF_INET6
|
||||||
|
|
||||||
@ -207,7 +208,7 @@ def delete_ip_rules(ip_rules):
|
|||||||
r.remove()
|
r.remove()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
LOG.debug("Rule {} already deleted".format(rule))
|
LOG.debug("Rule {} already deleted".format(rule))
|
||||||
except pyroute2.netlink.exceptions.NetlinkError:
|
except pyroute_netlink.exceptions.NetlinkError:
|
||||||
# FIXME: There is a issue with NDB and ip rules deletion:
|
# FIXME: There is a issue with NDB and ip rules deletion:
|
||||||
# https://github.com/svinota/pyroute2/issues/771
|
# https://github.com/svinota/pyroute2/issues/771
|
||||||
LOG.debug("This should not happen, skipping: NetlinkError "
|
LOG.debug("This should not happen, skipping: NetlinkError "
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import imp
|
import imp
|
||||||
import pyroute2
|
from pyroute2 import netlink as pyroute_netlink
|
||||||
from socket import AF_INET6
|
from socket import AF_INET6
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ class TestPrivilegedLinuxNet(test_base.TestCase):
|
|||||||
rule0 = mock.MagicMock()
|
rule0 = mock.MagicMock()
|
||||||
self.fake_ndb.rules.__getitem__.side_effect = (
|
self.fake_ndb.rules.__getitem__.side_effect = (
|
||||||
KeyError('Limbo'),
|
KeyError('Limbo'),
|
||||||
pyroute2.netlink.exceptions.NetlinkError(123))
|
pyroute_netlink.exceptions.NetlinkError(123))
|
||||||
|
|
||||||
ip_rules = {'10/128': {'table': 7, 'family': 'fake'},
|
ip_rules = {'10/128': {'table': 7, 'family': 'fake'},
|
||||||
'6/128': {'table': 10, 'family': 'fake'}}
|
'6/128': {'table': 10, 'family': 'fake'}}
|
||||||
|
@ -7,5 +7,6 @@ hacking>=3.0,<3.1 # Apache-2.0
|
|||||||
coverage>=4.0,!=4.4 # Apache-2.0
|
coverage>=4.0,!=4.4 # Apache-2.0
|
||||||
python-subunit>=0.0.18 # Apache-2.0/BSD
|
python-subunit>=0.0.18 # Apache-2.0/BSD
|
||||||
oslotest>=1.10.0 # Apache-2.0
|
oslotest>=1.10.0 # Apache-2.0
|
||||||
|
pyroute2>=0.6.4;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
|
||||||
stestr>=1.0.0 # Apache-2.0
|
stestr>=1.0.0 # Apache-2.0
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- openstack-python3-xena-jobs
|
- openstack-python3-zed-jobs
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user