← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1841753] [NEW] Pyroute2 netns.ns_pids() will fail if during the function loop, one namespace is deleted

 

Public bug reported:

Log: https://2af908e1173c237cb5bf-
b484a2b89d5d2c358f068133dfb2fa14.ssl.cf2.rackcdn.com/678905/1/check
/neutron-functional/9770e53/testr_results.html.gz

If during the namepace PIDs retrieval one of those namespaces is deleted, the method [1] will fail with the exception:
  FileNotFoundError: [Errno 2] No such file or directory


[1] https://github.com/svinota/pyroute2/blob/b25a6ca6c91da45cb5b54e7caffa1644fed2330d/pyroute2/netns/__init__.py#L163

** Affects: neutron
     Importance: Undecided
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

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

Title:
  Pyroute2 netns.ns_pids() will fail if during the function loop, one
  namespace is deleted

Status in neutron:
  New

Bug description:
  Log: https://2af908e1173c237cb5bf-
  b484a2b89d5d2c358f068133dfb2fa14.ssl.cf2.rackcdn.com/678905/1/check
  /neutron-functional/9770e53/testr_results.html.gz

  If during the namepace PIDs retrieval one of those namespaces is deleted, the method [1] will fail with the exception:
    FileNotFoundError: [Errno 2] No such file or directory

  
  [1] https://github.com/svinota/pyroute2/blob/b25a6ca6c91da45cb5b54e7caffa1644fed2330d/pyroute2/netns/__init__.py#L163

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


Follow ups