The problem is in _get_ip_address_for_vmhost(). It gets any IP that's associated with the boot interface and any of its parents, and then return one of it.
We need to check what kind of IPs they are, so that we return one that MAAS configured the machine to have. What happens now it is that sometimes the right IP is returned, sometimes the machine it used while commissioning.
FWIW, deploying a second time made it work for me. It's only when I deploy right after commissioning the machine that I see this problem.
The problem is in _get_ip_ address_ for_vmhost( ). It gets any IP that's associated with the boot interface and any of its parents, and then return one of it.
We need to check what kind of IPs they are, so that we return one that MAAS configured the machine to have. What happens now it is that sometimes the right IP is returned, sometimes the machine it used while commissioning.
FWIW, deploying a second time made it work for me. It's only when I deploy right after commissioning the machine that I see this problem.