IP Address changed for a slave within a Pool, How do I reconfigure it?
-
Hi there, just recently did a bunch of changes to my internet infrastructure and lan, I've got everything working again except one of my hosts.
It's complaining that the master node is unreachable, this is due to an IP change, I've set a static one within OPNSense so that shouldn't be a problem in the future.
I can't seem to find a way to change the IP for this Host in XOA within the pool manager. I've tried forgetting it, I've tried removing it from the pool via keyboard and vga... says it isn't in one. Xapi is throwing errors and is unresponsive.
How should I go around solving this kerfuffle?
Any help is greatly appreciated, thanks. - MrXeon.
-
If you changed the master IP, the XAPI slave can't reach the master anymore, and so you can't make any modification via XAPI (since everything is going to the master, and then if needed to the slave).
On the slave, you might need to modify manually the master IP address in
/etc/xensource/pool.conf
. You should have:
slave:<OLD MASTER IP>
and change it toslave:<NEW MASTER IP>
-
@olivierlambert said in IP Address changed for a slave within a Pool, How do I reconfigure it?:
If you changed the master IP, the XAPI slave can't reach the master anymore, and so you can't make any modification via XAPI (since everything is going to the master, and then if needed to the slave).
On the slave, you might need to modify manually the master IP address in
/etc/xensource/pool.conf
. You should have:
slave:<OLD MASTER IP>
and change it toslave:<NEW MASTER IP>
I had exactly this error an hour ago. I changed the management interface IP, but the member server could not re-establish contact. Looking in xensource logs I saw it was trying to connect using the old IP, but I thought this was stored in the xapi database and could not be updated...
-
On a slave host, the database is in read only. If the slave lost the connection with the master, there's no way to make any change into the "local" slave XAPI database.
-
@olivierlambert said in IP Address changed for a slave within a Pool, How do I reconfigure it?:
On a slave host, the database is in read only. If the slave lost the connection with the master, there's no way to make any change into the "local" slave XAPI database.
It makes sense. It would have been nice if pool members get the updated IP through XAPI before the actual change on the master happens.
-
I suppose it's not always possible in some cases. But yeah, in theory, you should tell all the slaves to point to the new IP, and then change it locally, hoping the IP change will not fail (otherwise, you are also stuck).
It's not a simple thing as one could imagine in the first place
-
For now, a warning in XOA when changing the management IP would be nice. It could include an instruction on how to update the pool members after the IP of the master was changed.
Is it possible to use hostnames instead of IPs? It could make things easier?
-
@olivierlambert Looks possible, since I've clicked forget this particular slave/host in XOA, how would I go around adding it back there?
The slave is missing from the masters pool list.