[pve-devel] [PATCH 1/8] qmpclient : block-job-(complete|cancel) : set timeout to 10min

Alexandre Derumier aderumier at odiso.com
Tue Jan 3 15:03:12 CET 2017


like query-block-jobs.

qmp socket can be busy when block job are running

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QMPClient.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm
index 991a8f4..9e32533 100755
--- a/PVE/QMPClient.pm
+++ b/PVE/QMPClient.pm
@@ -119,6 +119,8 @@ sub cmd {
 		 $cmd->{execute} eq 'savevm-end' ||
 		 $cmd->{execute} eq 'query-backup' ||
 		 $cmd->{execute} eq 'query-block-jobs' ||
+		 $cmd->{execute} eq 'block-job-cancel' ||
+		 $cmd->{execute} eq 'block-job-complete' ||
 		 $cmd->{execute} eq 'backup-cancel' ||
 		 $cmd->{execute} eq 'query-savevm' ||
 		 $cmd->{execute} eq 'delete-drive-snapshot' || 
-- 
2.1.4




More information about the pve-devel mailing list