5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-11 16:58:28 +03:00

Check quorum when starting migration tunnel

This commit is contained in:
Dietmar Maurer 2011-09-09 10:39:24 +02:00
parent a78ccf26fc
commit 32f9da6804

7
qm
View File

@ -195,7 +195,7 @@ __PACKAGE__->register_method ({
name => 'mtunnel',
path => 'mtunnel',
method => 'POST',
description => "Used by vzmigrate - do not use manually.",
description => "Used by qmigrate - do not use manually.",
parameters => {
additionalProperties => 0,
properties => {},
@ -204,6 +204,11 @@ __PACKAGE__->register_method ({
code => sub {
my ($param) = @_;
if (!PVE::Cluster::check_cfs_quorum(1)) {
print "no quorum\n";
return undef;
}
print "tunnel online\n";
*STDOUT->flush();