xenopsd should log via syslog by default.

Fixes #15.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix Devices.list_frontends (bad Re_str.split)

This fixes operations like VBD.eject which otherwise couldn't find
the xenstore device.

Fixes #14

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Log errors from hotplug scripts and continue

It's better to continue with a cleanup than leave a VM in a bad state
(especially given that we aren't currently relying on the hotplug scripts
to do anything particularly significant)

In the case of an HVM CDROM which is ejected, the "type" key will be
set to "" which causes /etc/xen/scripts/block to fail.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
If we're running hotplug scripts manually, then wait for the backend to close, not for the hotplug scripts to run (!)

Fixes #16

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Bump to version 0.9.4.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #17 from robhoes/xenlight4

Adding the Xenlight backend!
Update version to 0.9.5

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Receive the memory image over a 'channel' sent via an RPC, rather than ad-hoc fd passing

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Remove the handling of loop devices, since this is all handled by the storage plugins.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
When cleaning up a VIF, run the hotplug scripts before waiting for them to finish (!)

Fixes #19

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix VIF hotplug scripts following multi-xenopsd support

The script needs to find the vif metadata, which is stored
in a different directory for each xenopsd backend. We plumb through
the name of the backend so the script can find it.

With this change, the interface is properly brought up and
port-locking rules activated.

Fixes #18

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Create all VBD devices, including the first one (!)

A spurious 'List.tl' got merged in, causing the first disk to
be ignored.

Fixes #20

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Improve the logging around the xenopsd <-> storage interface.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Port generationid patch to xenopsd

Based on xen-api 3ac4f168beb096a9af64ead21e4467dbc4c58cb7

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Improve the exception if the command-line is slightly wrong

This allows us to distinguish between: a parameter not being
registered (which means a missing definition in the code) vs
a parameter not being provided (which means a caller error)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Update to 0.9.6

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
xenlight: Create the /vm/<uuid>/domains/0 entry for domain 0

Otherwise the backend cannot figure out the relevant domain id given
a uuid, causing a failure to find a storage driver domain (ie domain 0)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add a separate vif script for xenlight backend for now.

We should be able to converge the 'classic' with the 'xenlight' one.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
xenlight: use upstream qemu by default

There's no need to hardcode the path.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
xenlight: when using upstream qemu, we must use SEABIOS

Previously we hard-coded ROMBIOS, which causes libxl to fail silently.
Instead we let libxl choose the default for us.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>