[pve-devel] [PATCH ha-manager 1/3] add ingore state for resources

Dietmar Maurer dietmar at proxmox.com
Wed Nov 30 06:47:21 CET 2016


> in this state the resource will not get touched by us, all commands
> (like start/stop/migrate) go directly to the VM/CT itself and not
> through the HA stack.
> The resource will not get recovered if its node fails.
> 
> Achieve that by simply removing the respective service from the
> manager_status service status hash if it is in ignored state.

IMHO you do this at the wrong place. We must handle 'ignored' resources
every time we call $haenv->read_service_config(). 
You can find those locations easily with:

# grep -r read_service_config
...
src/PVE/HA/Tools.pm:    my $conf = $haenv->read_service_config();
...

I just included one line to show you that this is relevant.

So maybe it is easier to simply return a list without ignored resources
in $haenv->read_service_config()?




More information about the pve-devel mailing list