group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #18774
[Bug 1628761] Re: [2.1] netaddr assumes MAC OUI is ascii
$ rmadison -u debian python-netaddr
python-netaddr | 0.7.7-1 | oldoldstable | source, all
python-netaddr | 0.7.12-2 | oldstable | source, all
python-netaddr | 0.7.12-2 | oldstable-kfreebsd | source, all
python-netaddr | 0.7.18-1~bpo8+1 | jessie-backports | source, all
python-netaddr | 0.7.18-2 | stable | source, all
python-netaddr | 0.7.18-2 | testing | source, all
python-netaddr | 0.7.19-1 | unstable | source, all
** Also affects: python-netaddr (Ubuntu Bionic)
Importance: Medium
Status: Triaged
** Also affects: python-netaddr (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: python-netaddr (Ubuntu Bionic)
Status: Triaged => Fix Released
** Changed in: python-netaddr (Ubuntu Xenial)
Status: New => Triaged
** Changed in: python-netaddr (Ubuntu Xenial)
Importance: Undecided => Medium
** Also affects: python-netaddr (Ubuntu Zesty)
Importance: Undecided
Status: New
** Also affects: python-netaddr (Ubuntu Artful)
Importance: Undecided
Status: New
** Changed in: python-netaddr (Ubuntu Zesty)
Status: New => Triaged
** Changed in: python-netaddr (Ubuntu Artful)
Status: New => Triaged
** Changed in: python-netaddr (Ubuntu Zesty)
Importance: Undecided => Medium
** Changed in: python-netaddr (Ubuntu Artful)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1628761
Title:
[2.1] netaddr assumes MAC OUI is ascii
Status in MAAS:
Fix Released
Status in python-netaddr package in Ubuntu:
Fix Released
Status in python-netaddr source package in Xenial:
Triaged
Status in python-netaddr source package in Zesty:
Triaged
Status in python-netaddr source package in Artful:
Triaged
Status in python-netaddr source package in Bionic:
Fix Released
Bug description:
This causes a traceback when we try to get the MAC organization, as
follows:
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
result = inContext.theWork()
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 827, in callInContext
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 603, in call_within_transaction
return func_outside_txn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 422, in retrier
return func(*args, **kwargs)
File "/usr/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 356, in list
for obj in objs
File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 356, in <listcomp>
for obj in objs
File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 205, in full_dehydrate
return self.dehydrate(obj, data, for_list=for_list)
File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/discovery.py", line 38, in dehydrate
data["mac_organization"] = obj.mac_organization
File "/usr/lib/python3/dist-packages/maasserver/models/discovery.py", line 228, in mac_organization
return get_mac_organization(str(self.mac_address))
File "/usr/lib/python3/dist-packages/provisioningserver/utils/network.py", line 817, in get_mac_organization
return get_eui_organization(EUI(mac))
File "/usr/lib/python3/dist-packages/provisioningserver/utils/network.py", line 802, in get_eui_organization
registration = eui.oui.registration()
File "/usr/lib/python3/dist-packages/netaddr/eui/__init__.py", line 478, in oui
return OUI(self.value >> 24)
File "/usr/lib/python3/dist-packages/netaddr/eui/__init__.py", line 97, in __init__
data = fh.read(size)
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
builtins.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2420: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1628761/+subscriptions