[2.0] Rack Controller interface parsing shouldn't only rely on e/n/i

Bug #1550644 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse

Bug Description

I tested lastest trunk and noticed that the cluster had correctly parsed e/n/i, however, I had various other interfaces that had not being manually configured on e/n/i.

I now believe that the cluster controller should not only parse e/n/i, but should also parse ip addr and look for those interfaces not reflected on e/n/i, but had been manually added without the use of e/n/i.

Related branches

Changed in maas:
importance: Undecided → Critical
Revision history for this message
Blake Rouse (blake-rouse) wrote :

There is no issue with doing this now. The issue comes about when we allow a user to modify interfaces. The goal of parsing /etc/network/interfaces is to allow a user to be able to modify an interface and /etc/network/interfaces be updated. What you are suggesting would place the interface into the database but in the future we would have no way to edit those interfaces. We need to not only think about what we have now, but also how it will work in the future when that feature is added on.

What might be a good idea is to add "editable" field to the Interface model. Interfaces that do not appear in "/etc/network/interfaces" should have "editable" set to False and interfaces in /etc/network/interfaces would be set to True. This would allow us to add the editable later. I think that might be a good idea.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Blake, I like that idea; furthermore, I think we should store the origin of the address, that way in the future if we support other mechanisms of network configuration (networkd, networkmanager, a routing protocol daemon etc) we can figure out which subsystem "owns" the address.

For example, today we would maybe have an "eni" and an "iplink" type; in the future we could have "networkmanager", "networkd", etc.

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

+1

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