[2.1, UI] Broken validation on VLAN MTU

Bug #1620478 reported by Gavin Panella
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse

Bug Description

Moving the focus into a VLAN's MTU field then tabbing out results in a
validation error:

  primary_rack: Select a valid choice. 1 is not one of
  the available choices.

See attached screenshot.

Using 2.1.0~alpha2+bzr5321-0ubuntu1~16.04.2.

Related branches

Revision history for this message
Gavin Panella (allenap) wrote :
tags: added: error-surface
Changed in maas:
importance: Undecided → Critical
milestone: none → 2.1.0
status: New → Triaged
summary: - [UI] Broken validation on VLAN MTU
+ [2.1, UI] Broken validation on VLAN MTU
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Actually in this case the validation is not wrong. There is an issue with your configuration as MAAS now believed that your rack controller cannot control that VLAN. I would assume that means your rack interface was changed to a different interface while controlling that VLAN.

There is a bigger issue here really. When a rack controller is the primary or secondary controller for a VLAN its interfaces should not be allowed to be changed where that rack controller would be disconnected from the VLAN it is controlling, either by user action or automatically. The automatic case is the hardest when something like that occurs we need to perform some action to alert the user that on of the rack controllers that should be running this VLAN no longer can, so either MAAS automatically picks a new rack controller that can manage the VLAN or we disable DHCP and alert the user.

Revision history for this message
Gavin Panella (allenap) wrote :

I have only one VLAN: the default untagged VLAN. I don't think I've done anything particularly weird with my configuration. I now have a region+rack controller and a rack controller. Each is on a NUC, with one network interface per NUC, on an isolated network on which there's one other NUC and my laptop. When I go to that VLAN page, put the focus in the MTU field and tab out, I get two errors:

    primary_rack: Select a valid choice. 1 is not one of the available choices.
    secondary_rack: Select a valid choice. 15 is not one of the available choices.

Sometimes I get four errors: the same as above, but repeated.

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Hmm. I would say the code that is calculation what is available choice could be incorrect. Check all your rack interfaces make sure they are all on the same fabric/vlan combination.

Changed in maas:
milestone: 2.1.0 → 2.1.1
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Blake Rouse (blake-rouse)
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.