Re: [libvirt] Entering freeze for libvirt-1.2.19

2015-08-28 Thread Martin Kletzander
On Fri, Aug 28, 2015 at 06:25:01AM +0200, Michal Privoznik wrote: On 27.08.2015 11:41, Martin Kletzander wrote: On Thu, Aug 27, 2015 at 09:52:53AM +0800, Daniel Veillard wrote: So I have tagged rc1 in git and pushed signed tarball and rpms to the usual place: ftp://libvirt.org/libvirt/

Re: [libvirt] [PATCH v3 2/5] vz: add migration backbone code

2015-08-28 Thread Nikolay Shirokovskiy
On 27.08.2015 13:34, Daniel P. Berrange wrote: On Tue, Aug 25, 2015 at 12:04:14PM +0300, nshirokovs...@virtuozzo.com wrote: From: Nikolay Shirokovskiy nshirokovs...@virtuozzo.com This patch makes basic vz migration possible. For example by virsh: virsh -c vz:///system migrate --direct

Re: [libvirt] [PATCH] network type ethernet not needs to be reconnected

2015-08-28 Thread Vasiliy Tolstov
2015-08-24 14:56 GMT+03:00 Vasiliy Tolstov v.tols...@selfip.ru: 2015-08-24 14:45 GMT+03:00 Laine Stump la...@laine.org: I've been looking back at the history of why this code was added in the first place to make sure we're not inadvertently breaking something else. It looks like originally

Re: [libvirt] [PATCH 3/4] lxc_container: Turn lxcAttachNS into calling virProcessSetNamespaces

2015-08-28 Thread Daniel P. Berrange
On Fri, Aug 28, 2015 at 06:40:39AM -0400, John Ferlan wrote: On 08/26/2015 09:06 PM, Michal Privoznik wrote: Now that virProcessSetNamespaces() does accept FD list in the correct format, we can simply turn lxcAttachNS into calling virProcessSetNamespaces(). Signed-off-by: Michal

[libvirt] [libvirt-test-api][PATCH] Add new test case for allocPages API

2015-08-28 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/test_connection.conf | 4 ++ repos/virconn/connection_allocPages.py | 88 ++ 2 files changed, 92 insertions(+) create mode 100644 repos/virconn/connection_allocPages.py diff --git

Re: [libvirt] Entering freeze for libvirt-1.2.19

2015-08-28 Thread Daniel P. Berrange
On Fri, Aug 28, 2015 at 08:20:22AM +0200, Martin Kletzander wrote: On Fri, Aug 28, 2015 at 06:25:01AM +0200, Michal Privoznik wrote: On 27.08.2015 11:41, Martin Kletzander wrote: On Thu, Aug 27, 2015 at 09:52:53AM +0800, Daniel Veillard wrote: So I have tagged rc1 in git and pushed signed

Re: [libvirt] [PATCH] Revert LXC: show used memory as 0 when domain is not active

2015-08-28 Thread Daniel P. Berrange
On Thu, Aug 27, 2015 at 04:47:24PM -0600, Eric Blake wrote: On 08/27/2015 04:38 PM, Jim Fehlig wrote: This reverts commit 1ce7c1d20cfd5afb26d2dbc88201085d52415d0e, which introduced a significant semantic change to the virDomainGetInfo() API. Additionally, the change was only made to 2

Re: [libvirt] [PATCH] virVMXParseDisk: Recognize scsi-passthru

2015-08-28 Thread Matthias Bolte
2015-08-28 11:36 GMT+02:00 Michal Privoznik mpriv...@redhat.com: https://bugzilla.redhat.com/show_bug.cgi?id=1172544 So, imagine you have this config: scsi0:1.present = TRUE scsi0:1.deviceType = scsi-passthru scsi0:1.fileName = /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0

Re: [libvirt] [PATCH 3/4] lxc_container: Turn lxcAttachNS into calling virProcessSetNamespaces

2015-08-28 Thread John Ferlan
On 08/26/2015 09:06 PM, Michal Privoznik wrote: Now that virProcessSetNamespaces() does accept FD list in the correct format, we can simply turn lxcAttachNS into calling virProcessSetNamespaces(). Signed-off-by: Michal Privoznik mpriv...@redhat.com --- src/lxc/lxc_container.c | 22

Re: [libvirt] Please give me a wiki account

2015-08-28 Thread Daniel P. Berrange
On Thu, Aug 27, 2015 at 06:49:55PM -0700, Ian Kelling wrote: I saw a page I'd like to improve a bit. wiki username IanKelling. I have created this account and replied offlist with password. Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :| |:

Re: [libvirt] [PATCH] migration: remove direct migration dependency on version1 of driver

2015-08-28 Thread Nikolay Shirokovskiy
On 28.08.2015 08:54, Michal Privoznik wrote: On 27.08.2015 12:23, Nikolay Shirokovskiy wrote: From: Nikolay Shirokovskiy Nikolay Shirokovskiy nshirokovs...@virtuozzo.com Direct migration should work if *perform3 is present but *perform is not. This is situation when driver migration is

[libvirt] [PATCH] virVMXParseDisk: Recognize scsi-passthru

2015-08-28 Thread Michal Privoznik
https://bugzilla.redhat.com/show_bug.cgi?id=1172544 So, imagine you have this config: scsi0:1.present = TRUE scsi0:1.deviceType = scsi-passthru scsi0:1.fileName = /vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0 scsi0:1.allowGuestConnectionControl = FALSE So far, libvirt does not

[libvirt] [PATCH libvirt-java] Require at least Java 8

2015-08-28 Thread Wido den Hollander
Signed-off-by: Wido den Hollander w...@widodh.nl --- INSTALL | 2 +- build.properties | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/INSTALL b/INSTALL index 581512d..2cdd829 100644 --- a/INSTALL +++ b/INSTALL @@ -11,7 +11,7 @@ main item you may need to change

[libvirt] (no subject)

2015-08-28 Thread Wido den Hollander
The current code of libvirt-java does not build with Java 7. This patch updates the build.properties and INSTALL that we require Java 8 to build libvirt-java. -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [sandbox PATCH v4 03/21] Image: Add Hooking Mechanism

2015-08-28 Thread Eren Yagdiran
Any custom source provider can be added to virt-sandbox-image as a source --- .gitignore | 1 + bin/Makefile.am | 16 bin/virt-sandbox-image.in| 3 +++ configure.ac | 2 ++

[libvirt] [sandbox PATCH v4 10/21] Image: Add get_command function to Source

2015-08-28 Thread Eren Yagdiran
Provide a way to know how a template can be started depending on the used source DockerSource will need to parse the topmost config file in order to find the igniter command --- virt-sandbox-image/sources/DockerSource.py | 14 ++ virt-sandbox-image/sources/Source.py | 4

[libvirt] [sandbox PATCH v4 07/21] Image: Add download function

2015-08-28 Thread Eren Yagdiran
Refactor download function from virt-sandbox-image to use the newly introduced Source abstract class. The docker-specific download code is moved to a new DockerSource class. --- virt-sandbox-image/Makefile.am | 1 + virt-sandbox-image/sources/DockerSource.py | 214

[libvirt] [sandbox PATCH v4 02/21] Fix virt-sandbox-image

2015-08-28 Thread Eren Yagdiran
Authentication fix for Docker REST API. --- virt-sandbox-image/virt-sandbox-image.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/virt-sandbox-image/virt-sandbox-image.py b/virt-sandbox-image/virt-sandbox-image.py index 4f5443b..a9cb0ff 100644 ---

[libvirt] [sandbox PATCH v4 12/21] Image: Add check_connect function

2015-08-28 Thread Eren Yagdiran
Check if user-specified connect argument is valid --- virt-sandbox-image/virt-sandbox-image.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/virt-sandbox-image/virt-sandbox-image.py b/virt-sandbox-image/virt-sandbox-image.py index d6b682f..c46abd4 100755 ---

[libvirt] [sandbox PATCH v4 16/21] Image: Add Volume Support

2015-08-28 Thread Eren Yagdiran
Volumes let user to map host-paths into sandbox. Docker containers need volumes for data persistence. --- virt-sandbox-image/sources/DockerSource.py | 12 virt-sandbox-image/sources/Source.py | 4 virt-sandbox-image/virt-sandbox-image.py | 22 ++ 3

[libvirt] [sandbox PATCH v4 04/21] Image: virt-sandbox-image default dir constants

2015-08-28 Thread Eren Yagdiran
Conflicts: virt-sandbox-image/virt-sandbox-image.py --- virt-sandbox-image/virt-sandbox-image.py | 8 1 file changed, 8 insertions(+) diff --git a/virt-sandbox-image/virt-sandbox-image.py b/virt-sandbox-image/virt-sandbox-image.py index fa9e1c8..55aea6a 100755 ---

[libvirt] [sandbox PATCH v4 05/21] Image: Discard caching bytecode

2015-08-28 Thread Eren Yagdiran
--- virt-sandbox-image/virt-sandbox-image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virt-sandbox-image/virt-sandbox-image.py b/virt-sandbox-image/virt-sandbox-image.py index 55aea6a..9e98bf2 100755 --- a/virt-sandbox-image/virt-sandbox-image.py +++

[libvirt] [sandbox PATCH v4 15/21] Image: Add network support

2015-08-28 Thread Eren Yagdiran
Virt-sandbox-image will pass exact network arguments to virt-sandbox --- virt-sandbox-image/virt-sandbox-image.py | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/virt-sandbox-image/virt-sandbox-image.py b/virt-sandbox-image/virt-sandbox-image.py index

[libvirt] [sandbox PATCH v4 06/21] Image: Add check_writable and runtime resolver

2015-08-28 Thread Eren Yagdiran
These helper functions are for selecting right directories according to running user privileges --- virt-sandbox-image/virt-sandbox-image.py | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/virt-sandbox-image/virt-sandbox-image.py

[libvirt] [sandbox PATCH v4 11/21] Image: Add run args

2015-08-28 Thread Eren Yagdiran
Commandline parameters for running a template --- virt-sandbox-image/virt-sandbox-image.py | 13 + 1 file changed, 13 insertions(+) diff --git a/virt-sandbox-image/virt-sandbox-image.py b/virt-sandbox-image/virt-sandbox-image.py index 1da5150..d6b682f 100755 ---

[libvirt] [sandbox PATCH v4 18/21] Add config for environment variables

2015-08-28 Thread Eren Yagdiran
Add the config gobject to store custom environment variables. This will allow creating custom environment variables on a sandbox with a parameter formatted like --env key1=val1 Add testcase for custom environment variables make check now includes testcase for environment variables ---

[libvirt] [sandbox PATCH v4 21/21] Image: Add custom environment support

2015-08-28 Thread Eren Yagdiran
Any custom key=value pair can be used as a custom environment variable in virt-sandbox-image. e.g virt-sandbox-image run ubuntu /var/lib/libvirt/templates -c lxc:/// -i /bin/bash -e key1=val1 --- virt-sandbox-image/sources/DockerSource.py | 10 ++ virt-sandbox-image/sources/Source.py

[libvirt] [sandbox PATCH v4 09/21] Image: Add delete function

2015-08-28 Thread Eren Yagdiran
Refactoring delete function from virt-sandbox-image to DockerSource. Delete function can delete templates by name. --- virt-sandbox-image/sources/DockerSource.py | 53 +++ virt-sandbox-image/sources/Source.py | 4 +++ virt-sandbox-image/virt-sandbox-image.py | 58

[libvirt] [sandbox PATCH v4 13/21] Image: Add get_disk function to Source

2015-08-28 Thread Eren Yagdiran
Provide a way to know which disk image to use for the sandbox depending on the used source DockerSource will need to locate the topmost disk image among all the layers images --- virt-sandbox-image/sources/DockerSource.py | 16 virt-sandbox-image/sources/Source.py | 4

[libvirt] [sandbox PATCH v4 14/21] Image: Add run function

2015-08-28 Thread Eren Yagdiran
Run an already-built template If there is no execution command specified by user, source.get_command will find the command to invoke --- virt-sandbox-image/virt-sandbox-image.py | 25 + 1 file changed, 25 insertions(+) diff --git a/virt-sandbox-image/virt-sandbox-image.py

[libvirt] [sandbox PATCH v4 08/21] Image: Refactor create function

2015-08-28 Thread Eren Yagdiran
Move the docker-related code to the DockerSource and use the Source mechanism --- virt-sandbox-image/sources/DockerSource.py | 100 + virt-sandbox-image/sources/Source.py | 4 ++ virt-sandbox-image/virt-sandbox-image.py | 76 +- 3 files

[libvirt] [sandbox PATCH v4 01/21] Add virt-sandbox-image

2015-08-28 Thread Eren Yagdiran
From: Daniel P Berrange berra...@redhat.com virt-sandbox-image.py is a python script that lets you download Docker images easily. It is a proof of concept code and consumes Docker Rest API. --- po/POTFILES.in | 1 + virt-sandbox-image/virt-sandbox-image.py | 394

[libvirt] [sandbox PATCH v4 19/21] Add environment parameter to virt-sandbox

2015-08-28 Thread Eren Yagdiran
Allow users to add custom environment variables to their sandbox. --- bin/virt-sandbox.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/bin/virt-sandbox.c b/bin/virt-sandbox.c index 195515f..e90b698 100644 --- a/bin/virt-sandbox.c +++ b/bin/virt-sandbox.c @@ -64,6 +64,7 @@

Re: [libvirt] [PATCH] network type ethernet not needs to be reconnected

2015-08-28 Thread Laine Stump
On 08/28/2015 06:42 AM, Vasiliy Tolstov wrote: 2015-08-24 14:56 GMT+03:00 Vasiliy Tolstov v.tols...@selfip.ru: 2015-08-24 14:45 GMT+03:00 Laine Stump la...@laine.org: I've been looking back at the history of why this code was added in the first place to make sure we're not inadvertently

[libvirt] [sandbox PATCH v4 17/21] Image: man file for virt-sandbox-image

2015-08-28 Thread Eren Yagdiran
--- bin/Makefile.am| 5 ++ bin/virt-sandbox-image.pod | 172 + 2 files changed, 177 insertions(+) create mode 100644 bin/virt-sandbox-image.pod diff --git a/bin/Makefile.am b/bin/Makefile.am index df4c7dc..5d7ff8a 100644 ---

[libvirt] [sandbox PATCH v4 00/21] *** virt-sandbox-image v4 ***

2015-08-28 Thread Eren Yagdiran
Hi, Running sandbox now has its own disk layer. virt-sandbox now using GHashMap to store key value pairs for environment variables and some minor changes. Daniel P Berrange (1): Add virt-sandbox-image Eren Yagdiran (20): Fix virt-sandbox-image Image: Add Hooking Mechanism Image:

Re: [libvirt] [PATCH] lxc: ensure setns() syscall is defined

2015-08-28 Thread Guido Günther
Hi, On Wed, Aug 26, 2015 at 03:53:43PM +0100, Daniel P. Berrange wrote: Older versions of glibc don't provide the setns() syscall function wrapper, so we must define it ourselves to prevent build failure on old distros. Signed-off-by: Daniel P. Berrange berra...@redhat.com Pushed as a

[libvirt] [sandbox PATCH v4 20/21] init-common: Exporting custom environment variables

2015-08-28 Thread Eren Yagdiran
Common-init reads config file and exports custom environment variables from config file and applies them to the running sandbox. --- libvirt-sandbox/libvirt-sandbox-init-common.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libvirt-sandbox/libvirt-sandbox-init-common.c

Re: [libvirt] [PATCH 6/9] Add functions for adding usb controllers to addrs

2015-08-28 Thread John Ferlan
Perhaps needs a bit more meat/description for the commit message... On 08/12/2015 10:52 AM, Ján Tomko wrote: --- src/conf/domain_addr.c | 88 src/conf/domain_addr.h | 4 +++ src/libvirt_private.syms | 1 + 3 files changed, 93

Re: [libvirt] [PATCH 8/9] Assign addresses to USB devices

2015-08-28 Thread John Ferlan
On 08/12/2015 10:52 AM, Ján Tomko wrote: Automatically assign addresses to USB devices. Just like reserving, this is only done for newly defined domains. https://bugzilla.redhat.com/show_bug.cgi?id=1215968 --- src/conf/domain_addr.c | 88

[libvirt] Should external snapshots be possible with type volume image files?

2015-08-28 Thread Stefan Bader
At least up to libvirt version 1.2.16 an external snapshot fails when the image file (supported type like QCOW2) is not specified as type='file' by as type='volume' to a pool that consists of image files (type directory). The reason there is that the source element of the disk definition does not

Re: [libvirt] [PATCH 7/9] Reserve existing USB addresses

2015-08-28 Thread John Ferlan
On 08/12/2015 10:52 AM, Ján Tomko wrote: If USB addresses have been provided for all USB devices, or we are defining a new domain, reserve the addresses. Check if they fit on the USB controllers the domain has, and error out if two devices try to use the same address. Do not error out

Re: [libvirt] [PATCH] network type ethernet not needs to be reconnected

2015-08-28 Thread Vasiliy Tolstov
2015-08-28 17:03 GMT+03:00 Laine Stump la...@laine.org: It was pushed on on Monday, commit id bbc705d1309b8ec2eb4cdae011dc702802c96d11. It will be in 1.2.19. I took the liberty of expanding the commit log message, so you may not have recognized it: Thanks! =) -- Vasiliy Tolstov, e-mail:

Re: [libvirt] [PATCH 9/9] Assign addresses on USB device hotplug

2015-08-28 Thread John Ferlan
On 08/12/2015 10:52 AM, Ján Tomko wrote: USB disks, redirected devices, host devices and serial devices are supported. --- src/conf/domain_addr.c | 34 +++ src/conf/domain_addr.h | 4 +++ src/libvirt_private.syms

Re: [libvirt] [PATCH 5/9] Introduce virDomainUSBAddressSet

2015-08-28 Thread John Ferlan
Picking up where I left off (more or less) before KVM Forum... I think I need a virtual whiteboard... I tried reviewing patches 5 - 7 together - going back and forth. Hopefully I haven't left (m)any disjoint thoughts... I have left some thoughts on the way through - some just to make sure I'm

Re: [libvirt] [PATCH V2 1/3] libxl: fix ref counting of libxlMigrationDstArgs

2015-08-28 Thread Jim Fehlig
Michal Privoznik wrote: On 27.08.2015 23:38, Jim Fehlig wrote: How does it look with the following squashed in? diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index 8db3aea..9609e06 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@

Re: [libvirt] [PATCH v3 2/5] vz: add migration backbone code

2015-08-28 Thread Daniel P. Berrange
On Fri, Aug 28, 2015 at 12:18:30PM +0300, Nikolay Shirokovskiy wrote: On 27.08.2015 13:34, Daniel P. Berrange wrote: On Tue, Aug 25, 2015 at 12:04:14PM +0300, nshirokovs...@virtuozzo.com wrote: From: Nikolay Shirokovskiy nshirokovs...@virtuozzo.com This patch makes basic vz migration

Re: [libvirt] libvirt 1.2.19-rc1 can't configure

2015-08-28 Thread Daniel P. Berrange
On Fri, Aug 28, 2015 at 07:35:17PM +0300, Vasiliy Tolstov wrote: I'm try to configure libvirt 1.2.19-rc1 but get strange error. configure ended with: checking whether pthread.h pollutes the namespace... no checking for pthread_t... yes checking for pthread_spinlock_t... yes checking for

Re: [libvirt] [PATCH] Revert LXC: show used memory as 0 when domain is not active

2015-08-28 Thread Jim Fehlig
Eric Blake wrote: On 08/27/2015 04:38 PM, Jim Fehlig wrote: This reverts commit 1ce7c1d20cfd5afb26d2dbc88201085d52415d0e, which introduced a significant semantic change to the virDomainGetInfo() API. Additionally, the change was only made to 2 of the 15 virt drivers.

[libvirt] libvirt 1.2.19-rc1 can't configure

2015-08-28 Thread Vasiliy Tolstov
I'm try to configure libvirt 1.2.19-rc1 but get strange error. configure ended with: checking whether pthread.h pollutes the namespace... no checking for pthread_t... yes checking for pthread_spinlock_t... yes checking for library containing pthread_create and pthread_join... -pthread checking for

Re: [libvirt] [PATCH] migration: remove direct migration dependency on version1 of driver

2015-08-28 Thread Michal Privoznik
On 28.08.2015 11:29, Nikolay Shirokovskiy wrote: On 28.08.2015 08:54, Michal Privoznik wrote: On 27.08.2015 12:23, Nikolay Shirokovskiy wrote: From: Nikolay Shirokovskiy Nikolay Shirokovskiy nshirokovs...@virtuozzo.com Direct migration should work if *perform3 is present but *perform