[Bug 1904730] Re: neutron-agent-sriov fails to create port

2022-06-06 Thread Corey Bryant
This bug was fixed in the package pyroute2 - 0.4.21-0.1ubuntu2.1~cloud0
---

 pyroute2 (0.4.21-0.1ubuntu2.1~cloud0) xenial-queens; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 pyroute2 (0.4.21-0.1ubuntu2.1) bionic; urgency=medium
 .
   * Increase default recv-buf size (LP: #1904730)
 - d/p/increase-recvbuf-size.patch: increase recvbuf size
   from 16k to 32k.


** Changed in: cloud-archive/queens
   Status: Fix Committed => Fix Released

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2022-02-15 Thread James Page
Uploads prepared for stein and train - once those have built in proposed
I'll run tests for queens->train.

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-12-06 Thread Corey Bryant
This bug was fixed in the package pyroute2 - 0.5.9-0ubuntu2~cloud0
---

 pyroute2 (0.5.9-0ubuntu2~cloud0) bionic-ussuri; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 pyroute2 (0.5.9-0ubuntu2) focal; urgency=medium
 .
   [ Billy Olsen ]
   * Increase default recv-buf size (LP: #1904730)
 - d/p/increase-recvbuf-size.patch-*: increase recvbuf size
   from 16k to 64k.


** Changed in: cloud-archive/ussuri
   Status: Fix Committed => Fix Released

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-12-06 Thread Corey Bryant
This bug was fixed in the package pyroute2 - 0.5.14-0ubuntu1~cloud1
---

 pyroute2 (0.5.14-0ubuntu1~cloud1) focal-victoria; urgency=medium
 .
   [ Billy Olsen ]
   * Increase default recv-buf size (LP: #1904730)
 - d/p/increase-recvbuf-size.patch-*: increase recvbuf size
   from 16k to 64k.


** Changed in: cloud-archive/victoria
   Status: Fix Committed => Fix Released

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-11-15 Thread Billy Olsen
** Tags removed: verification-needed-victoria

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-11-03 Thread Corey Bryant
This bug was fixed in the package pyroute2 - 0.5.14-0ubuntu1.1~cloud0
---

 pyroute2 (0.5.14-0ubuntu1.1~cloud0) focal-wallaby; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 pyroute2 (0.5.14-0ubuntu1.1) hirsute; urgency=medium
 .
   [ Billy Olsen ]
   * Increase default recv-buf size (LP: #1904730)
 - d/p/increase-recvbuf-size.patch-*: increase recvbuf size
   from 16k to 64k.


** Changed in: cloud-archive/wallaby
   Status: Fix Committed => Fix Released

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-10-26 Thread Billy Olsen
Verified for focal-victoria using the test script in comment #33

ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii  python3-pyroute2 0.5.14-0ubuntu1~cloud0
all  Python3 Netlink library
ubuntu@node-lepaute:~$ echo 63 | sudo tee 
/sys/class/net/enp3s0f0/device/sriov_numvfs
63
ubuntu@node-lepaute:~$ ./test-lp1904730.sh 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1345, in _ft_decode_generic
self.decode_nlas(offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1469, in decode_nlas
(length, base_msg_type) = struct.unpack_from('HH', self.data,
struct.error: unpack_from requires a buffer of at least 19212 bytes for 
unpacking 4 bytes at offset 19208 (actual buffer size is 16384)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./test-lp1904730.sh", line 7, in 
link = ip.link('get', index=link_idx, ext_mask=1)[0]
  File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1358, 
in link
ret = self.nlm_request(msg,
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 376, 
in nlm_request
return tuple(self._genlm_request(*argv, **kwarg))
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 867, 
in nlm_request
for msg in self.get(msg_seq=msg_seq,
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 379, 
in get
return tuple(self._genlm_get(*argv, **kwarg))
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 704, 
in get
raise msg['header']['error']
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 177, 
in parse
msg.decode()
  File 
"/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/ifinfmsg/__init__.py", 
line 1092, in decode
nlmsg.decode(self)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1016, in decode
self._ft_decode(self, offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1348, in _ft_decode_generic
raise NetlinkNLADecodeError(e)
pyroute2.netlink.exceptions.NetlinkNLADecodeError: unpack_from requires a 
buffer of at least 19212 bytes for unpacking 4 bytes at offset 19208 (actual 
buffer size is 16384)

ubuntu@node-lepaute:~$ sudo add-apt-repository cloud-archive:victoria-proposed
 Ubuntu Cloud Archive for OpenStack Victoria [proposed]
 More info: https://wiki.ubuntu.com/OpenStack/CloudArchive
Press [ENTER] to continue or Ctrl-c to cancel adding it.
...

ubuntu@node-lepaute:~$ sudo apt-get upgrade python3-pyroute2
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  alsa-ucm-conf apport cloud-init distro-info-data libnetplan0 netplan.io 
open-vm-tools python3-apport python3-cryptography python3-importlib-metadata 
python3-openssl python3-problem-report python3-pyroute2
  python3-requests squashfs-tools
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 standard security updates
Need to get 2287 kB of archives.
After this operation, 977 kB of additional disk space will be used.
...
ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii  python3-pyroute2 0.5.14-0ubuntu1~cloud1
all  Python3 Netlink library
ubuntu@node-lepaute:~$ ./test-lp1904730.sh 
63
ubuntu@node-lepaute:~$

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-10-26 Thread Chris MacNaughton
This does seem to be available into Victoria-proposed as well so I'm
marking this as needing verification for Victoria, as well as being fix-
committed

** Also affects: cloud-archive/victoria
   Importance: Undecided
   Status: New

** Changed in: cloud-archive/victoria
   Status: New => Fix Committed

** Tags added: verification-needed-victoria

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-10-25 Thread Billy Olsen
Verified for bionic-ussuri using the test script in comment #33

ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii  python3-pyroute2 0.5.9-0ubuntu1~cloud0  
 all  Python3 Netlink library
ubuntu@node-lepaute:~$ echo 63 | sudo tee 
/sys/class/net/enp3s0f0/device/sriov_numvfs
63
ubuntu@node-lepaute:~$ ./test-lp1904730.sh 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1311, in _ft_decode_generic
self.decode_nlas(offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1436, in decode_nlas
offset)
struct.error: unpack_from requires a buffer of at least 4 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./test-lp1904730.sh", line 7, in 
link = ip.link('get', index=link_idx, ext_mask=1)[0]
  File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1332, 
in link
msg_flags=msg_flags)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 373, 
in nlm_request
return tuple(self._genlm_request(*argv, **kwarg))
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 864, 
in nlm_request
callback=callback):
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 376, 
in get
return tuple(self._genlm_get(*argv, **kwarg))
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 701, 
in get
raise msg['header']['error']
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 177, 
in parse
msg.decode()
  File 
"/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/ifinfmsg/__init__.py", 
line 1087, in decode
nlmsg.decode(self)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 982, 
in decode
self._ft_decode(self, offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1314, in _ft_decode_generic
raise NetlinkNLADecodeError(e)
pyroute2.netlink.exceptions.NetlinkNLADecodeError: unpack_from requires a 
buffer of at least 4 bytes
ubuntu@node-lepaute:~$ sudo add-apt-repository cloud-archive:ussuri-proposed
 Ubuntu Cloud Archive for OpenStack Ussuri [proposed]
 More info: https://wiki.ubuntu.com/OpenStack/CloudArchive
Press [ENTER] to continue or Ctrl-c to cancel adding it.
...
ubuntu@node-lepaute:~$ sudo apt-get upgrade python3-pyroute2
...
ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii  python3-pyroute2 0.5.9-0ubuntu2~cloud0  
 all  Python3 Netlink library
ubuntu@node-lepaute:~$ ./test-lp1904730.sh 
63

** Tags added: verification-done-bionic-ussuri

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-10-25 Thread Billy Olsen
Verified for focal-wallaby using test script in comment #33.

ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii  python3-pyroute2 0.5.14-0ubuntu1~cloud0
all  Python3 Netlink library
ubuntu@node-lepaute:~$ echo 63 | sudo tee 
/sys/class/net/enp3s0f0/device/sriov_numvfs
63
ubuntu@node-lepaute:~$ ./test-lp1904730.sh 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1345, in _ft_decode_generic
self.decode_nlas(offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1469, in decode_nlas
(length, base_msg_type) = struct.unpack_from('HH', self.data,
struct.error: unpack_from requires a buffer of at least 19212 bytes for 
unpacking 4 bytes at offset 19208 (actual buffer size is 16384)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./test-lp1904730.sh", line 7, in 
link = ip.link('get', index=link_idx, ext_mask=1)[0]
  File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1358, 
in link
ret = self.nlm_request(msg,
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 376, 
in nlm_request
return tuple(self._genlm_request(*argv, **kwarg))
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 867, 
in nlm_request
for msg in self.get(msg_seq=msg_seq,
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 379, 
in get
return tuple(self._genlm_get(*argv, **kwarg))
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 704, 
in get
raise msg['header']['error']
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 177, 
in parse
msg.decode()
  File 
"/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/ifinfmsg/__init__.py", 
line 1092, in decode
nlmsg.decode(self)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1016, in decode
self._ft_decode(self, offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1348, in _ft_decode_generic
raise NetlinkNLADecodeError(e)
pyroute2.netlink.exceptions.NetlinkNLADecodeError: unpack_from requires a 
buffer of at least 19212 bytes for unpacking 4 bytes at offset 19208 (actual 
buffer size is 16384)

ubuntu@node-lepaute:~$ sudo add-apt-repository cloud-archive:wallaby-proposed
 Ubuntu Cloud Archive for OpenStack Wallaby [proposed]
 More info: https://wiki.ubuntu.com/OpenStack/CloudArchive
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Reading package lists...
Building dependency tree...
Reading state information...
ubuntu-cloud-keyring is already the newest version (2020.02.11.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Get:1 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-proposed/wallaby 
InRelease [8771 B]
Hit:2 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-updates/wallaby 
InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://ubuntu-cloud.archive.canonical.com/ubuntu 
focal-proposed/wallaby/main amd64 Packages [155 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 492 kB in 1s (522 kB/s)  
Reading package lists... Done
ubuntu@node-lepaute:~$ sudo apt-get upgrade python3-pyroute2
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  python3-pyroute2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 269 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ubuntu-cloud.archive.canonical.com/ubuntu 
focal-proposed/wallaby/main amd64 python3-pyroute2 all 0.5.14-0ubuntu1.1~cloud0 
[269 kB]
Fetched 269 kB in 0s (9234 kB/s)
(Reading database ... 71815 files and directories currently installed.)
Preparing to unpack .../python3-pyroute2_0.5.14-0ubuntu1.1~cloud0_all.deb ...
Unpacking python3-pyroute2 (0.5.14-0ubuntu1.1~cloud0) over 
(0.5.14-0ubuntu1~cloud0) ...
Setting up python3-pyroute2 (0.5.14-0ubuntu1.1~cloud0) ...
ubuntu@node-lepaute:~$ 
ubuntu@node-lepaute:~$ dpkg -l | grep pyroute2
ii  python3-pyroute2 0.5.14-0ubuntu1.1~cloud0  
all  Python3 Netlink library
ubuntu@node-lepaute:~$ ./test-lp1904730.sh 
63
ubuntu@node-lepaute:~$ 

** Tags added: verification-done-focal-wallaby

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-10-05 Thread Launchpad Bug Tracker
This bug was fixed in the package pyroute2 - 0.4.21-0.1ubuntu2.1

---
pyroute2 (0.4.21-0.1ubuntu2.1) bionic; urgency=medium

  * Increase default recv-buf size (LP: #1904730)
- d/p/increase-recvbuf-size.patch: increase recvbuf size
  from 16k to 32k.

 -- Billy Olsen   Thu, 10 Dec 2020 12:49:54
-0700

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

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-23 Thread Billy Olsen
For bionic, the provided test case needs some tweaks as the neutron
version on bionic does not have the provided functions. Instead, I've
written a quick test script that will exercise the pyroute2 code path to
exercise the errors. Still requires enabling vfs as James did.

Simple script is:

#!/usr/bin/python3
import pyroute2

ip = pyroute2.IPRoute()
devname = 'enp3s0f0'
link_idx = ip.link_lookup(ifname=devname)[0]
link = ip.link('get', index=link_idx, ext_mask=1)[0]

num_vfs = link.get_attr('IFLA_NUM_VF')
print(num_vfs)


Running test on bionic without this fix to prove its enough to show the error:

$ dpkg -l | grep python3-pyroute2
ii  python3-pyroute2   0.4.21-0.1ubuntu2
all  Python3 Netlink library

$ sudo ./lp1904730-test.py 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1232, in _ft_decode_generic
self.decode_nlas(offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1357, in decode_nlas
offset)
struct.error: unpack_from requires a buffer of at least 4 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./lp1904730-test.py", line 7, in 
link = ip.link('get', index=link_idx, ext_mask=1)[0]
  File "/usr/lib/python3/dist-packages/pyroute2/iproute.py", line 1310, in link
msg_flags=msg_flags)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 804, 
in nlm_request
return do_try()
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 783, 
in do_try
callback=callback)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 648, 
in get
raise msg['header']['error']
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 171, 
in parse
msg.decode()
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 941, 
in decode
self._ft_decode(self, offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1235, in _ft_decode_generic
raise NetlinkNLADecodeError(e)
pyroute2.netlink.exceptions.NetlinkNLADecodeError: unpack_from requires a 
buffer of at least 4 bytes


Running with the proposed patch:

$ dpkg -l | grep python3-pyroute2
ii  python3-pyroute2   0.4.21-0.1ubuntu2.1  
   all  Python3 Netlink library
$ sudo ./lp1904730-test.py 
63


** Tags removed: verification-needed
** Tags added: verification-done verification-done-bionic

** Tags removed: verification-needed-bionic

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-22 Thread Robie Basak
Hello Michał, or anyone else affected,

Accepted pyroute2 into bionic-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/pyroute2/0.4.21-0.1ubuntu2.1 in a
few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
bionic to verification-done-bionic. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-bionic. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: pyroute2 (Ubuntu Bionic)
   Status: Triaged => Fix Committed

** Tags removed: verification-done
** Tags added: verification-needed verification-needed-bionic

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-14 Thread Launchpad Bug Tracker
This bug was fixed in the package pyroute2 - 0.5.9-0ubuntu2

---
pyroute2 (0.5.9-0ubuntu2) focal; urgency=medium

  [ Billy Olsen ]
  * Increase default recv-buf size (LP: #1904730)
- d/p/increase-recvbuf-size.patch-*: increase recvbuf size
  from 16k to 64k.

 -- Corey Bryant   Thu, 22 Jul 2021 16:39:24
-0400

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

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-14 Thread Launchpad Bug Tracker
This bug was fixed in the package pyroute2 - 0.5.14-0ubuntu1.1

---
pyroute2 (0.5.14-0ubuntu1.1) hirsute; urgency=medium

  [ Billy Olsen ]
  * Increase default recv-buf size (LP: #1904730)
- d/p/increase-recvbuf-size.patch-*: increase recvbuf size
  from 16k to 64k.

 -- Corey Bryant   Thu, 22 Jul 2021 16:39:24
-0400

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

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-13 Thread James Page
** Changed in: cloud-archive/train
   Status: New => Triaged

** Changed in: cloud-archive/stein
   Status: New => Triaged

** Changed in: cloud-archive/queens
   Status: New => Triaged

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-13 Thread James Page
hirsute-proposed

$ python3
Python 3.9.5 (default, May 11 2021, 08:20:37) 
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from neutron.privileged.agent.linux import ip_lib
>>> ip_lib.get_link_vfs('enp3s0f0', None)
{0: {'mac': 'c6:86:05:6c:c2:78', 'link_state': 0}, 1: {'mac': 
'ca:12:e9:65:2a:65', 'link_state': 0}, 2: {'mac': '7a:c8:73:c6:b3:d9', 
'link_state': 0}, 3: {'mac': '12:16:e7:9b:3b:88', 'link_state': 0}, 4: {'mac': 
'52:13:93:c3:e4:12', 'link_state': 0}, 5: {'mac': 'c6:35:91:b5:eb:4c', 
'link_state': 0}, 6: {'mac': '9e:a5:51:b4:e0:86', 'link_state': 0}, 7: {'mac': 
'c2:9f:b7:3d:d8:3f', 'link_state': 0}, 8: {'mac': '3e:40:89:06:c1:91', 
'link_state': 0}, 9: {'mac': '92:9b:2f:33:0e:ea', 'link_state': 0}, 10: {'mac': 
'7e:42:f6:60:d0:43', 'link_state': 0}, 11: {'mac': 'fe:83:1c:f8:60:53', 
'link_state': 0}, 12: {'mac': 'e2:c8:76:1d:6e:88', 'link_state': 0}, 13: 
{'mac': '9e:92:a4:2f:1a:01', 'link_state': 0}, 14: {'mac': '3a:29:62:fb:64:b2', 
'link_state': 0}, 15: {'mac': 'f2:49:61:df:00:f8', 'link_state': 0}, 16: 
{'mac': '9e:2f:57:8f:b9:aa', 'link_state': 0}, 17: {'mac': '1a:95:59:ea:34:78', 
'link_state': 0}, 18: {'mac': '26:14:2a:6d:f9:b2', 'link_state': 0}, 19: 
{'mac': '3e:7b:ca:6e:14:5f', 'link_state': 0}, 20: {'mac': 'da:35:5a:c5:82:a6', 
'link_state': 0}, 21: {'mac': 'e6:86:63:ec:e1:ed', 'link_state': 0}, 22: 
{'mac': '16:5d:81:16:af:14', 'link_state': 0}, 23: {'mac': '86:9d:67:3b:5d:0b', 
'link_state': 0}, 24: {'mac': 'be:a3:b8:3f:9e:9a', 'link_state': 0}, 25: 
{'mac': 'aa:0c:53:fa:b2:99', 'link_state': 0}, 26: {'mac': 'fe:c2:91:41:7a:b0', 
'link_state': 0}, 27: {'mac': 'ce:72:a7:30:3c:bf', 'link_state': 0}, 28: 
{'mac': '7a:c6:9a:e0:f7:6d', 'link_state': 0}, 29: {'mac': '7e:23:82:e9:cb:dd', 
'link_state': 0}, 30: {'mac': '6a:1e:4d:48:7c:85', 'link_state': 0}, 31: 
{'mac': '5a:47:1e:3d:27:a8', 'link_state': 0}, 32: {'mac': 'f2:24:df:90:42:3d', 
'link_state': 0}, 33: {'mac': '9e:b8:46:57:52:a5', 'link_state': 0}, 34: 
{'mac': 'd6:bb:d4:ae:37:e5', 'link_state': 0}, 35: {'mac': 'ce:80:6d:f6:c4:ad', 
'link_state': 0}, 36: {'mac': 'd6:d7:54:3f:d5:03', 'link_state': 0}, 37: 
{'mac': '86:1c:84:a6:21:e7', 'link_state': 0}, 38: {'mac': 'c2:62:c7:ee:f5:93', 
'link_state': 0}, 39: {'mac': '6e:e6:ce:bf:b3:08', 'link_state': 0}, 40: 
{'mac': '62:8a:47:7f:3e:83', 'link_state': 0}, 41: {'mac': 'ce:53:b4:4e:eb:90', 
'link_state': 0}, 42: {'mac': 'ea:a2:95:2b:70:62', 'link_state': 0}, 43: 
{'mac': '2e:e0:95:cc:97:d4', 'link_state': 0}, 44: {'mac': '3a:00:2e:26:0c:27', 
'link_state': 0}, 45: {'mac': '96:a4:ef:7a:b8:e6', 'link_state': 0}, 46: 
{'mac': '36:a3:24:35:5c:ee', 'link_state': 0}, 47: {'mac': '4e:78:c7:f7:80:7b', 
'link_state': 0}, 48: {'mac': 'b6:91:b7:24:a9:2c', 'link_state': 0}, 49: 
{'mac': '8a:b8:cf:17:cf:88', 'link_state': 0}, 50: {'mac': '7e:09:13:a5:ac:c8', 
'link_state': 0}, 51: {'mac': 'be:c1:46:be:bf:67', 'link_state': 0}, 52: 
{'mac': '7a:8d:d0:89:bb:f1', 'link_state': 0}, 53: {'mac': 'ba:fd:fa:97:e8:fd', 
'link_state': 0}, 54: {'mac': 'aa:50:37:b1:ec:b8', 'link_state': 0}, 55: 
{'mac': '76:22:2f:a7:62:c5', 'link_state': 0}, 56: {'mac': 'c2:a0:8d:23:ac:2c', 
'link_state': 0}, 57: {'mac': '62:1d:47:7e:21:62', 'link_state': 0}, 58: 
{'mac': 'fa:33:38:85:ec:a0', 'link_state': 0}, 59: {'mac': 'aa:a3:91:ee:ed:1a', 
'link_state': 0}, 60: {'mac': '66:ba:a9:46:bb:9a', 'link_state': 0}, 61: 
{'mac': 'fa:43:f3:a5:cd:d1', 'link_state': 0}, 62: {'mac': '56:33:5c:a8:3b:b8', 
'link_state': 0}}


** Tags removed: verification-needed verification-needed-hirsute
** Tags added: verification-done verification-done-hirsute

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-13 Thread James Page
focal-proposed:

$ sudo python3
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from neutron.privileged.agent.linux import ip_lib
>>> ip_lib.get_link_vfs('enp3s0f0', None)
{0: {'mac': 'e6:f8:10:43:f5:6c', 'link_state': 0}, 1: {'mac': 
'16:cd:68:27:ba:76', 'link_state': 0}, 2: {'mac': '06:80:b4:9f:c5:9e', 
'link_state': 0}, 3: {'mac': '92:37:10:5d:3b:86', 'link_state': 0}, 4: {'mac': 
'42:75:cb:09:93:78', 'link_state': 0}, 5: {'mac': '4e:aa:60:3b:1d:04', 
'link_state': 0}, 6: {'mac': '2e:44:8a:08:71:82', 'link_state': 0}, 7: {'mac': 
'fa:72:b3:51:81:2d', 'link_state': 0}, 8: {'mac': '6e:5f:e1:22:84:06', 
'link_state': 0}, 9: {'mac': 'a2:2d:6b:84:3a:af', 'link_state': 0}, 10: {'mac': 
'ee:6d:90:95:5f:22', 'link_state': 0}, 11: {'mac': '16:79:03:25:66:7b', 
'link_state': 0}, 12: {'mac': 'ee:c8:56:4a:75:e8', 'link_state': 0}, 13: 
{'mac': '56:30:25:e8:df:c1', 'link_state': 0}, 14: {'mac': '76:d3:ea:aa:0c:09', 
'link_state': 0}, 15: {'mac': 'c6:0f:2a:c6:a2:58', 'link_state': 0}, 16: 
{'mac': '1e:70:c6:45:3b:74', 'link_state': 0}, 17: {'mac': '5a:63:86:59:43:26', 
'link_state': 0}, 18: {'mac': '56:29:8d:ac:cb:e2', 'link_state': 0}, 19: 
{'mac': '7e:34:75:7d:3e:de', 'link_state': 0}, 20: {'mac': '0e:e0:45:a3:8b:00', 
'link_state': 0}, 21: {'mac': '6a:d7:43:81:2c:8c', 'link_state': 0}, 22: 
{'mac': '8a:83:f5:d3:31:d1', 'link_state': 0}, 23: {'mac': 'e6:08:e4:bd:c1:79', 
'link_state': 0}, 24: {'mac': 'c6:1d:73:3d:9c:a6', 'link_state': 0}, 25: 
{'mac': 'ce:61:95:88:38:08', 'link_state': 0}, 26: {'mac': '3e:21:d4:bc:28:35', 
'link_state': 0}, 27: {'mac': 'd2:c7:56:c8:fb:26', 'link_state': 0}, 28: 
{'mac': 'aa:de:6e:00:3e:13', 'link_state': 0}, 29: {'mac': '4a:47:c1:92:48:23', 
'link_state': 0}, 30: {'mac': '5e:2b:60:4f:d4:6e', 'link_state': 0}, 31: 
{'mac': 'f2:64:c1:af:49:b7', 'link_state': 0}, 32: {'mac': '9a:d5:68:db:7a:bd', 
'link_state': 0}, 33: {'mac': '16:9f:10:2c:e0:fc', 'link_state': 0}, 34: 
{'mac': 'b6:f6:c8:a8:c9:66', 'link_state': 0}, 35: {'mac': '62:54:ac:a3:45:8f', 
'link_state': 0}, 36: {'mac': '96:7f:49:2b:82:b2', 'link_state': 0}, 37: 
{'mac': 'b2:ff:83:e5:18:3a', 'link_state': 0}, 38: {'mac': '42:96:69:bf:6e:51', 
'link_state': 0}, 39: {'mac': 'e2:f8:19:8a:86:d4', 'link_state': 0}, 40: 
{'mac': 'e2:1e:b6:79:b5:f2', 'link_state': 0}, 41: {'mac': '06:b8:04:14:67:7a', 
'link_state': 0}, 42: {'mac': '9e:0c:a0:5b:0f:00', 'link_state': 0}, 43: 
{'mac': '32:b2:4e:d4:83:33', 'link_state': 0}, 44: {'mac': '96:f9:05:31:81:e1', 
'link_state': 0}, 45: {'mac': '2e:0e:e3:f0:6e:24', 'link_state': 0}, 46: 
{'mac': 'fa:95:1d:9c:c5:9b', 'link_state': 0}, 47: {'mac': '2a:9e:69:16:c0:04', 
'link_state': 0}, 48: {'mac': 'b6:3e:6d:63:c6:01', 'link_state': 0}, 49: 
{'mac': '42:24:89:2b:b4:2e', 'link_state': 0}, 50: {'mac': 'ae:9d:ad:22:37:76', 
'link_state': 0}, 51: {'mac': 'b2:f0:4c:15:6d:1d', 'link_state': 0}, 52: 
{'mac': '42:07:bc:96:28:65', 'link_state': 0}, 53: {'mac': '22:d5:9e:d1:40:fd', 
'link_state': 0}, 54: {'mac': 'c6:10:07:fd:87:f6', 'link_state': 0}, 55: 
{'mac': '5a:5b:f1:d6:46:14', 'link_state': 0}, 56: {'mac': 'b2:55:f8:90:0a:7a', 
'link_state': 0}, 57: {'mac': 'ba:37:61:76:4d:1a', 'link_state': 0}, 58: 
{'mac': 'de:4e:cc:df:a8:6c', 'link_state': 0}, 59: {'mac': '7a:cb:25:c4:07:7a', 
'link_state': 0}, 60: {'mac': 'f2:02:5a:cd:88:7b', 'link_state': 0}, 61: 
{'mac': '72:48:17:f3:f7:80', 'link_state': 0}, 62: {'mac': '62:a3:8d:d0:04:3e', 
'link_state': 0}}


** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-13 Thread James Page
Revision to test case to avoid need for all of openstack

[Test Case]
echo 63 | sudo tee /sys/class/net/enp3s0f0/device/sriov_numvfs
sudo apt install python3-neutron
sudo python3
>>> from neutron.privileged.agent.linux import ip_lib
>>> ip_lib.get_link_vfs('enp3s0f0', None)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1311, in _ft_decode_generic
self.decode_nlas(offset)
  File "/usr/lib/python3/dist-packages/pyroute2/netlink/__init__.py", line 
1435, in decode_nlas
(length, base_msg_type) = struct.unpack_from('HH', self.data,
struct.error: unpack_from requires a buffer of at least 19212 bytes for 
unpacking 4 bytes at offset 19208 (actual buffer size is 16384)

Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3/dist-packages/oslo_privsep/priv_context.py", line 247, 
in _wrap
return self.channel.remote_call(name, args, kwargs)
  File "/usr/lib/python3/dist-packages/oslo_privsep/daemon.py", line 204, in 
remote_call
raise exc_type(*result[2])
TypeError: can not serialize 'error' object

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-09-13 Thread James Page
Sponsored patch for bionic update (in UNAPPROVED queue for SRU team
review).

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

** Changed in: pyroute2 (Ubuntu Bionic)
   Importance: Undecided => High

** Changed in: pyroute2 (Ubuntu Bionic)
   Status: New => Triaged

** Also affects: cloud-archive
   Importance: Undecided
   Status: New

** Also affects: cloud-archive/xena
   Importance: Undecided
   Status: New

** Also affects: cloud-archive/ussuri
   Importance: Undecided
   Status: New

** Also affects: cloud-archive/wallaby
   Importance: Undecided
   Status: New

** Also affects: cloud-archive/train
   Importance: Undecided
   Status: New

** Also affects: cloud-archive/queens
   Importance: Undecided
   Status: New

** Also affects: cloud-archive/stein
   Importance: Undecided
   Status: New

** Changed in: cloud-archive/xena
   Status: New => Fix Released

** Changed in: cloud-archive/wallaby
   Status: New => Fix Committed

** Changed in: cloud-archive/ussuri
   Status: New => Fix Committed

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-07-30 Thread Steve Langasek
Hello Michał, or anyone else affected,

Accepted pyroute2 into hirsute-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/pyroute2/0.5.14-0ubuntu1.1 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
hirsute to verification-done-hirsute. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-hirsute. In either case, without details of your
testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: pyroute2 (Ubuntu Hirsute)
   Status: Triaged => Fix Committed

** Tags added: verification-needed verification-needed-hirsute

** Changed in: pyroute2 (Ubuntu Focal)
   Status: Triaged => Fix Committed

** Tags added: verification-needed-focal

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

Title:
  neutron-agent-sriov fails to create port

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyroute2/+bug/1904730/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1904730] Re: neutron-agent-sriov fails to create port

2021-07-30 Thread Corey Bryant
** Description changed:

  [Impact]
  
  Netlink calls to the kernel can return more than 16k bytes (they can
  return 32k on newer kernels). The pyroute2 library has a default buffer
  size of 16k and fails to read the data when kernel response data
  overflows this.
  
  One example of where users encounter this is booting OpenStack instances
  with SRIOV when there are more than 32 VFs, as seen in the original
  problem description (included below).
  
  [Test Case]
  
  Use an SRIOV capable card and enable more than 32 VFs on a modern
  kernel. Attempt to launch an instance using OpenStack as follows:
  
  1. Create example network:
  $ juju switch openstack
  $ source ~/deploy/novarc
  $ openstack network create \
  --provider-physical-network sriovfabric \
  --provider-segment 300 \
  --provider-network-type vlan \
  test-sriov
  
  $ openstack subnet create --network test-sriov \
    --no-dhcp \
    --gateway none \
    --subnet-range 192.168.1.0/24 test-sriov
  
  2. Create ports over virtual function:
  $ juju switch openstack
  $ source ~/deploy/novarc
  $ openstack port create \
  --network test-sriov \
  --vnic-type direct \
  sriov-vf1
  
  $ openstack server create \
  --image bionic-kvm \
  --flavor m1.small \
  --network ext-net-300 \
  --port sriov-vf1 \
  --key-name ubuntu-keypair \
  --availability-zone nova:cmp4az1cz20300kvs.mgt.pst.stg.tlc.example.com \
  sriov-vf1
  
  3. The instance stalls in build state (virsh list shows paused VM) and
  drops to ERROR
  
  [Where problems could occur]
  
  Problems may occur in existing customers already using openstack to
  schedule SRIOV instances and may show up as failure to build instances.
  Additional problems could include the increased memory usage of the nova
  processes which occurs by increasing the default buffer size. For
  tightly spec'd systems with small memory allocated to the host, this
  could further eat into any margin available and push memory usage over
  the edge.
- 
- [Previous Description]
- 
- # Problem Description
- Attempt to boot instance with SR-IOV interface fails. Instance stays in BUILD 
stage for ca 1 minute and then turns to ERROR state. Neutron agent log shows:
- 
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent 
[req-f116d427-838a-4366-8173-801fbe84e406 - - - - -] Error in agent loop. 
Devices info: {}: TypeError: Cannot serialize error('unpack_from requires a 
buffer of at least 4 bytes',)
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent Traceback (most 
recent call last):
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent   File 
"/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py",
 line 473, in daemon_loop
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent device_info = 
self.scan_devices(devices, updated_devices_copy)
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent   File 
"/usr/lib/python3/dist-packages/osprofiler/profiler.py", line 160, in wrapper
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent result = 
f(*args, **kwargs)
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent   File 
"/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py",
 line 243, in scan_devices
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent curr_devices = 
self.eswitch_mgr.get_assigned_devices_info()
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent   File 
"/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py",
 line 344, in get_assigned_devices_info
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent for device in 
embedded_switch.get_assigned_devices_info():
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent   File 
"/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py",
 line 186, in get_assigned_devices_info
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent mac = 
self.get_pci_device(pci_slot)
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent   File 
"/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py",
 line 297, in get_pci_device
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.mech_sriov.agent.sriov_nic_agent macs = 
self.pci_dev_wrapper.get_assigned_macs([vf_index])
- 2020-11-18 10:54:58.927 53769 ERROR 
neutron.plugins.ml2.drivers.me