cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
05bba0
From c7a7d2970163c29da5445df54b0fabe28021b275 Mon Sep 17 00:00:00 2001
05bba0
From: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
Date: Wed, 27 May 2015 14:50:33 +0200
05bba0
Subject: [PATCH 7/8] Remove redhat extensions from qmp-events.txt
05bba0
05bba0
Message-id: <021c5d770a75ff1569b7a43a9a08553c9814214c.1432733950.git.mrezanin@redhat.com>
05bba0
Patchwork-id: 65136
05bba0
O-Subject: [RHEL-7.2 qemu-kvm PATCH 1/2] Remove redhat extensions from qmp-events.txt
05bba0
Bugzilla: 1222833
05bba0
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
05bba0
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
05bba0
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
05bba0
05bba0
From: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
05bba0
We document __com.redhat_reason and __com.redhat_debug_info event members
05bba0
in qmp-events. We describe them as RHEL 7 extension. This is true for
05bba0
qemu-kvm pacakge only, qemu-kvm-rhev uses upstream solution.
05bba0
05bba0
Remove this fields from documentation so users do not expect them so they
05bba0
avoid issues on update to different version of qemu-kvm.
05bba0
05bba0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
---
05bba0
 QMP/qmp-events.txt | 17 +----------------
05bba0
 1 file changed, 1 insertion(+), 16 deletions(-)
05bba0
05bba0
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
05bba0
index ec4e4b9..7d16a6d 100644
05bba0
--- a/QMP/qmp-events.txt
05bba0
+++ b/QMP/qmp-events.txt
05bba0
@@ -146,28 +146,13 @@ Data:
05bba0
     "ignore": error has been ignored, the job may fail later
05bba0
     "report": error will be reported and the job canceled
05bba0
     "stop": error caused job to be paused
05bba0
-- "__com.redhat_reason": error reason, this is a RHEL7 extension, it's one of
05bba0
-  the following (json-string):
05bba0
-    "eio": errno EIO
05bba0
-    "eperm": errno EPERM
05bba0
-    "enospc": errno ENOSPC
05bba0
-    "eother": any other errno (other than EIO, EPERM, ENOSPC)
05bba0
-- "__com.redhat_debug_info": RHEL7 extension containing debug information for
05bba0
-                             humans, applications should NOT read any
05bba0
-                             information from this member (json-object):
05bba0
-    - "errno": errno value (json-int)
05bba0
-    - "message": error message returned by strerror() (json-string)
05bba0
 
05bba0
 Example:
05bba0
 
05bba0
 { "event": "BLOCK_JOB_ERROR",
05bba0
     "data": { "device": "ide0-hd1",
05bba0
               "operation": "write",
05bba0
-              "action": "stop",
05bba0
-              "__com.redhat_reason": "enospc",
05bba0
-              "__com.redhat_debug_info": {
05bba0
-                  "message": "No space left on device",
05bba0
-                  "errno": 28 } }
05bba0
+              "action": "stop" },
05bba0
     "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
05bba0
 
05bba0
 BLOCK_JOB_READY
05bba0
-- 
05bba0
1.8.3.1
05bba0