Remove Federation configuration

Hi all,

we setup federation between two datacenters / zones.
If I want to remove federation again (e.g. we want to test a major update on one zone), is it sufficient to just change back the config in oned.conf? (–> replace master / slave again with Standalone)? Or do we have to restore the database somehow (as we imported dumps from the master zone to the slave)?

Hi,

You can remove the federation, if you don’t have HA configured, by following the steps below:

  • SLAVE: systemctl stop opennebula
  • MASTER: onezone delete <ZONE_ID>
  • MASTER: undo federation config in /etc/one/oned.conf with:
FEDERATION = [
    MODE          = "STANDALONE",
    ZONE_ID       = 0,
    SERVER_ID     = -1,
    MASTER_ONED   = ""
]
  • MASTER: systemctl restart opennebula
  • SLAVE: undo federation config in /etc/one/oned.conf with:
FEDERATION = [
    MODE          = "STANDALONE",
    ZONE_ID       = 0,
    SERVER_ID     = -1,
    MASTER_ONED   = ""
]
  • SLAVE: systemctl start opennebula
  • SLAVE: onezone delete <ZONE_ID>
  • MASTER,SLAVE: onezone update 0 and change the IP by localhost.

Cheers.