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

Andrew McLeod andrew.mcleod at canonical.com
Fri Sep 28 11:39:13 UTC 2018


This has been resolved as pyroute2 0.5.2-1 is now in the bionic-rocky
cloud-archive, which resolves the issue.

** Changed in: ubuntu-z-systems
       Status: Triaged => Fix Released

** Changed in: glibc (Ubuntu)
       Status: New => Invalid

** Changed in: pyroute2 (Ubuntu)
       Status: New => Fix Released

-- 
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:
  Fix Released
Status in glibc package in Ubuntu:
  Invalid
Status in pyroute2 package in Ubuntu:
  Fix Released

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