1 package PVE
::Cluster
::Setup
;
14 use PVE
::APIClient
::LWP
;
23 # relevant for joining or getting joined checks, after that versions in cluster can differ
24 use constant JOIN_API_VERSION
=> 1;
25 # (APIVER-this) is oldest version a new node in addnode can have and still be accepted
26 use constant JOIN_API_AGE_AS_CLUSTER
=> 1;
27 # (APIVER-this) is oldest version a cluster node can have to still try joining
28 use constant JOIN_API_AGE_AS_JOINEE
=> 1;
30 sub assert_we_can_join_cluster_version
{
32 my $min_version = JOIN_API_VERSION
- JOIN_API_AGE_AS_JOINEE
;
33 return if $version >= $min_version;
34 die "error: incompatible join API version on cluster ($version), local node"
35 ." has ". JOIN_API_VERSION
." and supports >= $min_version. Make sure"
36 ."all cluster nodes are up-to-date.\n";
39 sub assert_node_can_join_our_version
{
41 my $min_version = JOIN_API_VERSION
- JOIN_API_AGE_AS_CLUSTER
;
42 return if $version >= $min_version;
43 die "error: unsupported old API version on joining node ($version), cluster"
44 ." node has ". JOIN_API_VERSION
." and supports >= $min_version. Please"
45 ." upgrade node before joining\n";
48 my $pmxcfs_base_dir = PVE
::Cluster
::base_dir
();
49 my $pmxcfs_auth_dir = PVE
::Cluster
::auth_dir
();
51 # only write output if something fails
56 my $record = sub { $outbuf .= shift . "\n"; };
58 eval { PVE
::Tools
::run_command
($cmd, outfunc
=> $record, errfunc
=> $record) };
66 # Corosync related files
67 my $localclusterdir = "/etc/corosync";
68 my $localclusterconf = "$localclusterdir/corosync.conf";
69 my $authfile = "$localclusterdir/authkey";
70 my $clusterconf = "$pmxcfs_base_dir/corosync.conf";
72 # CA/certificate related files
73 my $pveca_key_fn = "$pmxcfs_auth_dir/pve-root-ca.key";
74 my $pveca_srl_fn = "$pmxcfs_auth_dir/pve-root-ca.srl";
75 my $pveca_cert_fn = "$pmxcfs_base_dir/pve-root-ca.pem";
76 # this is just a secret accessable by the web browser
77 # and is used for CSRF prevention
78 my $pvewww_key_fn = "$pmxcfs_base_dir/pve-www.key";
81 my $ssh_host_rsa_id = "/etc/ssh/ssh_host_rsa_key.pub";
82 my $ssh_cluster_known_hosts = "$pmxcfs_auth_dir/known_hosts";
83 my $ssh_cluster_authorized_keys = "$pmxcfs_auth_dir/authorized_keys";
84 my $ssh_system_known_hosts = "/etc/ssh/ssh_known_hosts";
85 my $ssh_system_server_config = "/etc/ssh/sshd_config";
87 my $ssh_root_rsa_key_private = "/root/.ssh/id_rsa";
88 my $ssh_root_rsa_key_public = "/root/.ssh/id_rsa.pub";
89 my $ssh_root_authorized_keys = "/root/.ssh/authorized_keys";
90 my $ssh_root_authorized_keys_backup = "${ssh_root_authorized_keys}.org";
91 my $ssh_root_client_config = "/root/.ssh/config";
93 # ssh related utility functions
96 # remove duplicate keys in $ssh_cluster_authorized_keys
97 # ssh-copy-id simply add keys, so the file can grow to large
100 if (-f
$ssh_cluster_authorized_keys) {
101 $data = PVE
::Tools
::file_get_contents
($ssh_cluster_authorized_keys);
106 if (-f
$ssh_root_authorized_keys_backup) {
108 $data .= PVE
::Tools
::file_get_contents
($ssh_root_authorized_keys_backup);
114 if (-f
$ssh_root_rsa_key_public) {
115 my $pub = PVE
::Tools
::file_get_contents
($ssh_root_rsa_key_public);
122 my @lines = split(/\n/, $data);
123 foreach my $line (@lines) {
124 if ($line !~ /^#/ && $line =~ m/(^|\s)ssh-(rsa|dsa)\s+(\S+)\s+\S+$/) {
125 next if $vhash->{$3}++;
127 $newdata .= "$line\n";
130 PVE
::Tools
::file_set_contents
($ssh_cluster_authorized_keys, $newdata, 0600);
132 if ($found_backup && -l
$ssh_root_authorized_keys) {
133 # everything went well, so we can remove the backup
134 unlink $ssh_root_authorized_keys_backup;
138 sub setup_sshd_config
{
141 my $conf = PVE
::Tools
::file_get_contents
($ssh_system_server_config);
143 return if $conf =~ m/^PermitRootLogin\s+yes\s*$/m;
145 if ($conf !~ s/^#?PermitRootLogin.*$/PermitRootLogin yes/m) {
147 $conf .= "\nPermitRootLogin yes\n";
150 PVE
::Tools
::file_set_contents
($ssh_system_server_config, $conf);
152 PVE
::Tools
::run_command
(['systemctl', 'reload-or-restart', 'sshd']);
155 sub setup_rootsshconfig
{
157 # create ssh key if it does not exist
158 if (! -f
$ssh_root_rsa_key_public) {
160 system ("echo|ssh-keygen -t rsa -N '' -b 2048 -f ${ssh_root_rsa_key_private}");
163 # create ssh config if it does not exist
164 if (! -f
$ssh_root_client_config) {
166 if (my $fh = IO
::File-
>new($ssh_root_client_config, O_CREAT
|O_WRONLY
|O_EXCL
, 0640)) {
167 # this is the default ciphers list from Debian's OpenSSH package (OpenSSH_7.4p1 Debian-10, OpenSSL 1.0.2k 26 Jan 2017)
168 # changed order to put AES before Chacha20 (most hardware has AESNI)
169 print $fh "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm\@openssh.com,aes256-gcm\@openssh.com,chacha20-poly1305\@openssh.com\n";
177 mkdir $pmxcfs_auth_dir;
181 if (! -f
$ssh_cluster_authorized_keys) {
183 if (-f
$ssh_root_authorized_keys) {
184 $old = PVE
::Tools
::file_get_contents
($ssh_root_authorized_keys);
186 if (my $fh = IO
::File-
>new ($ssh_cluster_authorized_keys, O_CREAT
|O_WRONLY
|O_EXCL
, 0400)) {
187 PVE
::Tools
::safe_print
($ssh_cluster_authorized_keys, $fh, $old) if $old;
193 warn "can't create shared ssh key database '$ssh_cluster_authorized_keys'\n"
194 if ! -f
$ssh_cluster_authorized_keys;
196 if (-f
$ssh_root_authorized_keys && ! -l
$ssh_root_authorized_keys) {
197 if (!rename($ssh_root_authorized_keys , $ssh_root_authorized_keys_backup)) {
198 warn "rename $ssh_root_authorized_keys failed - $!\n";
202 if (! -l
$ssh_root_authorized_keys) {
203 symlink $ssh_cluster_authorized_keys, $ssh_root_authorized_keys;
206 if (! -l
$ssh_root_authorized_keys) {
207 warn "can't create symlink for ssh keys '$ssh_root_authorized_keys' -> '$ssh_cluster_authorized_keys'\n";
209 unlink $ssh_root_authorized_keys_backup if $import_ok;
213 sub ssh_unmerge_known_hosts
{
214 return if ! -l
$ssh_system_known_hosts;
217 $old = PVE
::Tools
::file_get_contents
($ssh_cluster_known_hosts)
218 if -f
$ssh_cluster_known_hosts;
220 PVE
::Tools
::file_set_contents
($ssh_system_known_hosts, $old);
223 sub ssh_merge_known_hosts
{
224 my ($nodename, $ip_address, $createLink) = @_;
226 die "no node name specified" if !$nodename;
227 die "no ip address specified" if !$ip_address;
229 # ssh lowercases hostnames (aliases) before comparision, so we need too
230 $nodename = lc($nodename);
231 $ip_address = lc($ip_address);
233 mkdir $pmxcfs_auth_dir;
235 if (! -f
$ssh_cluster_known_hosts) {
236 if (my $fh = IO
::File-
>new($ssh_cluster_known_hosts, O_CREAT
|O_WRONLY
|O_EXCL
, 0600)) {
241 my $old = PVE
::Tools
::file_get_contents
($ssh_cluster_known_hosts);
245 if ((! -l
$ssh_system_known_hosts) && (-f
$ssh_system_known_hosts)) {
246 $new = PVE
::Tools
::file_get_contents
($ssh_system_known_hosts);
249 my $hostkey = PVE
::Tools
::file_get_contents
($ssh_host_rsa_id);
250 # Note: file sometimes containe emty lines at start, so we use multiline match
251 die "can't parse $ssh_host_rsa_id" if $hostkey !~ m/^(ssh-rsa\s\S+)(\s.*)?$/m;
260 my $merge_line = sub {
261 my ($line, $all) = @_;
263 return if $line =~ m/^\s*$/; # skip empty lines
264 return if $line =~ m/^#/; # skip comments
266 if ($line =~ m/^(\S+)\s(ssh-rsa\s\S+)(\s.*)?$/) {
269 if (!$vhash->{$key}) {
271 if ($key =~ m/\|1\|([^\|\s]+)\|([^\|\s]+)$/) {
272 my $salt = decode_base64
($1);
274 my $hmac = Digest
::HMAC_SHA1-
>new($salt);
275 $hmac->add($nodename);
276 my $hd = $hmac->b64digest . '=';
277 if ($digest eq $hd) {
278 if ($rsakey eq $hostkey) {
284 $hmac = Digest
::HMAC_SHA1-
>new($salt);
285 $hmac->add($ip_address);
286 $hd = $hmac->b64digest . '=';
287 if ($digest eq $hd) {
288 if ($rsakey eq $hostkey) {
295 $key = lc($key); # avoid duplicate entries, ssh compares lowercased
296 if ($key eq $ip_address) {
297 $found_local_ip = 1 if $rsakey eq $hostkey;
298 } elsif ($key eq $nodename) {
299 $found_nodename = 1 if $rsakey eq $hostkey;
309 while ($old && $old =~ s/^((.*?)(\n|$))//) {
311 &$merge_line($line, 1);
314 while ($new && $new =~ s/^((.*?)(\n|$))//) {
319 # add our own key if not already there
320 $data .= "$nodename $hostkey\n" if !$found_nodename;
321 $data .= "$ip_address $hostkey\n" if !$found_local_ip;
323 PVE
::Tools
::file_set_contents
($ssh_cluster_known_hosts, $data);
325 return if !$createLink;
327 unlink $ssh_system_known_hosts;
328 symlink $ssh_cluster_known_hosts, $ssh_system_known_hosts;
330 warn "can't create symlink for ssh known hosts '$ssh_system_known_hosts' -> '$ssh_cluster_known_hosts'\n"
331 if ! -l
$ssh_system_known_hosts;
335 # directory and file creation
340 PVE
::Cluster
::check_cfs_is_mounted
();
342 my @required_dirs = (
343 "$pmxcfs_base_dir/priv",
344 "$pmxcfs_base_dir/nodes",
345 "$pmxcfs_base_dir/nodes/$nodename",
346 "$pmxcfs_base_dir/nodes/$nodename/lxc",
347 "$pmxcfs_base_dir/nodes/$nodename/qemu-server",
348 "$pmxcfs_base_dir/nodes/$nodename/openvz",
349 "$pmxcfs_base_dir/nodes/$nodename/priv");
351 foreach my $dir (@required_dirs) {
353 mkdir($dir) || $! == EEXIST
|| die "unable to create directory '$dir' - $!\n";
359 my $authprivkeyfn = "$pmxcfs_auth_dir/authkey.key";
360 my $authpubkeyfn = "$pmxcfs_base_dir/authkey.pub";
362 return if -f
"$authprivkeyfn";
364 PVE
::Cluster
::check_cfs_is_mounted
();
366 PVE
::Cluster
::cfs_lock_authkey
(undef, sub {
367 mkdir $pmxcfs_auth_dir || $! == EEXIST
|| die "unable to create dir '$pmxcfs_auth_dir' - $!\n";
369 run_silent_cmd
(['openssl', 'genrsa', '-out', $authprivkeyfn, '2048']);
371 run_silent_cmd
(['openssl', 'rsa', '-in', $authprivkeyfn, '-pubout', '-out', $authpubkeyfn]);
379 return if -f
$pveca_key_fn;
382 run_silent_cmd
(['openssl', 'genrsa', '-out', $pveca_key_fn, '4096']);
385 die "unable to generate pve ca key:\n$@" if $@;
390 if (-f
$pveca_key_fn && -f
$pveca_cert_fn) {
396 # we try to generate an unique 'subject' to avoid browser problems
397 # (reused serial numbers, ..)
399 UUID
::generate
($uuid);
401 UUID
::unparse
($uuid, $uuid_str);
404 # wrap openssl with faketime to prevent bug #904
405 run_silent_cmd
(['faketime', 'yesterday', 'openssl', 'req', '-batch',
406 '-days', '3650', '-new', '-x509', '-nodes', '-key',
407 $pveca_key_fn, '-out', $pveca_cert_fn, '-subj',
408 "/CN=Proxmox Virtual Environment/OU=$uuid_str/O=PVE Cluster Manager CA/"]);
411 die "generating pve root certificate failed:\n$@" if $@;
416 sub gen_pve_ssl_key
{
419 die "no node name specified" if !$nodename;
421 my $pvessl_key_fn = "$pmxcfs_base_dir/nodes/$nodename/pve-ssl.key";
423 return if -f
$pvessl_key_fn;
426 run_silent_cmd
(['openssl', 'genrsa', '-out', $pvessl_key_fn, '2048']);
429 die "unable to generate pve ssl key for node '$nodename':\n$@" if $@;
432 sub gen_pve_www_key
{
434 return if -f
$pvewww_key_fn;
437 run_silent_cmd
(['openssl', 'genrsa', '-out', $pvewww_key_fn, '2048']);
440 die "unable to generate pve www key:\n$@" if $@;
446 PVE
::Tools
::file_set_contents
($pveca_srl_fn, $serial);
449 sub gen_pve_ssl_cert
{
450 my ($force, $nodename, $ip) = @_;
452 die "no node name specified" if !$nodename;
453 die "no IP specified" if !$ip;
455 my $pvessl_cert_fn = "$pmxcfs_base_dir/nodes/$nodename/pve-ssl.pem";
457 return if !$force && -f
$pvessl_cert_fn;
459 my $names = "IP:127.0.0.1,IP:::1,DNS:localhost";
461 my $rc = PVE
::INotify
::read_file
('resolvconf');
465 $names .= ",DNS:$nodename";
467 my $fqdn = $nodename;
468 if ($rc && $rc->{search
}) {
469 $fqdn .= ".$rc->{search}";
470 $names .= ",DNS:$fqdn";
473 my $sslconf = <<__EOD;
474 RANDFILE = /root/.rnd
479 distinguished_name = req_distinguished_name
480 req_extensions = v3_req
482 string_mask = nombstr
484 [ req_distinguished_name ]
485 organizationalUnitName = PVE Cluster Node
486 organizationName = Proxmox Virtual Environment
490 basicConstraints = CA:FALSE
491 extendedKeyUsage = serverAuth
492 subjectAltName = $names
495 my $cfgfn = "/tmp/pvesslconf-$$.tmp";
496 my $fh = IO
::File-
>new ($cfgfn, "w");
500 my $reqfn = "/tmp/pvecertreq-$$.tmp";
503 my $pvessl_key_fn = "$pmxcfs_base_dir/nodes/$nodename/pve-ssl.key";
506 'openssl', 'req', '-batch', '-new', '-config', $cfgfn, '-key', $pvessl_key_fn, '-out', $reqfn
513 die "unable to generate pve certificate request:\n$err";
516 update_serial
("0000000000000000") if ! -f
$pveca_srl_fn;
519 my $cainfo = PVE
::Certificate
::get_certificate_info
($pveca_cert_fn);
520 my $daysleft = int(($cainfo->{notafter
} - time())/(24*60*60));
522 if ($daysleft < 14) {
523 die "CA expires in less than 2 weeks, unable to generate certificate.\n";
526 # let the certificate expire a little sooner that the ca, so subtract 2 days
529 # we want the certificates to only last 2 years, since some browsers
530 # do not accept certificates with very long expiry time
531 if ($daysleft >= 2*365) {
537 'faketime', 'yesterday', # NOTE: wrap openssl with faketime to prevent bug #904
538 'openssl', 'x509', '-req', '-in', $reqfn, '-days', $daysleft, '-out', $pvessl_cert_fn,
539 '-CAkey', $pveca_key_fn, '-CA', $pveca_cert_fn, '-CAserial', $pveca_srl_fn, '-extfile', $cfgfn
546 die "unable to generate pve ssl certificate:\n$err";
553 sub gen_pve_node_files
{
554 my ($nodename, $ip, $opt_force) = @_;
556 gen_local_dirs
($nodename);
560 # make sure we have a (cluster wide) secret
561 # for CSRFR prevention
564 # make sure we have a (per node) private key
565 gen_pve_ssl_key
($nodename);
567 # make sure we have a CA
568 my $force = gen_pveca_cert
();
570 $force = 1 if $opt_force;
572 gen_pve_ssl_cert
($force, $nodename, $ip);
575 my $vzdump_cron_dummy = <<__EOD;
576 # cluster wide vzdump cron schedule
577 # Atomatically generated file - do not edit
579 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
583 sub gen_pve_vzdump_symlink
{
585 my $filename = "/etc/pve/vzdump.cron";
587 my $link_fn = "/etc/cron.d/vzdump";
589 if ((-f
$filename) && (! -l
$link_fn)) {
590 rename($link_fn, "/root/etc_cron_vzdump.org"); # make backup if file exists
591 symlink($filename, $link_fn);
595 sub gen_pve_vzdump_files
{
597 my $filename = "/etc/pve/vzdump.cron";
599 PVE
::Tools
::file_set_contents
($filename, $vzdump_cron_dummy)
602 gen_pve_vzdump_symlink
();
607 sub assert_joinable
{
608 my ($local_addr, $links, $force) = @_;
611 my $error = sub { $errors .= "* $_[0]\n"; };
614 $error->("authentication key '$authfile' already exists");
617 if (-f
$clusterconf) {
618 $error->("cluster config '$clusterconf' already exists");
621 my $vmlist = PVE
::Cluster
::get_vmlist
();
622 if ($vmlist && $vmlist->{ids
} && scalar(keys %{$vmlist->{ids
}})) {
623 $error->("this host already contains virtual guests");
626 if (PVE
::Tools
::run_command
(['corosync-quorumtool', '-l'], noerr
=> 1, quiet
=> 1) == 0) {
627 $error->("corosync is already running, is this node already in a cluster?!");
630 # check if corosync ring IPs are configured on the current nodes interfaces
632 my $ip = shift // return;
634 if (!PVE
::JSONSchema
::pve_verify_ip
($ip, 1)) {
636 eval { $ip = PVE
::Network
::get_ip_from_hostname
($host); };
638 $error->("$logid: cannot use '$host': $@\n") ;
643 my $cidr = (Net
::IP
::ip_is_ipv6
($ip)) ?
"$ip/128" : "$ip/32";
644 my $configured_ips = PVE
::Network
::get_local_ip_from_cidr
($cidr);
646 $error->("$logid: cannot use IP '$ip', not found on local node!\n")
647 if scalar(@$configured_ips) < 1;
650 $check_ip->($local_addr, 'local node address');
652 foreach my $link (keys %$links) {
653 $check_ip->($links->{$link}->{address
}, "link$link");
657 warn "detected the following error(s):\n$errors";
658 die "Check if node may join a cluster failed!\n" if !$force;
659 warn "\nWARNING : detected error but forced to continue!\n\n";
666 my $nodename = PVE
::INotify
::nodename
();
667 my $local_ip_address = PVE
::Cluster
::remote_node_ip
($nodename);
669 my $links = PVE
::Corosync
::extract_corosync_link_args
($param);
671 # check if we can join with the given parameters and current node state
672 assert_joinable
($local_ip_address, $links, $param->{force
});
675 setup_rootsshconfig
();
678 # make sure known_hosts is on local filesystem
679 ssh_unmerge_known_hosts
();
681 my $host = $param->{hostname
};
683 username
=> 'root@pam',
684 password
=> $param->{password
},
685 cookie_name
=> 'PVEAuthCookie',
691 if (my $fp = $param->{fingerprint
}) {
692 $conn_args->{cached_fingerprints
} = { uc($fp) => 1 };
694 # API schema ensures that we can only get here from CLI handler
695 $conn_args->{manual_verification
} = 1;
698 print "Establishing API connection with host '$host'\n";
700 my $conn = PVE
::APIClient
::LWP-
>new(%$conn_args);
703 # login raises an exception on failure, so if we get here we're good
704 print "Login succeeded.\n";
706 print "check cluster join API version\n";
707 my $apiver = eval { $conn->get("/cluster/config/apiversion") } // 0;
708 assert_we_can_join_cluster_version
($apiver);
711 $args->{force
} = $param->{force
} if defined($param->{force
});
712 $args->{nodeid
} = $param->{nodeid
} if $param->{nodeid
};
713 $args->{votes
} = $param->{votes
} if defined($param->{votes
});
714 foreach my $link (keys %$links) {
715 $args->{"link$link"} = PVE
::Corosync
::print_corosync_link
($links->{$link});
718 # this will be used as fallback if no links are specified
720 $args->{link0
} = $local_ip_address if $apiver == 0;
721 $args->{new_node_ip
} = $local_ip_address if $apiver >= 1;
723 print "No cluster network links passed explicitly, fallback to local node"
724 . " IP '$local_ip_address'\n";
728 $args->{apiversion
} = JOIN_API_VERSION
;
731 print "Request addition of this node\n";
732 my $res = eval { $conn->post("/cluster/config/nodes/$nodename", $args); };
734 if (ref($err) && $err->isa('PVE::APIClient::Exception')) {
735 # we received additional info about the error, show the user
737 warn "An error occurred on the cluster node: $err->{msg}\n";
738 foreach my $key (sort keys %{$err->{errors
}}) {
739 my $symbol = ($key =~ m/^warning/) ?
'*' : '!';
740 warn "$symbol $err->{errors}->{$key}\n";
743 die "Cluster join aborted!\n";
749 if (defined($res->{warnings
})) {
750 foreach my $warn (@{$res->{warnings
}}) {
751 warn "cluster: $warn\n";
755 print "Join request OK, finishing setup locally\n";
757 # added successfuly - now prepare local node
758 finish_join
($nodename, $res->{corosync_conf
}, $res->{corosync_authkey
});
762 my ($nodename, $corosync_conf, $corosync_authkey) = @_;
764 mkdir "$localclusterdir";
765 PVE
::Tools
::file_set_contents
($authfile, $corosync_authkey);
766 PVE
::Tools
::file_set_contents
($localclusterconf, $corosync_conf);
768 print "stopping pve-cluster service\n";
769 my $cmd = ['systemctl', 'stop', 'pve-cluster'];
770 PVE
::Tools
::run_command
($cmd, errmsg
=> "can't stop pve-cluster service");
772 my $dbfile = PVE
::Cluster
::cfs_backup_database
();
775 $cmd = ['systemctl', 'start', 'corosync', 'pve-cluster'];
776 PVE
::Tools
::run_command
($cmd, errmsg
=> "starting pve-cluster failed");
780 while (!PVE
::Cluster
::check_cfs_quorum
(1)) {
782 print "waiting for quorum...";
788 print "OK\n" if !$printqmsg;
790 generate_local_files
();
791 updatecerts_and_ssh
(1);
793 print "generated new node certificate, restart pveproxy and pvedaemon services\n";
794 PVE
::Tools
::run_command
(['systemctl', 'reload-or-restart', 'pvedaemon', 'pveproxy']);
796 print "successfully added node '$nodename' to cluster.\n";
799 sub generate_local_files
{
800 setup_rootsshconfig
();
801 gen_pve_vzdump_symlink
();
804 sub updatecerts_and_ssh
{
805 my ($force_new_cert, $silent) = @_;
807 my $p = sub { print "$_[0]\n" if !$silent };
809 if (!PVE
::Cluster
::check_cfs_quorum
(1)) {
810 return undef if $silent;
811 die "no quorum - unable to update files\n";
816 my $nodename = PVE
::INotify
::nodename
();
817 my $local_ip_address = PVE
::Cluster
::remote_node_ip
($nodename);
819 $p->("(re)generate node files");
820 $p->("generate new node certificate") if $force_new_cert;
821 gen_pve_node_files
($nodename, $local_ip_address, $force_new_cert);
823 $p->("merge authorized SSH keys and known hosts");
825 ssh_merge_known_hosts
($nodename, $local_ip_address, 1);
826 gen_pve_vzdump_files
();