Hm. I think the root cause of this might be that the index is not
updated often enough (that is, it could be a Debian package mismatch).

The `netaddr` package defines the following:

ls -la /usr/lib/python3/dist-packages/netaddr/eui/oui.txt
lrwxrwxrwx 1 root root 38 Oct 23  2015 
/usr/lib/python3/dist-packages/netaddr/eui/oui.txt -> 
../../../../../share/ieee-data/oui.txt

readlink -f /usr/lib/python3/dist-packages/netaddr/eui/oui.txt
/usr/share/ieee-data/oui.txt

The `ieee-data` provides the actual data:

dpkg -S /usr/share/ieee-data/oui.txt
ieee-data: /usr/share/ieee-data/oui.txt

... so if one package is updated but not the other, the index in
`netaddr` will become incorrect. I ran some tests with `netaddr`
upstream and it seems like the library works fine with any OUI, even
OUIs with incorrectly encoded characters in them, etc.

To test this theory, you could run netaddr as follows to regenerate the
indexes:

    sudo python3 -m netaddr.eui.ieee

You would need to restart MAAS after doing this, since netaddr keeps the
indexes cached in memory.

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

Title:
  [2.1] netaddr raises IndexError when looking up some OUI registrations

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to