1. /etc/maas/regiond.conf:maas_url was http://<ip>/MAAS
2. /etc/maas/rackd.conf:maas_url was http://localhost:5240/MAAS
3. /etc/maas/regiond.conf was updated to http://<ip>:5240/MAAS & /etc/maas/rackd.conf was left as http://localhost:5240/MAAS
4. restart maas-regiond
5. cloud-config-url was still incorrect, pointing to http://<ip>/MAAS as per the above bug.
To solve:
6. /etc/maas/rackd.conf:maas_url http://<ip>:5240/MAAS fixed it.
From IRC discussion:
1. /etc/maas/ regiond. conf:maas_ url was http://<ip>/MAAS rackd.conf: maas_url was http:// localhost: 5240/MAAS regiond. conf was updated to http://<ip>:5240/MAAS & /etc/maas/ rackd.conf was left as http:// localhost: 5240/MAAS
2. /etc/maas/
3. /etc/maas/
4. restart maas-regiond
5. cloud-config-url was still incorrect, pointing to http://<ip>/MAAS as per the above bug.
To solve:
6. /etc/maas/ rackd.conf: maas_url http://<ip>:5240/MAAS fixed it.