It seems like this bug could occur if you upgrade MAAS, and then try to redeploy a node without recommissioning first. More specifically, if the node has a static IP address assigned, and we never updated its subnet to link to the appropriate one, we'll hit this bug.
A possible fix is to change _claim_auto_ip() so that it attempts to locate the proper subnet (if the IP address does not have an associated subnet).
It seems like this bug could occur if you upgrade MAAS, and then try to redeploy a node without recommissioning first. More specifically, if the node has a static IP address assigned, and we never updated its subnet to link to the appropriate one, we'll hit this bug.
A possible fix is to change _claim_auto_ip() so that it attempts to locate the proper subnet (if the IP address does not have an associated subnet).