Bad VLAN Validation on UI

Bug #1571622 reported by Trevor G Francis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse

Bug Description

Preventing assigning the second interface to the same fabric renders building bonds impossible from UI.

MAAS Version 2.0.0 (beta2+bzr4920)

2016-04-18 07:47:34 [-] Error on request (72) machine.update_interface: {"vlan": ["A physical interface can only belong to an untagged VLAN."]}
 Traceback (most recent call last):
   File "/usr/lib/python3.5/threading.py", line 862, in run
     self._target(*self._args, **self._kwargs)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 841, in worker
     return target()
   File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
     task()
   File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
     task()
 --- <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 874, in callInContext
     return func(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 516, in call_within_transaction
     return func_outside_txn(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 343, 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/handlers/machine.py", line 751, in update_interface
     raise ValidationError(form.errors)
 django.core.exceptions.ValidationError: {'vlan': ['A physical interface can only belong to an untagged VLAN.']}

Tags: networking ui

Related branches

Revision history for this message
Andres Rodriguez (andreserl) wrote :

MAAS allows you to assign multiple interfaces to the same fabric... the issue you are having here, according to the log, seems to be a completely different thing. Can you please explain what is it that you were doing or trying to do exactly. Also, can you output ip addr sh or ifconfig ?

Thanks

Changed in maas:
status: New → Incomplete
milestone: none → 2.0.0
Changed in maas:
status: Incomplete → In Progress
importance: Undecided → Critical
assignee: nobody → Blake Rouse (blake-rouse)
tags: added: networking ui
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.