qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Plan for error handling in QMP
@ 2012-07-26 18:22 anthony
  2012-07-26 18:43 ` Luiz Capitulino
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: anthony @ 2012-07-26 18:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Paolo Bonzini, Markus Armbruster, Luiz Capitulino


Hi,

We had a violent^Wheated discussion on IRC about how to move forward
with Luiz's proposed error series.  I think we reached consensus.  This
note attempts to outline that.

Principles
----------
1. Errors should be free formed strings with a class code

2. There should be a small number of class codes (10-15) added
   strictly when there are specific users of a code.

3. The class code should be expressed as an enum data type in the normal
   QMP schema.  Other than this, errors should have no structure in the
   schema.[*]

4. We should drop all dictionary arguments in the current error
   mechanisms beyond 'class' and 'desc'.

5. The following errors are used by libvirt:
   - CommandNotFound: QMP parsing
   - DeviceNotActive/KVMMissingCap: ballooning
   - DeviceNotFound: drive_del
   - MigrationExpected: cont

6. We need to make sure that these errors are preserved while other
   errors should be consolidated.
   - We need to state very clear for 1.2 which errors are going away.

7. We need to make sure that anything we expose in 1.2 stays that way.
   If we're dropping 'InvalidParameterType' as a class code, it should be
   dropped in 1.2.  This could be achieved by making all existing codes
   except for those in (5) report 'UnknownError' or something.[*]

[*] I took a little bit of license with these.  Hopefully it's not
controversial.

Regards,

Anthony Liguori
   

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-07-27 14:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 18:22 [Qemu-devel] Plan for error handling in QMP anthony
2012-07-26 18:43 ` Luiz Capitulino
2012-07-26 18:47   ` Luiz Capitulino
2012-07-26 21:08     ` Anthony Liguori
2012-07-26 21:14       ` Luiz Capitulino
2012-07-26 22:47         ` Anthony Liguori
2012-07-27 14:24           ` Luiz Capitulino
2012-07-26 20:41 ` Eric Blake
2012-07-27  7:08   ` Paolo Bonzini
2012-07-26 21:16 ` Richard W.M. Jones
2012-07-27  7:08 ` Markus Armbruster
2012-07-27  7:11 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).