mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-04-30 01:50:36 +00:00
Check quorum when starting migration tunnel
This commit is contained in:
parent
a78ccf26fc
commit
32f9da6804
7
qm
7
qm
@ -195,7 +195,7 @@ __PACKAGE__->register_method ({
|
|||||||
name => 'mtunnel',
|
name => 'mtunnel',
|
||||||
path => 'mtunnel',
|
path => 'mtunnel',
|
||||||
method => 'POST',
|
method => 'POST',
|
||||||
description => "Used by vzmigrate - do not use manually.",
|
description => "Used by qmigrate - do not use manually.",
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {},
|
properties => {},
|
||||||
@ -204,6 +204,11 @@ __PACKAGE__->register_method ({
|
|||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
|
if (!PVE::Cluster::check_cfs_quorum(1)) {
|
||||||
|
print "no quorum\n";
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
|
|
||||||
print "tunnel online\n";
|
print "tunnel online\n";
|
||||||
*STDOUT->flush();
|
*STDOUT->flush();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user