NUC/vPro using DHCP-allocated IP will fail after install provides static IP to host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned |
Bug Description
When using the Intel NUCs or any system which shares the MAC address between the BMC and the host (AIUI vPro does), there is an inherent race in MAAS that will make the BMC IP change upon installation. Here's how it works:
- When powered up for the first time, BMC acquires IP from MAAS DHCP dynamic range
- When the machine comes up to enlist the same IP is provided for the host
- We enter that IP address and the MAC in the AMT configuration for the host; at this point the BMC is reachable
- Upon installation, an IP from the static range is granted to the host, and a static host map entry is created
- When the BMC comes back to renew its lease, it will now receive the static IP
- As that IP differs from the IP we configured in the AMT configuration, the host goes unreachable
I realize using DHCP in a situation like this is daft, but users are likely to at least try it at first (and perhaps thus they can find this bug). And perhaps there is a way to address this by somehow matching on the client information the BMC passes to the DHCP server and providing it the original IP address granted dynamically.
Marking this as high because, as you said, although it is a bad idea to use DHCP to configure the BMCs' IP, the failure mode here is particularly horrible. paste.ubuntu. com/9676611/. There is no Vendor class identifier (option 60) or anything useful in the request.
I had a look at the kind of DHCP request that AMT does and it doesn't seem to contain anything obvious that we could use to identify the DHCP request (and have isc-dhcpd treat it differently from the request that comes from the host): http://