]> git.proxmox.com Git - pve-ha-manager.git/log
pve-ha-manager.git
9 years agoadd basic LRM functionality
Dietmar Maurer [Sat, 14 Feb 2015 09:38:27 +0000 (10:38 +0100)]
add basic LRM functionality

9 years agoimprove documentation
Dietmar Maurer [Wed, 11 Feb 2015 10:19:44 +0000 (11:19 +0100)]
improve documentation

9 years agouse Daemon class from pve-common
Dietmar Maurer [Tue, 16 Dec 2014 10:16:15 +0000 (11:16 +0100)]
use Daemon class from pve-common

9 years agoadd restart_on_error option
Dietmar Maurer [Tue, 16 Dec 2014 09:58:32 +0000 (10:58 +0100)]
add restart_on_error option

9 years agoadd generic Daemon class
Dietmar Maurer [Mon, 15 Dec 2014 12:34:59 +0000 (13:34 +0100)]
add generic Daemon class

9 years agoimplement crm stop
Dietmar Maurer [Fri, 12 Dec 2014 12:06:13 +0000 (13:06 +0100)]
implement crm stop

9 years agofake get_ha_manager_lock fro Env::PVE2
Dietmar Maurer [Fri, 12 Dec 2014 11:59:27 +0000 (12:59 +0100)]
fake get_ha_manager_lock fro Env::PVE2

9 years agocrm: allow shutdown in slave mode
Dietmar Maurer [Fri, 12 Dec 2014 11:58:14 +0000 (12:58 +0100)]
crm: allow shutdown in slave mode

9 years agocreate Env class for PVE
Dietmar Maurer [Fri, 12 Dec 2014 11:13:55 +0000 (12:13 +0100)]
create Env class for PVE

9 years agoadd more servcie by default (2 for each node)
Dietmar Maurer [Fri, 12 Dec 2014 10:32:05 +0000 (11:32 +0100)]
add more servcie by default (2 for each node)

9 years agoimplement set_service_state callback
Dietmar Maurer [Fri, 12 Dec 2014 10:26:42 +0000 (11:26 +0100)]
implement set_service_state callback

9 years agogui: display manager status
Dietmar Maurer [Fri, 12 Dec 2014 10:13:09 +0000 (11:13 +0100)]
gui: display manager status

9 years agogui: improve layout
Dietmar Maurer [Fri, 12 Dec 2014 06:57:24 +0000 (07:57 +0100)]
gui: improve layout

9 years agocode cleanup
Dietmar Maurer [Fri, 12 Dec 2014 06:22:07 +0000 (07:22 +0100)]
code cleanup

9 years agodisplay service status
Dietmar Maurer [Thu, 11 Dec 2014 16:13:58 +0000 (17:13 +0100)]
display service status

9 years agogui: add service controls
Dietmar Maurer [Thu, 11 Dec 2014 15:58:02 +0000 (16:58 +0100)]
gui: add service controls

9 years agouse uppercase for master node status
Dietmar Maurer [Thu, 11 Dec 2014 11:38:45 +0000 (12:38 +0100)]
use uppercase for master node status

9 years agocorrectly update lock time
Dietmar Maurer [Thu, 11 Dec 2014 11:30:31 +0000 (12:30 +0100)]
correctly update lock time

9 years agodisplay node status
Dietmar Maurer [Thu, 11 Dec 2014 11:09:29 +0000 (12:09 +0100)]
display node status

9 years agowrite default service config
Dietmar Maurer [Thu, 11 Dec 2014 11:08:44 +0000 (12:08 +0100)]
write default service config

9 years agogui: redirect output to log window
Dietmar Maurer [Thu, 11 Dec 2014 07:52:46 +0000 (08:52 +0100)]
gui: redirect output to log window

9 years agouse GTK for GUI
Dietmar Maurer [Wed, 10 Dec 2014 16:47:22 +0000 (17:47 +0100)]
use GTK for GUI

9 years agoadd script to start simulation
Dietmar Maurer [Wed, 10 Dec 2014 05:51:17 +0000 (06:51 +0100)]
add script to start simulation

9 years agocreate default hardware_status file (3 node cluster)
Dietmar Maurer [Tue, 9 Dec 2014 05:46:10 +0000 (06:46 +0100)]
create default hardware_status file (3 node cluster)

9 years agonew realtime ENV class
Dietmar Maurer [Sun, 7 Dec 2014 09:48:33 +0000 (10:48 +0100)]
new realtime ENV class

9 years agosplit classes
Dietmar Maurer [Sun, 7 Dec 2014 09:42:15 +0000 (10:42 +0100)]
split classes

9 years agorename Sim/Env.pm to Sim/TestEnv.pm
Dietmar Maurer [Sun, 7 Dec 2014 09:25:02 +0000 (10:25 +0100)]
rename Sim/Env.pm to Sim/TestEnv.pm

9 years agoadd check for looptime
Dietmar Maurer [Sun, 7 Dec 2014 09:15:31 +0000 (10:15 +0100)]
add check for looptime

9 years agoimprove loop simulation - use same timeouts as with real hardware
Dietmar Maurer [Sun, 7 Dec 2014 09:09:14 +0000 (10:09 +0100)]
improve loop simulation - use same timeouts as with real hardware

9 years agosplit classes
Dietmar Maurer [Sun, 7 Dec 2014 09:01:24 +0000 (10:01 +0100)]
split classes

9 years agosimulate CRM and LRM - cleanup logs
Dietmar Maurer [Sat, 6 Dec 2014 16:26:58 +0000 (17:26 +0100)]
simulate CRM and LRM - cleanup logs

9 years agoadd code for LRM (Local Resource Manager)
Dietmar Maurer [Sat, 6 Dec 2014 14:36:17 +0000 (15:36 +0100)]
add code for LRM (Local Resource Manager)

9 years agocleanup CRM state machine
Dietmar Maurer [Sat, 6 Dec 2014 14:35:47 +0000 (15:35 +0100)]
cleanup CRM state machine

9 years agouse better name for local status
Dietmar Maurer [Sat, 6 Dec 2014 10:24:06 +0000 (11:24 +0100)]
use better name for local status

9 years agocleanup CRM state machine
Dietmar Maurer [Sat, 6 Dec 2014 10:05:15 +0000 (11:05 +0100)]
cleanup CRM state machine

9 years agomove common code to separate file
Dietmar Maurer [Sat, 6 Dec 2014 10:04:20 +0000 (11:04 +0100)]
move common code to separate file

9 years agorenamed Server to CRM
Dietmar Maurer [Sat, 6 Dec 2014 07:47:24 +0000 (08:47 +0100)]
renamed Server to CRM

9 years agoadd fake binary for pve-ha-crm
Dietmar Maurer [Fri, 5 Dec 2014 16:25:57 +0000 (17:25 +0100)]
add fake binary for pve-ha-crm

9 years agorename pve-ha-manager to pve-ha-simulator
Dietmar Maurer [Fri, 5 Dec 2014 16:08:57 +0000 (17:08 +0100)]
rename pve-ha-manager to pve-ha-simulator

9 years agocontinue simulation till 500 seconds after last command
Dietmar Maurer [Fri, 5 Dec 2014 11:47:33 +0000 (12:47 +0100)]
continue simulation till 500 seconds after last command

9 years agowrite_local_status: correctly pass parameters
Dietmar Maurer [Fri, 5 Dec 2014 11:47:04 +0000 (12:47 +0100)]
write_local_status: correctly pass parameters

9 years agocorrectly handle fenced node in crm
Dietmar Maurer [Fri, 5 Dec 2014 11:30:37 +0000 (12:30 +0100)]
correctly handle fenced node in crm

9 years agoexecute 'power <node> off' when fencing, improve logging
Dietmar Maurer [Fri, 5 Dec 2014 11:01:17 +0000 (12:01 +0100)]
execute 'power <node> off' when fencing, improve logging

9 years agofix watchdog check - check all nodes after time progress
Dietmar Maurer [Fri, 5 Dec 2014 09:13:40 +0000 (10:13 +0100)]
fix watchdog check - check all nodes after time progress

9 years agouse watchdog in simulation
Dietmar Maurer [Fri, 5 Dec 2014 09:05:05 +0000 (10:05 +0100)]
use watchdog in simulation

9 years agoimplement watchdog simulation
Dietmar Maurer [Fri, 5 Dec 2014 07:18:19 +0000 (08:18 +0100)]
implement watchdog simulation

9 years agouse plugin architecture instead of inheritance
Dietmar Maurer [Fri, 5 Dec 2014 05:42:20 +0000 (06:42 +0100)]
use plugin architecture instead of inheritance

So that we have a well defined interface in PVE::HA::Env.

9 years agorename PVE/HA/SimEnv.pm -> PVE/HA/Sim/Env.pm
Dietmar Maurer [Thu, 4 Dec 2014 15:44:58 +0000 (16:44 +0100)]
rename PVE/HA/SimEnv.pm -> PVE/HA/Sim/Env.pm

9 years agorename PVE/HA/SimCluster.pm -> PVE/HA/Sim/Hardware.pm
Dietmar Maurer [Thu, 4 Dec 2014 15:39:22 +0000 (16:39 +0100)]
rename PVE/HA/SimCluster.pm -> PVE/HA/Sim/Hardware.pm

9 years agocleanup locking code, fix bug in quorate()
Dietmar Maurer [Thu, 4 Dec 2014 13:01:07 +0000 (14:01 +0100)]
cleanup locking code, fix bug in quorate()

9 years agoSimCluster: setup status dir inside new
Dietmar Maurer [Thu, 4 Dec 2014 11:08:15 +0000 (12:08 +0100)]
SimCluster: setup status dir inside new

9 years agoimprove log format
Dietmar Maurer [Thu, 4 Dec 2014 10:42:21 +0000 (11:42 +0100)]
improve log format

9 years agofix loop_count
Dietmar Maurer [Thu, 4 Dec 2014 10:33:21 +0000 (11:33 +0100)]
fix loop_count

9 years agobetter power on/off simulation
Dietmar Maurer [Thu, 4 Dec 2014 10:25:51 +0000 (11:25 +0100)]
better power on/off simulation

9 years agoSimCluster: new class to simulate a cluster
Dietmar Maurer [Thu, 4 Dec 2014 10:11:42 +0000 (11:11 +0100)]
SimCluster: new class to simulate a cluster

9 years agotry to simulate all nodes
Dietmar Maurer [Thu, 4 Dec 2014 09:14:25 +0000 (10:14 +0100)]
try to simulate all nodes

9 years agosplit out server code
Dietmar Maurer [Thu, 4 Dec 2014 08:27:51 +0000 (09:27 +0100)]
split out server code

9 years agouse command list to simulate membership
Dietmar Maurer [Wed, 3 Dec 2014 17:01:10 +0000 (18:01 +0100)]
use command list to simulate membership

9 years agoadd check for undefined value
Dietmar Maurer [Wed, 3 Dec 2014 15:25:04 +0000 (16:25 +0100)]
add check for undefined value

9 years agoimplement self fencing
Dietmar Maurer [Wed, 3 Dec 2014 15:18:50 +0000 (16:18 +0100)]
implement self fencing

9 years agosimulate cluster locking
Dietmar Maurer [Wed, 3 Dec 2014 06:46:46 +0000 (07:46 +0100)]
simulate cluster locking

9 years agoadd option --nodiff
Dietmar Maurer [Wed, 3 Dec 2014 06:18:31 +0000 (07:18 +0100)]
add option --nodiff

9 years agoupdate docu
Dietmar Maurer [Wed, 3 Dec 2014 05:58:38 +0000 (06:58 +0100)]
update docu

9 years agouse sparate method to change service state
Dietmar Maurer [Tue, 2 Dec 2014 18:47:02 +0000 (19:47 +0100)]
use sparate method to change service state

So that we get nice log messages

9 years agoadd service_state to track VM locations with SimEnv
Dietmar Maurer [Tue, 2 Dec 2014 06:12:12 +0000 (07:12 +0100)]
add service_state to track VM locations with SimEnv

Also improve state machines

9 years agoadd service status
Dietmar Maurer [Mon, 1 Dec 2014 10:44:08 +0000 (11:44 +0100)]
add service status

9 years agosimplify manager code
Dietmar Maurer [Mon, 1 Dec 2014 10:31:36 +0000 (11:31 +0100)]
simplify manager code

9 years agoimprove manager livecycle, add cleanup
Dietmar Maurer [Mon, 1 Dec 2014 10:14:21 +0000 (11:14 +0100)]
improve manager livecycle, add cleanup

9 years agoread membership from file
Dietmar Maurer [Mon, 1 Dec 2014 06:46:32 +0000 (07:46 +0100)]
read membership from file

9 years agoread hostname from testdir
Dietmar Maurer [Mon, 1 Dec 2014 06:32:52 +0000 (07:32 +0100)]
read hostname from testdir

9 years agoadd regression tester
Dietmar Maurer [Mon, 1 Dec 2014 06:06:38 +0000 (07:06 +0100)]
add regression tester

9 years agoadd make files
Dietmar Maurer [Mon, 1 Dec 2014 05:22:52 +0000 (06:22 +0100)]
add make files

9 years agointroduce new HA::Manger class
Dietmar Maurer [Sun, 30 Nov 2014 11:30:57 +0000 (12:30 +0100)]
introduce new HA::Manger class

9 years agoimplement read/write manager status
Dietmar Maurer [Sun, 30 Nov 2014 10:38:55 +0000 (11:38 +0100)]
implement read/write manager status

9 years agoimplement read_manager_status/write_manager_status
Dietmar Maurer [Sun, 30 Nov 2014 10:16:57 +0000 (11:16 +0100)]
implement read_manager_status/write_manager_status

9 years agointroduce slave mode
Dietmar Maurer [Sun, 30 Nov 2014 09:42:59 +0000 (10:42 +0100)]
introduce slave mode

9 years agorename startup to wait_for_quorum
Dietmar Maurer [Sun, 30 Nov 2014 09:23:01 +0000 (10:23 +0100)]
rename startup to wait_for_quorum

9 years agoimplement helper to return quorum info
Dietmar Maurer [Sun, 30 Nov 2014 09:13:37 +0000 (10:13 +0100)]
implement helper to return quorum info

9 years agointroduce read_local_status/write_local_status
Dietmar Maurer [Sun, 30 Nov 2014 09:04:41 +0000 (10:04 +0100)]
introduce read_local_status/write_local_status

9 years agoassume nodes are only if we have no proove
Dietmar Maurer [Sat, 29 Nov 2014 16:01:01 +0000 (17:01 +0100)]
assume nodes are only if we have no proove

9 years agoimplement class NodeStatus to track node status and fencing
Dietmar Maurer [Sat, 29 Nov 2014 15:33:29 +0000 (16:33 +0100)]
implement class NodeStatus to track node status and fencing

9 years agointroduce new 'error' state
Dietmar Maurer [Sat, 29 Nov 2014 14:50:05 +0000 (15:50 +0100)]
introduce new 'error' state

9 years agoimplement get_node_info
Dietmar Maurer [Sat, 29 Nov 2014 14:40:56 +0000 (15:40 +0100)]
implement get_node_info

9 years agoimplement sleep_until to add constant delay
Dietmar Maurer [Sat, 29 Nov 2014 13:01:50 +0000 (14:01 +0100)]
implement sleep_until to add constant delay

9 years agoadd a way to simulate node membership
Dietmar Maurer [Sat, 29 Nov 2014 12:42:08 +0000 (13:42 +0100)]
add a way to simulate node membership

9 years agoinitial commit
Dietmar Maurer [Sat, 29 Nov 2014 10:14:59 +0000 (11:14 +0100)]
initial commit