Some batcher fixes
authorIustin Pop <iustin@google.com>
Thu, 12 Feb 2009 17:03:58 +0000 (17:03 +0000)
committerIustin Pop <iustin@google.com>
Thu, 12 Feb 2009 17:03:58 +0000 (17:03 +0000)
commit4082e6f9334201d7df62a54838a3252eec95faa7
treed47dd18170042ade812e764474aa3dcf81414d33
parent5b4603660e24ada5b7bdb4f62ce37dd5aabdeea3
Some batcher fixes

Currently the batcher hypervisor parameter must be a dict with one
element (e.g. {"xen-hvm": { "acpi": true }}). This is overly complex and
hard to validate correctly; the patch splits it in two:
  - one "hypervisor" string parameter, with the name of the hypervisor
  - one "hvparams" dictionary, with the hypervisor parameters

The patch also changes the error handling in parsing the definition file
- since this is not a long-running file, we are less concerned with safe
closing of the file, and more with presenting meaningful error
messages.

Reviewed-by: killerfoxi
scripts/gnt-instance