[2.0prea2] django.core.exceptions.ValidationError: {'mac_address': ["'74:d4:35:89:bb:c' is not a valid MAC address."]}
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
2016-03-12 11:36:20 [-] Unhandled failure in updating lease.
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
raise ValidationError
Related branches
- Mike Pontillo (community): Approve
-
Diff: 31 lines (+7/-3)2 files modifiedsrc/maasserver/fields.py (+1/-1)
src/maasserver/tests/test_fields.py (+6/-2)
What is the expected MAC address? I'm guessing we aren't getting the MAC in the format we expect:
74: d4:35:89: bb:c
There are two possibilities here:
(1) The MAC is actually correct, and we're just interpreting it incorrectly. That would mean it should be:
74: d4:35:89: bb:0c
(2) We have an off-by-one error somewhere, and there is a missing nibble at the end of the MAC. In that case the actual MAC is in the set:
74: d4:35:89: bb:c[0- 9a-f]