← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1961740] Re: Network interface not found in namespace

 

Still seeing similar issue as below, reopening the bug

-
https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_ed8/901717/1/gate/neutron-
functional-with-uwsgi/ed8e900/testr_results.html

Fails as:-
neutron.privileged.agent.linux.ip_lib.NetworkInterfaceNotFound: Network
interface sg-aeb1f7f1-24 not found in namespace
snat-89cb4e33-917d-4ba3-b89f-48963ea3d024.

Device added/deleted/added quickly:-
2023-11-29T10:17:44.507Z|06104|bridge|INFO|bridge test-br8645578e: added interface sg-aeb1f7f1-24 on port 4
2023-11-29T10:17:44.865Z|06115|bridge|INFO|bridge test-br8645578e: deleted interface sg-aeb1f7f1-24 on port 4
2023-11-29T10:17:44.877Z|06117|bridge|INFO|bridge test-br8645578e: added interface sg-aeb1f7f1-24 on port 4
2023-11-29T10:17:45.336Z|06131|bridge|INFO|bridge test-br8645578e: deleted interface sg-aeb1f7f1-24 on port 4


- https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_03d/901718/1/gate/neutron-functional-with-uwsgi/03d59c7/testr_results.html

Fails as:-
neutron.privileged.agent.linux.ip_lib.NetworkInterfaceNotFound: Network
interface sg-44024bfc-76 not found in namespace
snat-0afef646-ef9d-406e-b479-6cc7861f8804.

Device added/deleted/added quickly:-
2023-11-29T10:53:03.124Z|03237|bridge|INFO|bridge test-brf59c6dc7: added interface sg-44024bfc-76 on port 4
2023-11-29T10:53:03.804Z|03253|bridge|INFO|bridge test-brf59c6dc7: deleted interface sg-44024bfc-76 on port 4
2023-11-29T10:53:03.817Z|03256|bridge|INFO|bridge test-brf59c6dc7: added interface sg-44024bfc-76 on port 4
2023-11-29T10:53:05.215Z|03282|bridge|INFO|bridge test-brf59c6dc7: deleted interface sg-44024bfc-76 on port 4


- https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_109/periodic/opendev.org/openstack/neutron/master/neutron-functional-with-sqlalchemy-master/10928da/testr_results.html

Fails as:- AssertionError: Device name: fg-1f3bd0ce-36, expected MAC:
fa:16:3e:80:8d:89, expected CIDRs: ['19.4.5.8/24'], device MAC:
0e:d2:9d:26:57:e6

Device added/deleted/added quickly
2023-12-11T03:51:16.045Z|05000|bridge|INFO|bridge test-br4d6080f6: added interface fg-1f3bd0ce-36 on port 6
2023-12-11T03:51:16.437Z|05008|bridge|INFO|bridge test-br4d6080f6: deleted interface fg-1f3bd0ce-36 on port 6
2023-12-11T03:51:16.446Z|05010|bridge|WARN|could not add network device fg-1f3bd0ce-36 to ofproto (No such device)
2023-12-11T03:51:16.556Z|05013|bridge|INFO|bridge test-br4d6080f6: added interface fg-1f3bd0ce-36 on port 8
2023-12-11T03:51:24.190Z|05053|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on fg-1f3bd0ce-36 device failed: No such device
2023-12-11T03:51:29.670Z|05098|bridge|INFO|bridge test-br4d6080f6: deleted interface fg-1f3bd0ce-36 on port 8

** Changed in: neutron
       Status: Fix Released => New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1961740

Title:
  Network interface not found in namespace

Status in neutron:
  New

Bug description:
  This is intermittent error in the functional tests job. Failure
  example:
  https://89b1b88fa362b409cfb1-2a70ac574f4ba34d12afc72df211f1b3.ssl.cf5.rackcdn.com/828687/1/gate/neutron-
  functional-with-uwsgi/a5b844b/testr_results.html

  Stacktrace:
  ft1.47: neutron.tests.functional.agent.l3.extensions.test_port_forwarding_extension.TestL3AgentFipPortForwardingExtensionDVR.test_dvr_non_ha_router_updatetesttools.testresult.real._StringException: Traceback (most recent call last):
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 183, in func
      return f(self, *args, **kwargs)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 183, in func
      return f(self, *args, **kwargs)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/l3/test_dvr_router.py", line 1708, in test_dvr_non_ha_router_update
      router2 = self._create_dvr_ha_router(
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/l3/test_dvr_router.py", line 1445, in _create_dvr_ha_router
      router = self.manage_router(agent, r_info)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/l3/test_dvr_router.py", line 195, in manage_router
      return super(TestDvrRouter, self).manage_router(agent, router)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/l3/framework.py", line 420, in manage_router
      agent._process_added_router(router)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/agent.py", line 663, in _process_added_router
      self._cleanup_failed_router(router['id'],
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_utils/excutils.py", line 227, in __exit__
      self.force_reraise()
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
      raise self.value
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/agent.py", line 653, in _process_added_router
      ri.process()
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/dvr_local_router.py", line 924, in process
      super(DvrLocalRouter, self).process()
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/dvr_router_base.py", line 29, in process
      super(DvrRouterBase, self).process()
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/utils.py", line 177, in call
      self.logger(e)
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_utils/excutils.py", line 227, in __exit__
      self.force_reraise()
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
      raise self.value
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/utils.py", line 174, in call
      return func(*args, **kwargs)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/router_info.py", line 1312, in process
      self.process_external()
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/dvr_local_router.py", line 740, in process_external
      super(DvrLocalRouter, self).process_external()
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/decorator.py", line 232, in fun
      return caller(func, *(extras + args), **kw)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/coordination.py", line 78, in _synchronized
      return f(*a, **k)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/router_info.py", line 1046, in process_external
      self._process_external_gateway(ex_gw_port)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/router_info.py", line 927, in _process_external_gateway
      self.external_gateway_added(ex_gw_port, interface_name)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/dvr_edge_router.py", line 43, in external_gateway_added
      self._create_dvr_gateway(ex_gw_port, interface_name)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/dvr_edge_router.py", line 194, in _create_dvr_gateway
      self._external_gateway_added(ex_gw_port, gw_interface_name,
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/router_info.py", line 821, in _external_gateway_added
      self._plug_external_gateway(ex_gw_port, interface_name, ns_name)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/l3/router_info.py", line 755, in _plug_external_gateway
      self.driver.plug(ex_gw_port['network_id'],
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/linux/interface.py", line 263, in plug
      self.plug_new(network_id, port_id, device_name, mac_address,
    File "<string>", line 3, in plug_new
    File "/usr/lib/python3.8/unittest/mock.py", line 1081, in __call__
      return self._mock_call(*args, **kwargs)
    File "/usr/lib/python3.8/unittest/mock.py", line 1085, in _mock_call
      return self._execute_mock_call(*args, **kwargs)
    File "/usr/lib/python3.8/unittest/mock.py", line 1146, in _execute_mock_call
      result = effect(*args, **kwargs)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/agent/l3/framework.py", line 408, in new_ovs_plug
      original_plug_new(self, *args, **kwargs)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/linux/interface.py", line 388, in plug_new
      namespace_obj.add_device_to_namespace(ns_dev)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/linux/ip_lib.py", line 271, in add_device_to_namespace
      device.link.set_netns(self.namespace)
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/agent/linux/ip_lib.py", line 462, in set_netns
      privileged.set_link_attribute(
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_privsep/priv_context.py", line 271, in _wrap
      return self.channel.remote_call(name, args, kwargs,
    File "/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.8/site-packages/oslo_privsep/daemon.py", line 215, in remote_call
      raise exc_type(*result[2])
  neutron.privileged.agent.linux.ip_lib.NetworkInterfaceNotFound: Network interface qg-d9d41d8e-8b not found in namespace None.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1961740/+subscriptions



References