Changing IP in existing cluster

Hi, when googling around I found Change cluster node url, but since it’s not clear from that thread I was just wondering if changing IP addresses is supported or even possible in an already existing cluster. I understand that this is not really a normal use case, but it doesn’t seem like something that has a 0% chance of having to be done in production either.

I’m just playing around with this in a lab cluster and the only references to the “old” IPs I’ve been able to find are in the raft_nodes table and the config table in the local.db. Updating these and rebooting still seems to generate an error in incusd.log though where it tries to bind to the old IP:

msg="Failed to start the daemon" err="Bind network address: listen tcp (old ip)

I can’t seem to figure out where it’s actually getting this “old” IP from. So, I guess my questions are:

  • Is it possible to get this to work, and if so how
  • Even if I get it to work, is this a terrible idea for other reasons?

incus admin cluster edit is the best way to perform those kind of changes.

1 Like