Comment 3 for bug 1103195

Revision history for this message
Raphaƫl Badin (rvb) wrote :

Doing what I suggest above would indeed fix the immediate problem but this leads to bigger problems:

The code assumes in two places (see bellow) that the first cluster to connect is the cluster controller installed on the same machine as the region controller. This is based on the assumption that there is always a "master" cluster controller installed alongside the region controller.:
a) the first controller to connect is automatically accepted (this might not be what we want if the first controller is connecting from a remote location)
b) the code that accepts the first cluster assumes it's connecting from localhost and so does not bother trying to update nodegroup.maas_url (the url that the cluster should use to contact the MAAS server).

I think we've got two choices here:
- in the packaging, we reflect the assumption I told about above and we add maas-cluster-controller as a dependency of maas-region-controller.
- we fix the two problems I mention above ( a): only accept the first controller to connect if it's connecting from localhost, b) update nodegroup.maas_url for the first controller if the controller does not connect from localhost).