[libvirt] [PATCH] docs: fix encryption format attribute in example

2014-09-10 Thread Ján Tomko
The correct attribute name is 'format', not 'type'. https://bugzilla.redhat.com/show_bug.cgi?id=1139910 --- Pushed as trivial. docs/formatstorageencryption.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/formatstorageencryption.html.in

Re: [libvirt] [PATCH v2 0/8] Add support for fetching statistics of completed jobs

2014-09-10 Thread Jiri Denemark
On Tue, Sep 09, 2014 at 19:36:52 -0400, John Ferlan wrote: On 09/09/2014 05:54 AM, Jiri Denemark wrote: Using virDomainGetJobStats, we can monitor running jobs but sometimes it may be useful to get statistics about a job that already finished, for example, to get the final amount of

Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal collection API

2014-09-10 Thread Peter Krempa
On 09/09/14 18:04, Francesco Romani wrote: - Original Message - From: Peter Krempa pkre...@redhat.com To: Francesco Romani from...@redhat.com, libvir-list@redhat.com Sent: Tuesday, September 9, 2014 2:14:23 PM Subject: Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal

Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal collection API

2014-09-10 Thread Wang Rui
On 2014/9/8 21:05, Francesco Romani wrote: +static bool +qemuDomainGetStatsNeedMonitor(unsigned int stats) +{ +size_t i; + +for (i = 0; qemuDomainGetStatsWorkers[i].func; i++) +if (stats qemuDomainGetStatsWorkers[i].stats) +if

Re: [libvirt] [PATCH 0/4] Few unrelated fixes in save/dump code

2014-09-10 Thread Peter Krempa
On 09/09/14 19:58, Martin Kletzander wrote: On Tue, Sep 09, 2014 at 05:25:31PM +0200, Peter Krempa wrote: I spent some time in the save/dump code today and found a few nits to fix. Peter Krempa (4): util: process: Don't report OOM errors in helper virsh: domain: Clean up handling of dom

Re: [libvirt] lxc: shutdown $domain broken in libvirt 1.2.3

2014-09-10 Thread Michal Privoznik
On 09.09.2014 18:25, Steven Wilson wrote: We recently ran into libvirt lxc shutdown failing because of mount namespaces not being available: # virsh -c lxc:/// start test01 Domain test01 started # virsh -c lxc:/// list IdName State

[libvirt] [PATCH] virsh: desc command in --title mode mentions description instead of title

2014-09-10 Thread Peter Krempa
Tweak the messages so that they mention title rather than description when operating in title mode. Also fixes one missing %s before non-formatted gettext message. Before: $ virsh desc --title dom No description for domain: dom After: $ virsh desc --title dom No title for domain: dom

Re: [libvirt] [PATCHv3 2/8] qemu: bulk stats: implement CPU stats group

2014-09-10 Thread Wang Rui
On 2014/9/8 21:05, Francesco Romani wrote: This patch implements the VIR_DOMAIN_STATS_CPU_TOTAL group of statistics. Signed-off-by: Francesco Romani from...@redhat.com --- include/libvirt/libvirt.h.in | 1 + src/libvirt.c| 9 src/qemu/qemu_driver.c | 51

Re: [libvirt] [PATCH 0/2] [RFC] Use the power of SystemTap to get rid of all* deadlocks forever*

2014-09-10 Thread Daniel P. Berrange
On Tue, Sep 09, 2014 at 07:51:00PM +0200, Martin Kletzander wrote: On Mon, Sep 08, 2014 at 03:59:04PM +0100, Daniel P. Berrange wrote: On Mon, Sep 08, 2014 at 04:17:44PM +0200, Martin Kletzander wrote: Many moons ago, I wanted to make locking more debuggable from logs. An idea appeared that

Re: [libvirt] lxc: shutdown $domain broken in libvirt 1.2.3

2014-09-10 Thread Daniel P. Berrange
On Wed, Sep 10, 2014 at 10:35:04AM +0200, Michal Privoznik wrote: On 09.09.2014 18:25, Steven Wilson wrote: We recently ran into libvirt lxc shutdown failing because of mount namespaces not being available: # virsh -c lxc:/// start test01 Domain test01 started # virsh -c lxc:/// list

Re: [libvirt] [PATCHv3 4/8] qemu: bulk stats: implement VCPU group

2014-09-10 Thread Wang Rui
On 2014/9/9 19:56, Peter Krempa wrote: + * VIR_DOMAIN_STATS_VCPU: Return virtual CPU statistics. + * Due to VCPU hotplug, the vcpu.num.* array could be sparse. + * The actual size of the array correspond to vcpu.current. + * The array size will never exceed vcpu.maximum. + * The typed

Re: [libvirt] [PATCH 0/5] Fix starting of VMs with backing chains containing unknown backing file specification

2014-09-10 Thread Daniel P. Berrange
On Tue, Sep 09, 2014 at 12:38:04PM +0100, Richard W.M. Jones wrote: On Tue, Sep 09, 2014 at 10:45:43AM +0200, Peter Krempa wrote: When a backing chain element specifies a parent in a format not known to libvirt we'd fail to start the VM as the chain would appear broken. To prevent

Re: [libvirt] [PATCH 1/5] util: storage: Convert disk locality check to switch statement

2014-09-10 Thread Daniel P. Berrange
On Tue, Sep 09, 2014 at 10:45:44AM +0200, Peter Krempa wrote: To allow the compiler to track future additions of disk types, convert the function to use a switch statement with the correct type. --- src/util/virstoragefile.c | 17 - 1 file changed, 16 insertions(+), 1

Re: [libvirt] [PATCH 2/5] conf: Introduce raw disk string passthrough

2014-09-10 Thread Daniel P. Berrange
On Tue, Sep 09, 2014 at 10:45:45AM +0200, Peter Krempa wrote: This patch adds a new disk type raw that can be used twofold: 1) To pass arbitrary strings as disk sources to the hypervisor of choice. This allows to use not-yet-supported storage specification formats. 2) To return backing

Re: [libvirt] [PATCH 3/5] conf: Mark backing chain ending with raw volume as broken

2014-09-10 Thread Daniel P. Berrange
On Tue, Sep 09, 2014 at 10:45:46AM +0200, Peter Krempa wrote: Do not output the /backingStore element in the xml if the backing chain ends with a volume specification unknown by libvirt. --- src/conf/domain_conf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) NACK, because

Re: [libvirt] [PATCH 4/5] tests: Add tests for disk type 'raw'

2014-09-10 Thread Daniel P. Berrange
On Tue, Sep 09, 2014 at 10:45:47AM +0200, Peter Krempa wrote: Test the qemu command generator and the xml parsers and formatters. The tests are added separately due to the size of the test files. Note that tests/qemuxml2argvdata/qemuxml2argv-disk-virtio-raw.args is split into lines in a

[libvirt] [PATCH] virprocess: Introduce our own setns() wrapper

2014-09-10 Thread Michal Privoznik
From time to time weird bugreports occur on the list, e.g [1]. Even though the kernel supports setns syscall, there's an older glibc in the system that misses a wrapper over the syscall. Hence, after the configure phase we think there's no setns support in the system, which is obviously wrong. On

Re: [libvirt] [PATCHv3 4/8] qemu: bulk stats: implement VCPU group

2014-09-10 Thread Wang Rui
On 2014/9/8 21:05, Francesco Romani wrote: This patch implements the VIR_DOMAIN_STATS_VCPU group of statistics. To do so, this patch also extracts a helper to gather the VCpu information. Signed-off-by: Francesco Romani from...@redhat.com --- include/libvirt/libvirt.h.in | 1 +

Re: [libvirt] [PATCHv3 4/8] qemu: bulk stats: implement VCPU group

2014-09-10 Thread Francesco Romani
+static int +qemuDomainGetStatsVcpu(virConnectPtr conn ATTRIBUTE_UNUSED, + virDomainObjPtr dom, + virDomainStatsRecordPtr record, + int *maxparams, + unsigned int privflags ATTRIBUTE_UNUSED) +{

Re: [libvirt] [PATCH 1/5] util: storage: Convert disk locality check to switch statement

2014-09-10 Thread Peter Krempa
On 09/10/14 12:04, Daniel P. Berrange wrote: On Tue, Sep 09, 2014 at 10:45:44AM +0200, Peter Krempa wrote: To allow the compiler to track future additions of disk types, convert the function to use a switch statement with the correct type. --- src/util/virstoragefile.c | 17 -

[libvirt] [PATCH 1/2] v1.1 for dhclient use g_spawn_sync()

2014-09-10 Thread Gene Czarcinski
This patch addresses problem RHBZ #1133686. For some (unknown to me) reason, g_spawn_async() is not starting dhclient so that a dhcp NIC can be configured. However, simply using g_spawn_sync() works. This was the only use of g_spawn_async(). Note: There is no problem using sync instead of async

[libvirt] [PATCH 0/2] v1.1 bugfix: support dhcp network interfaces

2014-09-10 Thread Gene Czarcinski
v1.1 adds some documentation changes. Support for a network such as -N dhcp,source=default was not working in that dhclient was not being started. Although I am not sure what the real problem is, the solution is to use g_spawn_sync() instead of g_spawn_async() to start /sbin/dhclient. The

[libvirt] [PATCH 2/2] v1.1 add -v to dhclient parameter arguments

2014-09-10 Thread Gene Czarcinski
This patch improves the ability to understand what is happening with dchlient and is obviously optional. --- libvirt-sandbox/libvirt-sandbox-init-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-sandbox/libvirt-sandbox-init-common.c

[libvirt] [PATCH v2 3/5] event: introduce new event for cputune

2014-09-10 Thread Pavel Hrdina
This new event will use typedParameters to expose what has been actually updated and the reason is that we can in the future extend the cputune. With typedParameters we don't have to worry about creating some sort of v2 of cputune event if there will be new features implemented for cputune.

[libvirt] [PATCH v2 4/5] add an example how to use cputune event

2014-09-10 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- examples/object-events/event-test.c | 52 - 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/examples/object-events/event-test.c b/examples/object-events/event-test.c index d6cfe46..f1b9cda 100644

[libvirt] [PATCH v2 0/5] Introduce new cputune event

2014-09-10 Thread Pavel Hrdina
This patch series introduce new cputune event to inform management applications about every change of cputune values for running domains. The first patch introduces a new string helper virSnprintf and the second patch cleans up the virDomanDef structure. There is missing documentation for all

[libvirt] [PATCH v2 1/5] introduce virSnprintf helper

2014-09-10 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- src/libvirt_private.syms | 1 + src/util/virstring.c | 25 + src/util/virstring.h | 20 3 files changed, 46 insertions(+) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms

[libvirt] [PATCH v2 2/5] domain_conf: separate structures from virDomainDef

2014-09-10 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- src/conf/domain_conf.h | 94 ++ 1 file changed, 57 insertions(+), 37 deletions(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index efae2f5..c82b224 100644 ---

[libvirt] [PATCH v2 5/5] cputune_event: queue the event for cputune updates

2014-09-10 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- src/qemu/qemu_cgroup.c | 18 - src/qemu/qemu_driver.c | 73 ++ 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index

[libvirt] [PATCH] qemu: remove leftover virResetLastError

2014-09-10 Thread Ján Tomko
As of commit 5d29ca0: qemu: switch PCI address set from hash table to an array There is no error to be reset. --- src/qemu/qemu_command.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 5856fe7..665a590 100644 ---

Re: [libvirt] [PATCH] virsh: desc command in --title mode mentions description instead of title

2014-09-10 Thread John Ferlan
On 09/10/2014 04:51 AM, Peter Krempa wrote: Tweak the messages so that they mention title rather than description when operating in title mode. Also fixes one missing %s before non-formatted gettext message. Before: $ virsh desc --title dom No description for domain: dom After: $

[libvirt] [PATCH v1 06/10] lock_daemon: Implement server dispatch

2014-09-10 Thread Michal Privoznik
And register the program, finally. Although, only stub implementation of the Remember() and Recall() functions is added. The real implementation will follow. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- src/locking/lock_daemon.c | 37 ++

[libvirt] [PATCH v1 00/10] Keep original security label

2014-09-10 Thread Michal Privoznik
I know I've sent several versions like ages ago, so this should not start with v1, but hey, this is completely new approach, so I'm gonna start from 1. Here, the virtlockd is misused to hold the original seclabels (although only DAC label is implemented so far). Even more, it does a reference

[libvirt] [PATCH v1 03/10] domain_lock: Introduce seclabel APIs

2014-09-10 Thread Michal Privoznik
Signed-off-by: Michal Privoznik mpriv...@redhat.com --- src/libvirt_private.syms| 2 ++ src/locking/domain_lock.c | 65 + src/locking/domain_lock.h | 10 +++ src/locking/lock_driver.h | 2 ++ src/locking/lock_driver_lockd.c |

[libvirt] [PATCH v1 01/10] locking: Allow seclabel remembering

2014-09-10 Thread Michal Privoznik
To keep original seclabel for files libvirt is touching we need a single point where the original seclabels can be stored. Instead of inventing a new one we can misuse virtlockd which already has nearly all the infrastructure we need. As nice feature, it keeps its internal state between virtlockd

[libvirt] [PATCH v1 02/10] locking: Implement seclabel stubs for NOP

2014-09-10 Thread Michal Privoznik
The NOP drivers needs implementation, although the function bodies are empty. This is because the virLockManager APIs check for driver implementation and returns an error if there's none. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- src/locking/lock_driver_nop.c | 22

[libvirt] [PATCH v1 07/10] lock_daemon: Implement seclabel APIs

2014-09-10 Thread Michal Privoznik
The most interesting part where all the hard work takes place. For storing triplets of strings a two dimensional table would be the most intuitive approach. Or, if the triplet is rearranged into pair of one string and a pair, a hash table can be used. But hey, we already have those! Excellent. In

[libvirt] [PATCH v1 08/10] security_dac: Cleanup virSecurityDACSetOwnershipInternal usage

2014-09-10 Thread Michal Privoznik
We have nice wrappers over internal function that eventually calls the Internal() function, but for future work it's better to call those wrappers instead of the internal function directly. This is due to fact that the wrappers differentiate between setting or restoring the label while the

[libvirt] [PATCH v1 05/10] driver_lockd: Implement seclabel APIs

2014-09-10 Thread Michal Privoznik
This is the client side, so there's nothing more we need to do than call the RPC. Although, there's one interesting change: new virLockManagerLockSeclabelConnect() had to be implemented since the VIR_LOCK_SPACE_PROTOCOL_PROGRAM doesn't have any ConnectOpen() procedure. Signed-off-by: Michal

[libvirt] [PATCH v1 04/10] locking: Add virLockSeclabelProtocol

2014-09-10 Thread Michal Privoznik
So far no ConnectOpen() is introduced as it's not needed for such simple use case like this. It's crucial to separate this from virLockSpace program that already exists. Not only it requires virDomainObjPtr for its ConnectOpen() (subsequently all security drivers would need rework as they use

[libvirt] [PATCH v1 09/10] virSecurityManagerNew: Add virLockManagerPluginPtr

2014-09-10 Thread Michal Privoznik
For future work it's crucial to have virLockManagerPluginPtr stored in virSecurityDriver. Therefore, we must pass it when creating the security driver. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- src/Makefile.am | 6 +- src/lxc/lxc_controller.c | 2 +-

[libvirt] [PATCH v1 10/10] security_dac: Keep original label

2014-09-10 Thread Michal Privoznik
Signed-off-by: Michal Privoznik mpriv...@redhat.com --- src/Makefile.am | 1 + src/security/security_dac.c | 103 ++-- 2 files changed, 92 insertions(+), 12 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 90a51f6..83c8fcb

Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal collection API

2014-09-10 Thread Francesco Romani
- Original Message - From: Peter Krempa pkre...@redhat.com To: Francesco Romani from...@redhat.com, libvir-list@redhat.com Sent: Wednesday, September 10, 2014 10:07:33 AM Subject: Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal collection API [...] Hmm this skips

Re: [libvirt] [PATCHv3 2/8] qemu: bulk stats: implement CPU stats group

2014-09-10 Thread Francesco Romani
- Original Message - From: Wang Rui moon.wang...@huawei.com To: Francesco Romani from...@redhat.com Cc: libvir-list@redhat.com, pkre...@redhat.com Sent: Wednesday, September 10, 2014 10:56:47 AM Subject: Re: [libvirt] [PATCHv3 2/8] qemu: bulk stats: implement CPU stats group On

Re: [libvirt] [PATCHv3 2/8] qemu: bulk stats: implement CPU stats group

2014-09-10 Thread Peter Krempa
On 09/10/14 15:46, Francesco Romani wrote: - Original Message - From: Wang Rui moon.wang...@huawei.com To: Francesco Romani from...@redhat.com Cc: libvir-list@redhat.com, pkre...@redhat.com Sent: Wednesday, September 10, 2014 10:56:47 AM Subject: Re: [libvirt] [PATCHv3 2/8] qemu:

Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal collection API

2014-09-10 Thread Peter Krempa
On 09/10/14 15:55, Francesco Romani wrote: - Original Message - From: Peter Krempa pkre...@redhat.com To: Francesco Romani from...@redhat.com, libvir-list@redhat.com Sent: Wednesday, September 10, 2014 10:07:33 AM Subject: Re: [libvirt] [PATCH 1/8] qemu: bulk stats: extend internal

[libvirt] [PATCH 4/7] Convert callers to use typesafe APIs for getting identity attrs

2014-09-10 Thread Daniel P. Berrange
Convert virAccessDriverPolkitFormatProcess to use typesafe API for getting process ID attribute. Signed-off-by: Daniel P. Berrange berra...@redhat.com --- src/access/viraccessdriverpolkit.c | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git

[libvirt] [PATCH 5/7] Convert remote daemon acl code to use polkit API

2014-09-10 Thread Daniel P. Berrange
Convert the remote daemon auth check and the access control code to use the common polkit API for checking auth. Signed-off-by: Daniel P. Berrange berra...@redhat.com --- daemon/remote.c| 235 ++--- src/access/viraccessdriverpolkit.c | 91

[libvirt] [PATCH 6/7] Support passing dict by reference for dbus messages

2014-09-10 Thread Daniel P. Berrange
Currently DBus dict values must be passed inline virDBusMessageEncode(a{ss}, 3, key1, val1, key2, val2, key3, val3); virDBusMessageDecode(a{ss}, 3,

[libvirt] [PATCH 1/7] Add common API for doing polkit authentication

2014-09-10 Thread Daniel P. Berrange
There are now two places in libvirt which use polkit. Currently they use pkexec, which is set to be replaced by direct DBus API calls. Add a common API which they will both be able to use for this purpose. No tests are added at this time, since the impl will be gutted in favour of a DBus API call

[libvirt] [PATCH 2/7] Add typesafe APIs for virIdentity attributes

2014-09-10 Thread Daniel P. Berrange
Instead of requiring the caller to format to/from strings, add typesafe APIs todo this work. Signed-off-by: Daniel P. Berrange berra...@redhat.com --- src/libvirt_private.syms | 18 src/util/viridentity.c | 241 +++ src/util/viridentity.h |

[libvirt] [PATCH 3/7] Convert callers to use typesafe APIs for setting identity attrs

2014-09-10 Thread Daniel P. Berrange
Update virNetServerClientCreateIdentity and virIdentityGetSystem to use the new typesafe APIs for setting identity attributes Signed-off-by: Daniel P. Berrange berra...@redhat.com --- src/rpc/virnetserverclient.c | 115 ++- src/util/viridentity.c |

Re: [libvirt] [PATCH v3] leaseshelper: improvements to support all events

2014-09-10 Thread Nehal J Wani
On Wed, Aug 20, 2014 at 4:23 PM, Roman Bogorodskiy bogorods...@gmail.com wrote: Nehal J Wani wrote: This patch enables the helper program to detect event(s) triggered when there is a change in lease length or expiry and client-id. This transfers complete control of leases database to

[libvirt] [PATCH 7/7] Convert polkit code to use DBus API instead of CLI helper

2014-09-10 Thread Daniel P. Berrange
Spawning the pkcheck program every time a permission check is required is hugely expensive on CPU. The pkcheck program is just a dumb wrapper for the DBus API, so rewrite the code to use the DBus API directly. This also simplifies error handling a bit. Signed-off-by: Daniel P. Berrange

[libvirt] [PATCH 0/7] Improve performance of polkit checks

2014-09-10 Thread Daniel P. Berrange
This series improves the performance of the polkit driver by switching from use of the pk-check command, to the DBus APIs. As a convenient side effect, this means we are no longer vulnerable to CVE-2013-4311, on any polkit version, since we no longer need pk-check (which is what had the flaw). In

Re: [libvirt] [PATCH 1/5] util: storage: Convert disk locality check to switch statement

2014-09-10 Thread Eric Blake
On 09/09/2014 02:45 AM, Peter Krempa wrote: To allow the compiler to track future additions of disk types, convert the function to use a switch statement with the correct type. --- src/util/virstoragefile.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git

Re: [libvirt] [PATCH] qemu: remove leftover virResetLastError

2014-09-10 Thread Eric Blake
On 09/10/2014 06:37 AM, Ján Tomko wrote: As of commit 5d29ca0: qemu: switch PCI address set from hash table to an array There is no error to be reset. --- src/qemu/qemu_command.c | 1 - 1 file changed, 1 deletion(-) ACK diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c

Re: [libvirt] [PATCH 0/3] add support for hugepages mapping as shared

2014-09-10 Thread Ján Tomko
On 09/08/2014 01:40 PM, Martin Kletzander wrote: - BLURB Martin Kletzander (3): schemas: finish virTristate{Bool,Switch} transition docs, conf, schema: add support for shared memory mapping qemu: add support for shared memory mapping docs/formatdomain.html.in

Re: [libvirt] [PATCH 2/3] docs, conf, schema: add support for shared memory mapping

2014-09-10 Thread Ján Tomko
On 09/08/2014 01:40 PM, Martin Kletzander wrote: Signed-off-by: Martin Kletzander mklet...@redhat.com --- docs/formatdomain.html.in | 7 +++- docs/schemas/domaincommon.rng | 5 +++ src/conf/cpu_conf.c| 25

Re: [libvirt] [PATCH 2/3] docs, conf, schema: add support for shared memory mapping

2014-09-10 Thread Daniel P. Berrange
On Wed, Sep 10, 2014 at 05:36:58PM +0200, Ján Tomko wrote: On 09/08/2014 01:40 PM, Martin Kletzander wrote: Signed-off-by: Martin Kletzander mklet...@redhat.com --- docs/formatdomain.html.in | 7 +++- docs/schemas/domaincommon.rng | 5 +++

Re: [libvirt] [PATCH] storage: zfs: implement pool build and delete

2014-09-10 Thread Roman Bogorodskiy
Ján Tomko wrote: On 09/07/2014 04:15 PM, Roman Bogorodskiy wrote: Provide an implementation for buildPool and deletePool operations for the ZFS storage backend. --- docs/schemas/storagepool.rng | 1 + src/storage/storage_backend_zfs.c | 57

[libvirt] [PATCH RFC] network: try to eliminate default network conflict during package install

2014-09-10 Thread Laine Stump
Sometimes libvirt is installed on a host that is already using the network 192.168.122.0/24. If the libvirt-daemon-config-network package is installed, this creates a conflict, since that package has been hard-coded to create a virtual network that also uses 192.168.122.0/24. In the past libvirt

Re: [libvirt] [PATCH RFC] network: try to eliminate default network conflict during package install

2014-09-10 Thread Kashyap Chamarthy
On Wed, Sep 10, 2014 at 01:54:00PM -0400, Laine Stump wrote: Sometimes libvirt is installed on a host that is already using the network 192.168.122.0/24. If the libvirt-daemon-config-network package is installed, this creates a conflict, since that package has been hard-coded to create a

Re: [libvirt] [PATCH] libxl: support domainReset

2014-09-10 Thread Jim Fehlig
Jim Fehlig wrote: Currently, libxl_send_trigger() does not implement the LIBXL_TRIGGER_RESET option, but domainReset can be implemented in the libxl driver by forcibly destroying the domain and starting it again. Any objections to pushing this patch? I have several patches on the list

Re: [libvirt] [PATCH 00/26] Resolve more Coverity issues

2014-09-10 Thread John Ferlan
Would it be easier if I made batches of 5 patches? or perhaps just batches of patches of the same error? Just want to get this off the pile Tks, John On 09/04/2014 06:26 PM, John Ferlan wrote: Sorry for the large dump, but before I got too involved in other things I figured I'd go through

Re: [libvirt] [PATCH 0/5] Fix problems caused by FD passing to session daemon

2014-09-10 Thread John Ferlan
On 09/08/2014 01:46 AM, Martin Kletzander wrote: There were various problems introduced by the series on FD passing. The path for the socket was not created, the socket was not removed before binding it, etc. Let's see if it's any better this time. Resolves:

Re: [libvirt] [PATCH 5/5] rpc: make daemon spawning a bit more intelligent

2014-09-10 Thread John Ferlan
On 09/08/2014 01:46 AM, Martin Kletzander wrote: This way it behaves more like the daemon itself does (acquiring a pidfile, deleting the socket before binding, etc.). Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=927369 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1138604

[libvirt] [PATCH V2 4/4] tests: Tests for the xen-xl parser

2014-09-10 Thread Kiarie Kahurani
add tests for the xen_xl config parser Signed-off-by: Kiarie Kahurani davidkiar...@gmail.com --- tests/Makefile.am| 9 +- tests/testutilsxen.c | 50 tests/testutilsxen.h | 9 +- tests/xlconfigdata/test-new-disk.cfg | 27 +

[libvirt] [PATCH V2 0/4] Xen-xl parser

2014-09-10 Thread Kiarie Kahurani
Kiarie Kahurani (4): src/xenconfig: Export helper functions src/xenconfig: Xen-xl parser src/xenconfig: Introduce xen-xl on virsh command line tests: Tests for the xen-xl parser configure.ac | 7 + src/Makefile.am | 21 +-

[libvirt] [PATCH V2 2/4] src/xenconfig: Xen-xl parser

2014-09-10 Thread Kiarie Kahurani
Introduce a xen xl parser This parser allows for users to convert the new xl disk format and spice graphics config to libvirt xml format and vice versa.Regarding the spice graphics config, the code is pretty much straight forward For the disk {formating, parsing} this parser takes care of the new

[libvirt] [PATCH V2 1/4] src/xenconfig: Export helper functions

2014-09-10 Thread Kiarie Kahurani
Export helper function for reuse in getting values from a virConfPtr object Signed-off-by: Kiarie Kahurani davidkiar...@gmail.com --- src/xenconfig/xen_common.c | 144 ++--- src/xenconfig/xen_common.h | 24 ++-- 2 files changed, 91 insertions(+), 77

[libvirt] QEMU migration with non-shared storage

2014-09-10 Thread Michael Chapman
Hello, I am trying to understand libvirt's logic for checking whether migration of a VM is safe, and how it determines which disks should be mirrored by QEMU. My particular use case involves VMs that may have disks backed onto LVM or onto Ceph RBD, or both. As far as I can tell, the

[libvirt] [PATCH V2 3/4] src/xenconfig: Introduce xen-xl on virsh command line

2014-09-10 Thread Kiarie Kahurani
Integrate the xl parser into the xenlight driver Signed-off-by: Kiarie Kahurani davidkiar...@gmail.com --- src/libxl/libxl_driver.c | 46 ++ 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/src/libxl/libxl_driver.c

Re: [libvirt] QEMU migration with non-shared storage

2014-09-10 Thread Blair Bethwaite
Hi Michael! On 11 September 2014 14:13, Michael Chapman m...@very.puzzling.org wrote: Why is RBD is handled specially in this function? The current logic is that an RBD-backed disk is safe to be migrated even if it's got caching enabled, but I'm not sure how RBD is different from other