mac address is case sensitive but it's not obvious

Bug #1353619 reported by Kyle O'Donnell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Expired
Undecided
Unassigned

Bug Description

This seems to be similar to bug #1353597 but reverse...

When you add a new node using lowercase characters in the mac address it logs an error in /var/log/maas/maas.log

ERROR 2014-08-06 13:25:42,212 maasserver ################################ Exception: {u'mac_addresses': [u'One or more MAC addresses is invalid.']} ################################
ERROR 2014-08-06 13:25:42,212 maasserver Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 167, in __call__
    result = self.error_handler(e, request, meth, em_format)
  File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 165, in __call__
    result = meth(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api_support.py", line 189, in dispatch
    return function(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 576, in new
    return create_node(request)
  File "/usr/lib/python2.7/dist-packages/maasserver/api.py", line 547, in create_node
    raise ValidationError(form.errors)
ValidationError: {u'mac_addresses': [u'One or more MAC addresses is invalid.']}

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I cannot recreate this. What is the exact string you are entering?

Changed in maas:
status: New → Incomplete
Revision history for this message
Kyle O'Donnell (kyleo-t) wrote :

I was entering:
78:45:c4:f4:62:b3 (this would not fail but would result in the previously submitted error)

then i would try:
78:45:C4:F4:62:B3 (this would fail the commissioning)

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 1353619] Re: mac address is case sensitive but it's not obvious

On Thursday 07 Aug 2014 10:43:19 you wrote:
> I was entering:
> 78:45:c4:f4:62:b3 (this would not fail but would result in the previously
> submitted error)

I copy/pasted this exact string and it works for me.

What version of MAAS are you using?

Revision history for this message
Kyle O'Donnell (kyleo-t) wrote :

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

# uname -a
Linux nfs01 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# dpkg -l maas
ii maas 1.5.2+bzr2282-0ubuntu0. all MAAS server all-in-one metapackage

I have some other servers to build so I can keep an eye out on the log and check for more errors.

Revision history for this message
Kyle O'Donnell (kyleo-t) wrote :

installed 2 more systems today and haven't seen the error

i have not tried to reproduce the cap letter breaking commissioning though

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Does the node have any other MACs on it?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MAAS because there has been no activity for 60 days.]

Changed in maas:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.