[2.2] DISCOVERED IP addresses uniqueness should not be enfored with respect to other types

Bug #1686736 reported by Blake Rouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Mike Pontillo

Bug Description

I'm hijacking this bug report to change it to describe the problem we discussed this morning. ;-)

If an IP address in MAAS of type DISCOVERED falls outside of a dynamic range, that is most likely an indicator that a commissioning node is picking up an address by means of a non-MAAS DHCP server.

If such a rogue DHCP server happens to fall outside of a MAAS dynamic range, that doesn't make it any less rogue. In addition, dynamic ranges can be changed, so it's difficult to ensure that all DISCOVERED addresses will always be inside a dynamic range.

Therefore, the bug to be fixed is the fact that a static IP addresses cannot coexist with a discovered address of the same value. Both are distinct points of data, and DISCOVERED addresses could arguably move to another table, but that would be a significant change (especially for this late in the cycle).

Previous Description
====================

When DHCP is turned on a VLAN, all discovered IP addresses should only fall with in the configured dynamic ranges. If DHCP is turned on (say comming for using an external DHCP), to any of the dynamic ranges change then all DISCOVERED IP addresses should be removed that do not fit in those ranges.

Related branches

Changed in maas:
milestone: 2.2.0rc3 → 2.2.0rc4
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Since it's impossible to predict where dynamic ranges fall, such as if an IP address is discovered via an external DHCP server, or dynamic ranges change, I'm looking at fixing this by relaxing the unique constraint, so that DISCOVERED IP addresses can exist at the same time as the same static or automatic IP address assignment.

summary: - [2.2] DISCOVERED IP addresses should never exist outside of the dynamic
- range
+ [2.2] DISCOVERED IP addresses uniqueness should not be enforeced with
+ respect to other types
description: updated
Changed in maas:
status: Triaged → Fix Committed
summary: - [2.2] DISCOVERED IP addresses uniqueness should not be enforeced with
+ [2.2] DISCOVERED IP addresses uniqueness should not be enfored with
respect to other types
Changed in maas:
assignee: nobody → Mike Pontillo (mpontillo)
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.