[pve-devel] r6501 - pve-cluster/trunk/data/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Aug 19 08:22:25 CEST 2011


Author: dietmar
Date: 2011-08-19 08:22:25 +0200 (Fri, 19 Aug 2011)
New Revision: 6501

Modified:
   pve-cluster/trunk/data/PVE/Cluster.pm
   pve-cluster/trunk/data/PVE/pvecm
Log:
fix previous fix


Modified: pve-cluster/trunk/data/PVE/Cluster.pm
===================================================================
--- pve-cluster/trunk/data/PVE/Cluster.pm	2011-08-19 06:15:31 UTC (rev 6500)
+++ pve-cluster/trunk/data/PVE/Cluster.pm	2011-08-19 06:22:25 UTC (rev 6501)
@@ -330,6 +330,8 @@
 
     my $res = PVE::IPCC::ipcc_send_rec($msgid, $data);
 
+    die "ipcc_send_rec failed: $!\n" if !defined($res) && ($! != 0);
+
     return decode_json($res);
 };
 

Modified: pve-cluster/trunk/data/PVE/pvecm
===================================================================
--- pve-cluster/trunk/data/PVE/pvecm	2011-08-19 06:15:31 UTC (rev 6500)
+++ pve-cluster/trunk/data/PVE/pvecm	2011-08-19 06:22:25 UTC (rev 6501)
@@ -626,10 +626,11 @@
 };
 
 my $cmd = shift;
- 
-PVE::Cluster::check_cfs_is_mounted();
 
-PVE::Cluster::cfs_update();
+if ($cmd && $cmd ne 'printmanpod' && $cmd ne 'verifyapi') {
+    PVE::Cluster::check_cfs_is_mounted();
+    PVE::Cluster::cfs_update();
+}
 
 PVE::CLIHandler::handle_cmd($cmddef, "pvecm", $cmd, \@ARGV, undef, $0);
 




More information about the pve-devel mailing list