Rework master startup/shutdown/failover
This (big) patch reworks the master startup/shutdown and the fixes the master failover. What does the patch do? For master start/stop: - remove the old ganeti-master script and its associated man page - moves the ip start/stop directly into the backend.(Start|Stop)Master - adds start/stop of the master/rapi daemon into these functions, selectively based on the start/stop arguments - makes the master call via rpc StartMaster(start_daemons=False) to the local node so that the master IP is started - and finally changes the example init.d script to directly start and stop all three daemons, since they do the right thing (depending on master/not master role) For master failover: - moves the code from LUMasterFailover into bootstrap.MasterFailover, since we need to start/stop the master during this operation and thus it can't be executed from the master - removes the LUMasterFailover and its associated opcode Notes: ubuntu's /etc/lsb-base-logging.sh is dumb, so the messages 'not master' are not seen during startup on non-master nodes. Reviewed-by: ultrotter
Showing
- Makefile.am 0 additions, 2 deletionsMakefile.am
- daemons/ganeti-master 0 additions, 195 deletionsdaemons/ganeti-master
- daemons/ganeti-masterd 6 additions, 0 deletionsdaemons/ganeti-masterd
- doc/examples/ganeti.initd.in 45 additions, 41 deletionsdoc/examples/ganeti.initd.in
- lib/backend.py 57 additions, 10 deletionslib/backend.py
- lib/bootstrap.py 49 additions, 3 deletionslib/bootstrap.py
- lib/cmdlib.py 0 additions, 72 deletionslib/cmdlib.py
- lib/mcpu.py 0 additions, 1 deletionlib/mcpu.py
- lib/opcodes.py 0 additions, 6 deletionslib/opcodes.py
- man/ganeti-master.sgml 0 additions, 140 deletionsman/ganeti-master.sgml
- scripts/gnt-cluster 1 addition, 2 deletionsscripts/gnt-cluster
Loading
Please register or sign in to comment