my $plugin = PVE::HA::Resources->lookup($type);
$plugin->verify_name($name);
+ $plugin->exists($name);
+
my $opts = $plugin->check_config($sid, $param, 1, 1);
PVE::HA::Config::lock_ha_domain(
my ($sid, $type, $name) = PVE::HA::Tools::parse_sid(extract_param($param, 'sid'));
+ PVE::HA::Config::service_is_ha_managed($sid);
+
PVE::HA::Config::lock_ha_domain(
sub {
my ($sid, $type, $name) = PVE::HA::Tools::parse_sid(extract_param($param, 'sid'));
+ PVE::HA::Config::service_is_ha_managed($sid);
+
PVE::HA::Config::queue_crm_commands("migrate $sid $param->{node}");
return undef;
my ($sid, $type, $name) = PVE::HA::Tools::parse_sid(extract_param($param, 'sid'));
+ PVE::HA::Config::service_is_ha_managed($sid);
+
PVE::HA::Config::queue_crm_commands("relocate $sid $param->{node}");
return undef;