Has a MAAS region or rack controller ever run on that machine? Did one of your machines go missing? While going through the code I noticed that maas-rack register isn't deleting /var/lib/maas/maas_id. I'm wondering if a previous install had created /var/lib/maas/maas_id and when you used the maas-rack register command it connected with the old system_id and stole an existing node instead of creating a new one.
Has a MAAS region or rack controller ever run on that machine? Did one of your machines go missing? While going through the code I noticed that maas-rack register isn't deleting /var/lib/ maas/maas_ id. I'm wondering if a previous install had created /var/lib/ maas/maas_ id and when you used the maas-rack register command it connected with the old system_id and stole an existing node instead of creating a new one.