[1.9] DHCP interface automatically obtains an IP even when the subnet is unmanaged

Bug #1519090 reported by Andres Rodriguez
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mike Pontillo
Mike Pontillo
Mike Pontillo

Bug Description

I have a node on an interface that's connected to a subnetwork that MAAS does not manage (meaning, it does not have control of DHCP). However, when I set this interface to DHCP in the Node Details Page, MAAS automatically and erroneously assigns an IP address to it. This is erroneous because I simply want the interface to be configured as DHCP in /e/n/i, and have it DHCP from an external router.

What should happen is:

1. if subnetwork is unmanaged (no DHCP by MAAS), MAAS should *not* automatically assign an IP.
2. On deployment /e/n/i will reflect the interface as DHCP
3. The interface will successfully DHCP from MAAS.

Obviously, this means that no DNS record will be created against this interface, provided MAAS does not manage DHCP.

Related branches

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

I have tested this extensively today and did not see this exact behavior. However, when the interface is set to "Auto assign", I saw similar behavior in some cases.

In previous versions of MAAS, having a dynamic range on an unmanaged cluster interface meant that we expect MAAS to use DHCP. Upon migrating to 1.9, those DHCP links became "AUTO" links. Thus we see this regression.

I linked a branch which fixes half of this issue by making unmanaged networks consistent with managed networks. That is, if you assign a static range on an unmanaged network and use AUTO, we will assign out of the static range. If it only has a dynamic range, you will get an error. (you must configure the interface to use DHCP, as this bug implies it was originally, but I suspect it wasn't - due to a migration bug.) If the cluster interface has neither, MAAS will assume it can use the entire subnet (minus any configured routers, etc) for allocation.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers