[Bug 1792947] [NEW] OSError: [Errno 22] failed to open netns (bionic-rocky)

Andrew McLeod andrew.mcleod at canonical.com
Mon Sep 17 14:02:40 UTC 2018


Public bug reported:

The bionic-rocky deployment fails to allocate DHCP to new instances:

neutron/neutron-dhcp-agent.log:2018-09-17 07:08:01.432 190830 ERROR
neutron.agent.dhcp.agent [-] Unable to enable dhcp for ade593b1-153b-
47b8-84a9-009fca692003.: OSError: [Errno 22] failed to open netns

This can be tracked to the pyroute2 package, where it is simply
executing:

pyroute2.NetNS("qdhcp-UUID", flags=0")

While the namespace is visible with the "ip netns" command, the pyroute2
method fails (and this is with either python 2.7 or 3.?) with OSError
22, and this associated syscall:

[pid 51036] openat(AT_FDCWD, "/var/run/netns/qdhcp-ade593b1-153b-47b8-84a9-009fca692003", O_RDONLY) = 4
[pid 51036] tee(4, 1073741824, 17109518126325597131, 0xaa7bac30 /* SPLICE_F_??? */) = -1 EINVAL (Invalid argument)

This is specific to s390x, and does not occur on bionic-queens, only
using the bionic-rocky cloud archive. These archives do not contain
different versions of pyroute2 so this seems unlikely to be the issue.

Downgrading openvswitch to the bionic-queens version (2.10.0-0ubuntu2
--> 2.9.0-0ubuntu1) did not seem to make a difference but more testing
may be necessary.

A bug has also been logged against pyroute2:

https://github.com/svinota/pyroute2/issues/542

** Affects: ubuntu-z-systems
     Importance: Undecided
         Status: New

** Affects: pyroute2 (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: pyroute2 (Ubuntu)
   Importance: Undecided
       Status: New

** Summary changed:

- network namespace inaccessible via pyroute2 package to charms with bionic-rocky  cloud-archive
+ OSError: [Errno 22] failed to open netns (bionic-rocky)

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to pyroute2 in Ubuntu.
https://bugs.launchpad.net/bugs/1792947

Title:
  OSError: [Errno 22] failed to open netns (bionic-rocky)

Status in Ubuntu on IBM z Systems:
  New
Status in pyroute2 package in Ubuntu:
  New

Bug description:
  The bionic-rocky deployment fails to allocate DHCP to new instances:

  neutron/neutron-dhcp-agent.log:2018-09-17 07:08:01.432 190830 ERROR
  neutron.agent.dhcp.agent [-] Unable to enable dhcp for ade593b1-153b-
  47b8-84a9-009fca692003.: OSError: [Errno 22] failed to open netns

  This can be tracked to the pyroute2 package, where it is simply
  executing:

  pyroute2.NetNS("qdhcp-UUID", flags=0")

  While the namespace is visible with the "ip netns" command, the
  pyroute2 method fails (and this is with either python 2.7 or 3.?) with
  OSError 22, and this associated syscall:

  [pid 51036] openat(AT_FDCWD, "/var/run/netns/qdhcp-ade593b1-153b-47b8-84a9-009fca692003", O_RDONLY) = 4
  [pid 51036] tee(4, 1073741824, 17109518126325597131, 0xaa7bac30 /* SPLICE_F_??? */) = -1 EINVAL (Invalid argument)

  This is specific to s390x, and does not occur on bionic-queens, only
  using the bionic-rocky cloud archive. These archives do not contain
  different versions of pyroute2 so this seems unlikely to be the issue.

  Downgrading openvswitch to the bionic-queens version (2.10.0-0ubuntu2
  --> 2.9.0-0ubuntu1) did not seem to make a difference but more testing
  may be necessary.

  A bug has also been logged against pyroute2:

  https://github.com/svinota/pyroute2/issues/542

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1792947/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list