MAAS 3.6 Multiple Region Controller (conflicts between 2 controllers)

Hi there,

I have a 2 region and 2 rack controller deployment with a seperate PSQL DB with HA proxy for the 2 region controllers. They were working great until I did the following.

TLDR: (deleted one region controller, created a 2nd one from the 1st, and now in the MAAS UI, it’s switching between both region controllers and only showing one of them at a time in the UI)

Steps to reproduce:
I was doing apt update/install on the 2 region controllers, and one of them failed, so i deleted it and copied over the primary one, booted it up and went in to change it’s IP.

then realized that the machine-id was the same, deleted that, regenerated it, and from then on, it keeps switching between the 2 region controllers.

Yeah, that seems to be a good way to mess up your installation

I also noticed in the Region Controller Install, it tells you to copy the regiond.conf over to the 2nd one, and use that file.

Inside that file is a maas_url field, that IP points to the original RegionD, do i need to change it to match the static ip?

It must match the IP of the local machine that is hosting MAAS

Is there a PSQL command to remove both Region Controllers (since it’s hidden from the UI) so that they can repopulate themselves after connecting to PSQL DB?

It would be much easier if you could start from scratch with a clean environment. It’s hard to say what you might have broken with these misconfigurations.