Comment 3 for bug 1620458

Revision history for this message
Andres Rodriguez (andreserl) wrote :

When MAAS installs, it tries to determine which is the interface / IP combination with the default gateway, so that it sets it in the configuration. That IP address is then placed in /etc/maas/regiond.conf.

Looking at your log, cloud-init is trying to contact 192.168.2.73, which seems to be coming from /etc/maas/regiond.conf. If you no longer have that IP on your system. The reason why that may be is because /etc/maas/rackd.conf is pointing to localhost for the MAAS URL. So, to fix this, do the following:

1. update /etc/maas/rackd.conf maas_url with the IP address the machines can communicate to. This is the Region IP address (if Rack and Region are in the same machine, I believe this would be 192.168.2.101 based on your logs). So:

maas_url = http://192.168.2.101:5240/MAAS

2. update your /etc/maas/regiond.conf to not use 192.168.2.73. The IP address you chose here doesn't have to be 192.168.2.101, but it can be any IP machines can reach to. Note that this IP is only used if MAAS cannot automaticlaly determine what region IP address the machine should use, and this only happens if rackd.conf is pointing to 'localhost'