Re: [libvirt] [PATCHv2] openvz: Handle domain obj hash map errors

2012-07-11 Thread Guido Günther
On Tue, Jul 10, 2012 at 05:31:27PM -0600, Eric Blake wrote: On 07/10/2012 12:54 PM, Guido Günther wrote: This makes the driver fail with a clear error message in case of UUID collisions (for example if somebody copied a container configuration without updating the UUID) and also raises

Re: [libvirt] [PATCH] virsh: remove extra space between function name and opening brace

2012-07-11 Thread Guido Günther
On Wed, Jul 11, 2012 at 11:11:46AM +0200, Peter Krempa wrote: On 07/11/12 10:39, Guido Günther wrote: to match our CodingStyle. --- This avoids c'n'p problems as seen in my recent domhostname patch. Cheers, -- Guido tools/virsh.c | 186

Re: [libvirt] [PATCH 5/5] virsh: allow to print hostname in domain listings

2012-07-15 Thread Guido Günther
On Tue, Jul 10, 2012 at 03:18:19PM -0600, Eric Blake wrote: On 07/10/2012 02:46 PM, Guido Günther wrote: --- tools/virsh.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tools/virsh.c b/tools/virsh.c index 591a1ce..2c0446c 100644

[libvirt] [PATCHv2 4/5] openvz: Add openvzVEGetStringParam

2012-07-15 Thread Guido Günther
to retrieve a VEs config parameters as a single string. This will be used by the upcoming domainGetHostname implementation. --- src/libvirt_openvz.syms |2 +- src/openvz/openvz_util.c | 32 src/openvz/openvz_util.h |1 + 3 files changed, 34

[libvirt] [PATCHv2 2/5] virsh: Add domhostname

2012-07-15 Thread Guido Günther
to query the guest's hostname. --- tools/virsh.c | 44 tools/virsh.pod |4 2 files changed, 48 insertions(+) diff --git a/tools/virsh.c b/tools/virsh.c index f9fe4b1..7c20202 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -14133,6

[libvirt] [PATCHv2 3/5] remote: Provide RPC call for domainGetHostname

2012-07-15 Thread Guido Günther
--- src/remote/remote_driver.c |1 + src/remote/remote_protocol.x | 12 +++- src/remote_protocol-structs |8 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 3314f80..5d1ce4d 100644 ---

[libvirt] [PATCHv2 5/5] openvz: Implement domainGetHostname

2012-07-15 Thread Guido Günther
--- src/openvz/openvz_driver.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index c9150e0..6046a60 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -234,6

[libvirt] [PATCHv2 0/5] Allow to query a guest's hostname

2012-07-15 Thread Guido Günther
VIR_ERR_OPERATION_FAILED instead Cheers, -- Guido Guido Günther (5): Add virDomainGetHostname virsh: Add domhostname remote: Provide RPC call for domainGetHostname openvz: Add openvzVEGetStringParam openvz: Implement domainGetHostname include/libvirt/libvirt.h.in |2 ++ src/driver.h

[libvirt] [PATCHv2 1/5] Add virDomainGetHostname

2012-07-15 Thread Guido Günther
to query a guests's hostname. Containers like LXC and OpenVZ allow to set a hostname different from the hosts name and QEMU's guest agent could provide similar functionality. --- include/libvirt/libvirt.h.in |2 ++ src/driver.h |6 ++ src/libvirt.c|

Re: [libvirt] New application

2012-07-16 Thread Guido Günther
On Mon, Jul 16, 2012 at 12:17:49PM +0200, Maciej Nabożny wrote: Hello, I'm developer of CC1 project in Institute of Nuclear Physics in Cracow. We are creating cloud computing system based on Libvirt. Is it possible to add link to our project at yours website in applications section? Title:

Re: [libvirt] [PATCHv2 1/5] Add virDomainGetHostname

2012-07-20 Thread Guido Günther
On Wed, Jul 18, 2012 at 09:19:05PM +0100, Daniel P. Berrange wrote: On Sun, Jul 15, 2012 at 11:45:05PM +0200, Guido Günther wrote: to query a guests's hostname. Containers like LXC and OpenVZ allow to set a hostname different from the hosts name and QEMU's guest agent could provide similar

[libvirt] [PATCH] Make sure DNSMASQ_STATE_DIR exists

2011-04-24 Thread Guido Günther
Hi, otherwise the directory returned by networkDnsmasqLeaseFileName will not be created if ipdef-nhosts == 0 in networkBuildDnsmasqArgv. O.k. to apply? Cheers, -- Guido --- src/network/bridge_driver.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git

Re: [libvirt] [PATCH] Make sure DNSMASQ_STATE_DIR exists

2011-04-25 Thread Guido Günther
On Mon, Apr 25, 2011 at 03:05:51AM -0400, Laine Stump wrote: On 04/24/2011 04:02 AM, Guido Günther wrote: Hi, otherwise the directory returned by networkDnsmasqLeaseFileName will not be created if ipdef-nhosts == 0 in networkBuildDnsmasqArgv. O.k. to apply? Cheers, -- Guido

[libvirt] [PATCH] nodeinfo: remove superflous braces

2011-06-11 Thread Guido Günther
that break compilation on non intel architectures: mips: https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-1stamp=1307570195 powerpc: https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=powerpcver=0.9.2-1stamp=1307550913 s390:

[libvirt] [PATCH] Skip nodeinfo test on non intel architectures

2011-06-12 Thread Guido Günther
since the testfiles assume a /proc/cpuinfo specific to this architecture. We e.g. can't parse the number of cores on other architectures. O.k. to apply? Cheers, -- Guido --- tests/nodeinfotest.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/tests/nodeinfotest.c

[libvirt] [PATCH] Split out dlopen detection

2011-06-13 Thread Guido Günther
since it's needed for the lock manager too. Fixes linking on non intel architectures. See e.g. https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-3stamp=1307914762 O.k. to apply? Cheers, -- Guido --- configure.ac| 44 ++--

Re: [libvirt] [PATCH] nodeinfo: remove superflous braces

2011-06-14 Thread Guido Günther
On Mon, Jun 13, 2011 at 04:22:56PM -0600, Eric Blake wrote: s/superflous/superfluous/ On 06/11/2011 10:18 AM, Guido Günther wrote: that break compilation on non intel architectures: mips: https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-1stamp=1307570195

Re: [libvirt] [PATCH] Split out dlopen detection

2011-06-14 Thread Guido Günther
On Mon, Jun 13, 2011 at 02:08:14PM -0600, Eric Blake wrote: On 06/13/2011 01:54 PM, Guido Günther wrote: since it's needed for the lock manager too. Fixes linking on non intel architectures. See e.g. https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-3stamp

[libvirt] Test failures

2011-06-14 Thread Guido Günther
Hi, I'm seeing spurious test failures of test-nonblocking-pipe.sh on several of Debian's autobuilders, e.g.: https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipselver=0.9.2-4stamp=1308020396 Since I can't reproduce this locally I wonder if somebody else is seeing this? Cheers, --

Re: [libvirt] [PATCH] Skip nodeinfo test on non intel architectures

2011-06-14 Thread Guido Günther
On Tue, Jun 14, 2011 at 09:54:33AM -0600, Eric Blake wrote: On 06/12/2011 04:37 PM, Guido Günther wrote: since the testfiles assume a /proc/cpuinfo specific to this architecture. We e.g. can't parse the number of cores on other architectures. O.k. to apply? Cheers, -- Guido

[libvirt] [PATCH] Catch dnsmasq start failures

2011-07-23 Thread Guido Günther
While we checked the return value we didn't maks sure ret != 0 which resulted in dnsmasq errors being ignored. --- src/network/bridge_driver.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index

Re: [libvirt] [PATCH] Catch dnsmasq start failures

2011-07-25 Thread Guido Günther
On Sun, Jul 24, 2011 at 10:08:13AM -0400, Laine Stump wrote: On 07/23/2011 05:26 PM, Guido Günther wrote: While we checked the return value we didn't maks sure ret != 0 which resulted in dnsmasq errors being ignored. --- src/network/bridge_driver.c |4 +++- 1 files changed, 3

Re: [libvirt] [virt-tools-list] virt-manager/libvirt backwards compatibility problem?

2011-07-27 Thread Guido Günther
On Wed, Jul 27, 2011 at 10:53:01AM -0600, Eric Blake wrote: [adding libvir-list] On 07/27/2011 10:28 AM, Whit Blauvelt wrote: Looks like my real problem may be not incorporating a Debian/Ubuntu patch before building 0.9.x, since netcat differs:

Re: [libvirt] [virt-tools-list] virt-manager/libvirt backwards compatibility problem?

2011-07-28 Thread Guido Günther
Hi Eric, On Wed, Jul 27, 2011 at 02:52:46PM -0600, Eric Blake wrote: [..snip..] Pasting from that URL gave awkward results below; can you address my comments below, then post a v2 as a proper patch against libvirt.git? Thanks for the review! New version attached. [..snip..] I don't like

[libvirt] [PATCH 1/2] Add virBufferQuoteString

2011-07-29 Thread Guido Günther
Quote strings so they're safe to pass to the shell. Based on glib's g_quote_string. --- src/libvirt_private.syms |1 + src/util/buf.c | 29 + src/util/buf.h |1 + 3 files changed, 31 insertions(+), 0 deletions(-) diff --git

[libvirt] [PATCH 2/2] Use virBufferQuoteString in virNetSocketNewConnectSSH

2011-07-29 Thread Guido Günther
to quote the netcat command since it's passed to the shell. Adjust expected test case output accordingly. --- src/rpc/virnetsocket.c | 25 - tests/virnetsockettest.c | 10 +- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-08 Thread Guido Günther
Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=728772 points out that libvirt commit 1c93fbbb pulled in a gnulib regression that broke large file support. I had a quick look and rerunning this pulls in quite some auto* changes.

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-09 Thread Guido Günther
On Tue, Aug 09, 2011 at 10:54:36AM +0100, Daniel P. Berrange wrote: On Mon, Aug 08, 2011 at 10:15:37PM +0200, Guido Günther wrote: Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=728772 points out that libvirt commit

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-09 Thread Guido Günther
On Tue, Aug 09, 2011 at 09:24:55AM -0600, Eric Blake wrote: On 08/09/2011 08:37 AM, Guido Günther wrote: On Tue, Aug 09, 2011 at 10:54:36AM +0100, Daniel P. Berrange wrote: On Mon, Aug 08, 2011 at 10:15:37PM +0200, Guido Günther wrote: Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric

[libvirt] Deadlock when using custom handlers

2011-08-12 Thread Guido Günther
Hi, virt-viewer is using it's own virEventRegisterImpl. With current libvirt this can deadlock when connection to nonexistant URIs like qemu+ssh:///unknownhost.example.com/system like: 23:47:00.338: 1526: debug : doRemoteOpen:503 : proceeding with name = qemu:///system 23:47:00.338: 1526:

Re: [libvirt] Deadlock when using custom handlers

2011-08-16 Thread Guido Günther
Hi Daniel, On Sat, Aug 13, 2011 at 08:57:45PM -0700, Daniel P. Berrange wrote: On Fri, Aug 12, 2011 at 11:54:28PM +0200, Guido Günther wrote: [..snip..] In the default libvirt event loop, the 'ff' callback is always invoked from a clean stack in the event loop, so you never have this problem

Re: [libvirt] problems with remote authentication with policykit

2009-06-22 Thread Guido Günther
On Thu, Jun 18, 2009 at 12:20:40PM -0400, Jim Paris wrote: Daniel P. Berrange wrote: We close the socket to the 'nc' process here so in theory it should be getting a HUP event from poll or EOF from read, etc and then exiting. Ominously though I see several patches to Fedora's 'nc' RPM at

Re: [libvirt] vTPM support in libvirt

2009-07-02 Thread Guido Günther
On Wed, Jul 01, 2009 at 10:58:57PM +0100, Andreas Sommer wrote: I'm still experimenting around with the vTPM patch, and I want to install my version of libvirt on a Debian system - not in my $HOME directory but on the default paths. I followed the autogen command below and also did make

[libvirt] make distcheck failure

2009-07-07 Thread Guido Günther
Hi, in current git make distcheck currently fails on me with: make[5]: Entering directory `/var/scratch/debian/libvirt/cvs/libvirt/libvirt-0.6.5/_build/gnulib/lib' /bin/sh ../../../mylibtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../gnulib/lib -I../.. -I../../intl -g -O2

[libvirt] [PATCH] allow to set path to xen userspace tools

2009-07-07 Thread Guido Günther
Hi, attached patch makes the path to the xen userspace tools configurable. Debian keeps this under /usr/lib/xen-default/ instead of /usr/lib/xen/. We don't have the amd64 libs in /usr/lib64/xen either so we can use: ./configure --with-xen-tools=/usr/lib/xen-defaults

Re: [libvirt] [PATCH] allow to set path to xen userspace tools

2009-07-07 Thread Guido Günther
On Tue, Jul 07, 2009 at 06:02:20PM +0100, Daniel P. Berrange wrote: On Tue, Jul 07, 2009 at 01:16:02PM +0200, Guido G?nther wrote: Hi, attached patch makes the path to the xen userspace tools configurable. Debian keeps this under /usr/lib/xen-default/ instead of /usr/lib/xen/. We don't

[libvirt] [PATCH] libvirt-glib: import gtk instead of pygtk

2009-07-22 Thread Guido Günther
Hi, the python example imports pygtk but uses gtk.main() so it fails to work. Attached patch fixes this. Cheers, -- Guido From: =?utf-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Wed, 22 Jul 2009 12:00:47 +0200 Subject: [PATCH] use gtk instead of pygtk the example uses gtk.* everywhere

[libvirt] [PATCH] libvirt-glib: add missing details argument to callbacks

2009-07-22 Thread Guido Günther
Hi, the python example is lacking the details argument in the callback. This makes the example fail due to the wrong number of arguments. Cheers, -- Guido From: =?utf-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Wed, 22 Jul 2009 12:01:36 +0200 Subject: [PATCH] add missing details argument

[libvirt] [PATCH] document telnet serial console options

2009-07-23 Thread Guido Günther
Hi, attached patch updates the console docs a bit. O.k. to apply? Cheers, -- Guido From 204361a3f015601e389f9ab83a2590906cb44581 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Thu, 23 Jul 2009 09:39:22 +0200 Subject: [PATCH] document tcp listen and raw wire

Re: [libvirt] [PATCH] libvirt-glib: add missing details argument to callbacks

2009-07-29 Thread Guido Günther
On Wed, Jul 29, 2009 at 10:33:12AM +0100, Daniel P. Berrange wrote: [..snip..] FYI, my libvirt-glib work is temporarily on hold due to lack of time. As such I've just pulled the event loop code directly into the virt-viewer application, so I can do a release of virt-viewer without needing

Re: [libvirt] [PATCH] libvirt-glib: add missing details argument to callbacks

2009-07-29 Thread Guido Günther
On Wed, Jul 29, 2009 at 12:50:17PM +0100, Daniel P. Berrange wrote: On Wed, Jul 29, 2009 at 01:24:24PM +0200, Guido G?nther wrote: On Wed, Jul 29, 2009 at 10:33:12AM +0100, Daniel P. Berrange wrote: [..snip..] FYI, my libvirt-glib work is temporarily on hold due to lack of time. As

Re: [libvirt] [PATCH] Support the usage of socat instead of netcat

2009-08-07 Thread Guido Günther
On Thu, Aug 06, 2009 at 02:37:53PM +0200, Daniel Veillard wrote: On Thu, Aug 06, 2009 at 12:39:34PM +0100, Daniel P. Berrange wrote: On Wed, Aug 05, 2009 at 12:58:33PM +0200, Jonas Eriksson wrote: * src/remote_internal.c: Honour USE_SOCAT by selecting between netcat/nc and socat at

Re: [libvirt] [PATCH 10/21] Don't let parent of daemon exit until basic initialization is done

2009-10-28 Thread Guido Günther
Hi Daniel, On Fri, Oct 23, 2009 at 02:05:39PM +0100, Daniel P. Berrange wrote: The daemonizing code lets the parent exit almost immediately. This means that it may think it has successfully started even when important failures occur like not being able to acquire the PID file. It also means

Re: [libvirt] [PATCH 10/21] Don't let parent of daemon exit until basic initialization is done

2009-10-29 Thread Guido Günther
On Wed, Oct 28, 2009 at 06:52:49PM +, Daniel P. Berrange wrote: On Wed, Oct 28, 2009 at 03:22:38PM +0100, Guido G?nther wrote: Hi Daniel, On Fri, Oct 23, 2009 at 02:05:39PM +0100, Daniel P. Berrange wrote: The daemonizing code lets the parent exit almost immediately. This means that

[libvirt] [PATCH] only remove masquerade rules in NAT mode

2009-11-05 Thread Guido Günther
Hi, attached patch makes sure we only remove the masquerade rules if forwardType == VIR_NETWORK_FORWARD_NAT and not if forwardType == VIR_NETWORK_FORWARD_ROUTE since we don't use them there. This fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549949 O.k. to apply? -- Guido From

Re: [libvirt] [PATCH] only remove masquerade rules in NAT mode

2009-11-13 Thread Guido Günther
On Thu, Nov 05, 2009 at 08:35:20PM +0100, Guido Günther wrote: Hi, attached patch makes sure we only remove the masquerade rules if forwardType == VIR_NETWORK_FORWARD_NAT and not if forwardType == VIR_NETWORK_FORWARD_ROUTE since we don't use them there. This fixes: http

Re: [libvirt] [PATCH] only remove masquerade rules in NAT mode

2009-11-16 Thread Guido Günther
On Sun, Nov 15, 2009 at 11:56:37AM -0500, Cole Robinson wrote: On 11/13/2009 12:18 PM, Guido Günther wrote: On Thu, Nov 05, 2009 at 08:35:20PM +0100, Guido Günther wrote: Hi, attached patch makes sure we only remove the masquerade rules if forwardType == VIR_NETWORK_FORWARD_NAT

[libvirt] [libvirt-glib] [PATCH] Explicitly link conn-test example against libgobject

2011-10-02 Thread Guido Günther
Otherwise the build fails with: /usr/bin/ld: conn_test-conn-test.o: undefined reference to symbol 'g_type_check_instance_cast' /usr/bin/ld: note: 'g_type_check_instance_cast' is defined in DSO /usr/lib/libgobject-2.0.so.0 so try adding it to the linker command line /usr/lib/libgobject-2.0.so.0:

Re: [libvirt] [libvirt-glib] [PATCH] Explicitly link conn-test example against libgobject

2011-10-03 Thread Guido Günther
On Mon, Oct 03, 2011 at 09:43:32AM +0100, Daniel P. Berrange wrote: On Sun, Oct 02, 2011 at 02:02:12PM +0200, Guido Günther wrote: Otherwise the build fails with: /usr/bin/ld: conn_test-conn-test.o: undefined reference to symbol 'g_type_check_instance_cast' /usr/bin/ld: note

[libvirt] [PATCH] Document that ff callbacks need to be invoked from a clean stack

2011-10-03 Thread Guido Günther
On Tue, Aug 16, 2011 at 02:24:53PM +0200, Guido Günther wrote: Hi Daniel, On Sat, Aug 13, 2011 at 08:57:45PM -0700, Daniel P. Berrange wrote: On Fri, Aug 12, 2011 at 11:54:28PM +0200, Guido Günther wrote: [..snip..] In the default libvirt event loop, the 'ff' callback is always invoked

Re: [libvirt] [PATCH] Document that ff callbacks need to be invoked from a clean stack

2011-10-04 Thread Guido Günther
On Tue, Oct 04, 2011 at 09:00:17AM +0100, Daniel P. Berrange wrote: On Mon, Oct 03, 2011 at 10:41:17PM +0200, Guido Günther wrote: On Tue, Aug 16, 2011 at 02:24:53PM +0200, Guido Günther wrote: Hi Daniel, On Sat, Aug 13, 2011 at 08:57:45PM -0700, Daniel P. Berrange wrote: On Fri, Aug

[libvirt] [PATCH 2/2] xenParseXM: don't dereference NULL pointer when script is empty

2011-10-06 Thread Guido Günther
O.k. to apply? -- Guido --- src/xenxs/xen_xm.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenxs/xen_xm.c b/src/xenxs/xen_xm.c index d057043..30188e2 100644 --- a/src/xenxs/xen_xm.c +++ b/src/xenxs/xen_xm.c @@ -697,8 +697,8 @@ xenParseXM(virConfPtr conf,

[libvirt] [PATCH 1/2] xen: add error handling to UUID parsing

2011-10-06 Thread Guido Günther
otherwise a missing UUID in a domain config just shows: libxlDomainXMLFromNative:2600 : Internal Error parsing xm config failed Now we have: xenXMConfigGetUUID:186 : Internal Error config value uuid was missing O.k. to apply? -- Guido --- src/xenxs/xen_xm.c | 37

Re: [libvirt] [PATCH 2/2] xenParseXM: don't dereference NULL pointer when script is empty

2011-10-06 Thread Guido Günther
On Thu, Oct 06, 2011 at 11:56:29AM +0200, Michal Privoznik wrote: On 06.10.2011 11:16, Guido Günther wrote: O.k. to apply? -- Guido --- src/xenxs/xen_xm.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenxs/xen_xm.c b/src/xenxs/xen_xm.c

[libvirt] [PATCH] Document STR(N)EQ_NULLABLE (was Re: [PATCH 2/2] xenParseXM: don't dereference NULL pointer when script is empty)

2011-10-06 Thread Guido Günther
On Thu, Oct 06, 2011 at 11:56:29AM +0200, Michal Privoznik wrote: On 06.10.2011 11:16, Guido Günther wrote: O.k. to apply? -- Guido --- src/xenxs/xen_xm.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenxs/xen_xm.c b/src/xenxs/xen_xm.c

Re: [libvirt] [PATCH] Document STR(N)EQ_NULLABLE (was Re: [PATCH 2/2] xenParseXM: don't dereference NULL pointer when script is empty)

2011-10-06 Thread Guido Günther
On Thu, Oct 06, 2011 at 08:27:42AM -0600, Eric Blake wrote: On 10/06/2011 05:38 AM, Guido Günther wrote: ...and here's the doc update. -- Guido 0001-Document-STREQ_NULLABLE-and-STRNEQ_NULLABLE.patch From 07b8940e3bb64e2208b191d890e95f059a7ac7a9 Mon Sep 17 00:00:00 2001 From: =?UTF

Re: [libvirt] [PATCH 1/2] xen: add error handling to UUID parsing

2011-10-06 Thread Guido Günther
Hi Eric, On Thu, Oct 06, 2011 at 10:50:46AM -0600, Eric Blake wrote: On 10/06/2011 03:15 AM, Guido Günther wrote: otherwise a missing UUID in a domain config just shows: libxlDomainXMLFromNative:2600 : Internal Error parsing xm config failed Now we have: xenXMConfigGetUUID:186

Re: [libvirt] [PATCH 2/2] xenParseXM: don't dereference NULL pointer when script is empty

2011-10-06 Thread Guido Günther
On Thu, Oct 06, 2011 at 12:44:05PM -0600, Eric Blake wrote: On 10/06/2011 05:36 AM, Guido Günther wrote: In fact I was looking for that kind of function in hacking.html. New patch attached. Cheers, -- Guido 0001-xenParseXM-don-t-dereference-NULL-pointer-when-scrip.patch From

Re: [libvirt] [PATCH] Document STR(N)EQ_NULLABLE (was Re: [PATCH 2/2] xenParseXM: don't dereference NULL pointer when script is empty)

2011-10-06 Thread Guido Günther
On Thu, Oct 06, 2011 at 08:54:22AM -0600, Eric Blake wrote: On 10/06/2011 08:52 AM, Guido Günther wrote: ACK. But be sure you also run 'make check', then squash in the regeneration of HACKING prior to pushing your commit. I had to do a explicit make HACKING to get this regenerated. Pushed

Re: [libvirt] [PATCH 1/2] xen: add error handling to UUID parsing

2011-10-06 Thread Guido Günther
On Thu, Oct 06, 2011 at 03:55:48PM -0400, Laine Stump wrote: On 10/06/2011 01:36 PM, Guido Günther wrote: Hi Eric, On Thu, Oct 06, 2011 at 10:50:46AM -0600, Eric Blake wrote: These three errors should probably all be changed away from VIR_ERR_INTERNAL_ERROR into something more useful

Re: [libvirt] [PATCH 1/2] xen: add error handling to UUID parsing

2011-10-07 Thread Guido Günther
On Thu, Oct 06, 2011 at 04:33:49PM -0600, Eric Blake wrote: On 10/06/2011 11:36 AM, Guido Günther wrote: These three errors should probably all be changed away from VIR_ERR_INTERNAL_ERROR into something more useful, but I'm not sure whether that would be VIR_ERR_CONF_SYNTAX

[libvirt] [libvirt-tck] Fix labels in SELINUX tests

2011-10-07 Thread Guido Günther
Hi, attached patch is needed to properly skip the SELinux tests if SELinux isn't enabled. Cheers, -- Guido From 8647fef32cdc13636ee86a937f854cdb931added Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Fri, 7 Oct 2011 16:31:42 +0200 Subject: [PATCH] Use SKIP

Re: [libvirt] [libvirt-tck] Fix labels in SELINUX tests

2011-10-07 Thread Guido Günther
On Fri, Oct 07, 2011 at 08:51:47AM -0600, Eric Blake wrote: On 10/07/2011 08:35 AM, Guido Günther wrote: Hi, attached patch is needed to properly skip the SELinux tests if SELinux isn't enabled. Cheers, -- Guido ACK. Pushed. Thanks, -- Guido -- libvir-list mailing list libvir-list

Re: [libvirt] [PATCH 1/2] xen: add error handling to UUID parsing

2011-10-10 Thread Guido Günther
On Fri, Oct 07, 2011 at 12:18:51PM +0200, Guido Günther wrote: On Thu, Oct 06, 2011 at 04:33:49PM -0600, Eric Blake wrote: On 10/06/2011 11:36 AM, Guido Günther wrote: These three errors should probably all be changed away from VIR_ERR_INTERNAL_ERROR into something more useful, but I'm

Re: [libvirt] [PATCH 1/2] xen: add error handling to UUID parsing

2011-10-10 Thread Guido Günther
On Mon, Oct 10, 2011 at 01:23:20PM -0600, Eric Blake wrote: On 10/07/2011 04:18 AM, Guido Günther wrote: ACK to the concept, once we decide on the correct error code. I think we've decided. (Hopefully) final version attached. I've left the first error as INTERNAL_ERROR since this it's

Re: [libvirt] [PATCH] xen_xs: Guard against set but empty kernel argument

2011-10-10 Thread Guido Günther
On Mon, Oct 10, 2011 at 01:24:35PM -0600, Eric Blake wrote: On 10/10/2011 09:14 AM, Guido Guenther wrote: On xen 4.1 I observied configurations that look like: s/observied/observed/ (image (hvm (kernel '') (loader '/foo/bar') )) The kernel element is there

[libvirt] [PATCH] libvirt-tck: add junit output

2011-10-10 Thread Guido Günther
Hi, having JUnit like XML allows for easy integration into CI tools like Jenkins. Attach patch adds this using TAP::Formatter::JUnit. Does this look reasonable? -- Guido From 85880da3060dfad62183bb7c8ab881a345dacd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org

Re: [libvirt] [PATCH] libvirt-tck: add junit output

2011-10-11 Thread Guido Günther
On Tue, Oct 11, 2011 at 08:41:09AM +0100, Daniel P. Berrange wrote: On Mon, Oct 10, 2011 at 04:15:47PM -0600, Eric Blake wrote: On 10/10/2011 03:46 PM, Guido Günther wrote: Hi, having JUnit like XML allows for easy integration into CI tools like Jenkins. Attach patch adds this using TAP

[libvirt] [PATCH] libvirt-tck: Add testcase to test snapshot functionality.

2011-10-11 Thread Guido Günther
Hi, I got a bit confused how snapshotting/reverting is supposed to work now so I added some tests. O.k. to apply? This requires Sys::Virt 0.9.5. Cheers, -- Guido --- Build.PL |2 +- perl-Sys-Virt-TCK.spec.PL |2 +- scripts/domain/400-snapshots.t | 127

Re: [libvirt] [PATCH] libvirt-tck: add junit output

2011-10-11 Thread Guido Günther
On Tue, Oct 11, 2011 at 02:57:20PM +0100, Daniel P. Berrange wrote: On Tue, Oct 11, 2011 at 03:44:32PM +0200, Guido Günther wrote: On Tue, Oct 11, 2011 at 08:41:09AM +0100, Daniel P. Berrange wrote: On Mon, Oct 10, 2011 at 04:15:47PM -0600, Eric Blake wrote: On 10/10/2011 03:46 PM, Guido

Re: [libvirt] [PATCH] libvirt-tck: Add testcase to test snapshot functionality.

2011-10-11 Thread Guido Günther
On Tue, Oct 11, 2011 at 08:33:49AM -0600, Eric Blake wrote: On 10/11/2011 07:47 AM, Guido Günther wrote: Hi, I got a bit confused how snapshotting/reverting is supposed to work now so I added some tests. O.k. to apply? This requires Sys::Virt 0.9.5. Cheers, -- Guido I haven't looked

[libvirt] [PATCH] [libvirt-perl] Add missing $flags arguments to documentation

2011-10-12 Thread Guido Günther
Hi, when looking at the DomainSnapshot docs I wondered if these also take the flags argument as the other functions so I went ahead and updated the docs after checking the source. Cheers, -- Guido --- lib/Sys/Virt/DomainSnapshot.pm | 16 ++-- 1 files changed, 10 insertions(+), 6

Re: [libvirt] [PATCH] [libvirt-perl] Add missing $flags arguments to documentation

2011-10-12 Thread Guido Günther
On Wed, Oct 12, 2011 at 08:53:31PM +0100, Daniel P. Berrange wrote: On Wed, Oct 12, 2011 at 09:48:39PM +0200, Guido Günther wrote: Hi, when looking at the DomainSnapshot docs I wondered if these also take the flags argument as the other functions so I went ahead and updated the docs after

[libvirt] [PATCH 0/3] Detect netcat implementation

2011-10-12 Thread Guido Günther
Hi, Finally here's a respin of the netcat detection when used over SSH. Changes are: * virBufferQuoteString renamed to virBufferEscapeShell * Use outer quote only when metacharacters show up * Make a pessimistic buffer allocation instead of resizing it all the time Cheers, -- Guido Guido

[libvirt] [PATCH 2/3] Add virBufferEscapeShell

2011-10-12 Thread Guido Günther
Escape strings so they're safe to pass to the shell. Based on glib's g_quote_string. --- src/libvirt_private.syms |1 + src/util/buf.c | 54 ++ src/util/buf.h |1 + 3 files changed, 56 insertions(+), 0 deletions(-) diff

[libvirt] [PATCH 3/3] Use virBufferEscapeShell in virNetSocketNewConnectSSH

2011-10-12 Thread Guido Günther
to escape the netcat command since it's passed to the shell. Adjust expected test case output accordingly. --- src/rpc/virnetsocket.c | 25 - tests/virnetsockettest.c | 10 +- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git

[libvirt] [PATCH 1/3] Autodetect if the remote nc command supports the -q option

2011-10-12 Thread Guido Günther
Based on a patch by Marc Deslauriers marc.deslauri...@ubuntu.com RH: https://bugzilla.redhat.com/show_bug.cgi?id=562176 Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/517478 Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573172 --- src/rpc/virnetsocket.c | 23

[libvirt] [PATCH] [libvirt-tck] Allow to pass --timer to prove

2011-10-13 Thread Guido Günther
so execution times can be reported too. --- bin/libvirt-tck | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/bin/libvirt-tck b/bin/libvirt-tck index dcb053c..816234b 100644 --- a/bin/libvirt-tck +++ b/bin/libvirt-tck @@ -109,6 +109,10 @@ Generate an archive

Re: [libvirt] [PATCH] [libvirt-tck] Allow to pass --timer to prove

2011-10-13 Thread Guido Günther
On Thu, Oct 13, 2011 at 12:12:10PM +0100, Daniel P. Berrange wrote: On Thu, Oct 13, 2011 at 01:05:59PM +0200, Guido Günther wrote: so execution times can be reported too. --- bin/libvirt-tck | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/bin

Re: [libvirt] [PATCH v2 1/2] migration: Introduce migration element for cdrom and floppy

2011-10-13 Thread Guido Günther
On Mon, Oct 03, 2011 at 04:07:23PM +0200, Michal Privoznik wrote: This element says what to do with cdrom (or floppy) on migration. Currently, only one attribute is supported: 'optional'. It accepts 'require', 'optional' and 'drop' values. Setting a cdrom to be required means migration will

Re: [libvirt] [PATCH 3/3] Use virBufferEscapeShell in virNetSocketNewConnectSSH

2011-10-13 Thread Guido Günther
On Wed, Oct 12, 2011 at 05:22:02PM -0600, Eric Blake wrote: On 10/12/2011 04:40 PM, Guido Günther wrote: to escape the netcat command since it's passed to the shell. Adjust expected test case output accordingly. --- src/rpc/virnetsocket.c | 25 - tests

[libvirt] [PATCH 4/4] Use virBufferEscapeShell in cmdEcho

2011-10-13 Thread Guido Günther
--- tools/virsh.c | 25 + 1 files changed, 5 insertions(+), 20 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index bcf0603..fe1a224 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -12340,27 +12340,12 @@ cmdEcho (vshControl *ctl ATTRIBUTE_UNUSED, const

Re: [libvirt] [PATCH 2/3] Add virBufferEscapeShell

2011-10-13 Thread Guido Günther
On Wed, Oct 12, 2011 at 05:16:35PM -0600, Eric Blake wrote: On 10/12/2011 04:39 PM, Guido Günther wrote: Escape strings so they're safe to pass to the shell. Based on glib's g_quote_string. Is this still true, or does it now resemble more what I did (independently from g_quote_string

Re: [libvirt] [PATCH 1/3] Autodetect if the remote nc command supports the -q option

2011-10-13 Thread Guido Günther
Hi Eric, On Wed, Oct 12, 2011 at 05:03:45PM -0600, Eric Blake wrote: On 10/12/2011 04:39 PM, Guido Günther wrote: Based on a patch by Marc Deslauriersmarc.deslauri...@ubuntu.com RH: https://bugzilla.redhat.com/show_bug.cgi?id=562176 Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libvirt

Re: [libvirt] [PATCH 4/4] Use virBufferEscapeShell in cmdEcho

2011-10-13 Thread Guido Günther
On Thu, Oct 13, 2011 at 11:03:05PM +0200, Guido Günther wrote: --- tools/virsh.c | 25 + 1 files changed, 5 insertions(+), 20 deletions(-) I just noticed that this breaks the testsuite for two reasons: cmdEcho emits '' in case of an *arg == 0 and it also allows

Re: [libvirt] [PATCH 2/3] Add virBufferEscapeShell

2011-10-13 Thread Guido Günther
On Thu, Oct 13, 2011 at 03:25:10PM -0600, Eric Blake wrote: On 10/13/2011 03:02 PM, Guido Günther wrote: On Wed, Oct 12, 2011 at 05:16:35PM -0600, Eric Blake wrote: On 10/12/2011 04:39 PM, Guido Günther wrote: Escape strings so they're safe to pass to the shell. Based on glib's g_quote_string

[libvirt] [PATCH] [libvirt-tck] vol-as_xml: fix backing store element

2011-10-14 Thread Guido Günther
Fix typo that breaks setting the backing store format. --- lib/Sys/Virt/TCK/StorageVolBuilder.pm |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Sys/Virt/TCK/StorageVolBuilder.pm b/lib/Sys/Virt/TCK/StorageVolBuilder.pm index 515795f..da90788 100644 ---

Re: [libvirt] [PATCH] [libvirt-tck] vol-as_xml: fix backing store element

2011-10-14 Thread Guido Günther
On Fri, Oct 14, 2011 at 10:39:12AM +0100, Daniel P. Berrange wrote: On Fri, Oct 14, 2011 at 11:36:14AM +0200, Guido Günther wrote: Fix typo that breaks setting the backing store format. --- lib/Sys/Virt/TCK/StorageVolBuilder.pm |2 +- 1 files changed, 1 insertions(+), 1 deletions

[libvirt] [PATCH] virNetSocketNewConnectSSH: Escape netcat path too

2011-10-14 Thread Guido Günther
What holds for netcat is also true for the socket path since it can be part of the connection URI as well. Make both subject to the same amount of shell parsing. Cheers, -- Guido --- src/rpc/virnetsocket.c | 30 +- tests/virnetsockettest.c | 14 +++---

[libvirt] [PATCH] virBufferEscapeShell: Fix escaping of single quotes.

2011-10-18 Thread Guido Günther
When checking if we need to escape a single quote we were looking at the character after the quote instead of at the quote itself. --- src/util/buf.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/buf.c b/src/util/buf.c index 7dd9852..2d9499a 100644 ---

Re: [libvirt] [PATCH] virBufferEscapeShell: Fix escaping of single quotes.

2011-10-18 Thread Guido Günther
On Tue, Oct 18, 2011 at 08:39:48AM -0600, Eric Blake wrote: On 10/18/2011 01:31 AM, Guido Günther wrote: When checking if we need to escape a single quote we were looking at the character after the quote instead of at the quote itself. --- src/util/buf.c |4 ++-- 1 files changed, 2

[libvirt] [PATCH 2/3] Use virBufferEscapeShell in cmdEcho

2011-10-18 Thread Guido Günther
--- tools/virsh.c | 39 ++- 1 files changed, 18 insertions(+), 21 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 54684f6..d45baa6 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -12322,7 +12322,7 @@ static const vshCmdOptDef opts_echo[] = {

[libvirt] [PATCH 3/3] qemu: replace qemuMonitorEscapeShell by virBufferEscapeShell

2011-10-18 Thread Guido Günther
--- src/qemu/qemu_monitor.c | 49 -- src/qemu/qemu_monitor.h |1 - 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index c9dd69e..182e63d 100644 --- a/src/qemu/qemu_monitor.c +++

[libvirt] [PATCH 1/3] virBufferEscapeShell: Emit quotes for the empty string

2011-10-18 Thread Guido Günther
Make the empty string return '' to match cmdEcho's behavior. --- src/util/buf.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/util/buf.c b/src/util/buf.c index f582cd2..b7fcf6d 100644 --- a/src/util/buf.c +++ b/src/util/buf.c @@ -507,15 +507,20 @@

Re: [libvirt] [PATCH] virNetSocketNewConnectSSH: Escape netcat path too

2011-10-18 Thread Guido Günther
On Fri, Oct 14, 2011 at 08:28:48AM -0600, Eric Blake wrote: On 10/14/2011 06:18 AM, Guido Günther wrote: What holds for netcat is also true for the socket path since it can be part of the connection URI as well. Make both subject to the same amount of shell parsing. Hmm, I'm not sure about

[libvirt] [PATCH 0/3] Consolidate shell escape functions

2011-10-18 Thread Guido Günther
The attached patches use virBufferEscapeShell in virsh's virCmd and eliminate qemuMonitorEscapeShell so we have only one function that does the shell escaping. Cheers, -- Guido Guido Günther (3): virBufferEscapeShell: Emit quotes for the empty string Use virBufferEscapeShell in cmdEcho

Re: [libvirt] [PATCH 1/3] virBufferEscapeShell: Emit quotes for the empty string

2011-10-19 Thread Guido Günther
On Tue, Oct 18, 2011 at 02:09:55PM -0600, Eric Blake wrote: On 10/18/2011 01:35 PM, Guido Günther wrote: Make the empty string return '' to match cmdEcho's behavior. --- src/util/buf.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) ACK. Pushed the whole series

[libvirt] [PATCH/RFC] Introduce VIR_MIGRATE_FORCE flag to allow for risky migration

2011-10-21 Thread Guido Günther
Hi, Migration will be disallowed when the vm uses host devices or has snapshots (qemuMigrationIsAllowed)[1]. Would it make sense to introduce a VIR_MIGRATE_FORCE similar to VIR_REVERT_FORCE here? We could then introduce error codes similar to the snapshot case (VIR_ERR_MIGRATE_RISKY). This path

Re: [libvirt] [PATCH/RFC] Introduce VIR_MIGRATE_FORCE flag to allow for risky migration

2011-10-25 Thread Guido Günther
On Mon, Oct 24, 2011 at 04:12:08PM -0600, Eric Blake wrote: On 10/24/2011 02:00 AM, Daniel P. Berrange wrote: On Fri, Oct 21, 2011 at 08:16:24PM +0200, Guido Günther wrote: Hi, Migration will be disallowed when the vm uses host devices or has snapshots (qemuMigrationIsAllowed)[1]. Would

Re: [libvirt] [PATCH] Fix storage pool source comparison to avoid comparing with self

2011-11-01 Thread Guido Günther
Hi Daniel, On Tue, Oct 11, 2011 at 11:26:59AM +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com If we are comparing storage pools we must skip comparing with ourself, so that re-defining an existing pool works * conf/storage_conf.c: Skip self when comparing

<    1   2   3   4   5   6   7   8   9   10   >