[libvirt] [PATCH] virnettlscontexttest fails with GNUTLS 3.0.28

2013-12-19 Thread Cédric Bosdonnat
Changed the constraints on gnutls to 3.1+ --- tests/virnettlscontexttest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/virnettlscontexttest.c b/tests/virnettlscontexttest.c index fc512fc..d9a4e9d 100644 --- a/tests/virnettlscontexttest.c +++

[libvirt] [PATCH v2] virnettlscontexttest fails with GNUTLS 3.0.28

2013-12-23 Thread Cédric Bosdonnat
On openSUSE 12.x with GNUTLS 3.0.28, virnettlscontexttest fails. It has been reported to work from GNUTLS 3.1.11 on Fedora 19. Changed the constraints on gnutls to 3.1+ for unit test cacert4req. --- v2: Changed the condition for 4.0 to work and made commit message more explicit.

[libvirt] [sandbox PATCH] Fix FSF address on bin/virt-sandbox-service

2014-01-07 Thread Cédric Bosdonnat
--- bin/virt-sandbox-service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service index 2dcbfb8..a7e71cd 100755 --- a/bin/virt-sandbox-service +++ b/bin/virt-sandbox-service @@ -16,7 +16,8 @@ # # You should have received a

[libvirt] [sandbox PATCH v2] Fix FSF address on bin/virt-sandbox-service

2014-01-07 Thread Cédric Bosdonnat
--- Use the URLized version bin/virt-sandbox-service | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service index 2dcbfb8..884acac 100755 --- a/bin/virt-sandbox-service +++ b/bin/virt-sandbox-service @@ -15,8 +15,7 @@ # GNU

[libvirt] [PATCH 16/16] LXC from native: map vlan network type

2014-01-14 Thread Cédric Bosdonnat
The problem with VLAN is that the user still has to manually create the vlan interface on the host. Then the generated configuration will use it as a nerwork hostdev device. So the generated configurations of the following two fragments are equivalent. lxc.network.type = phys lxc.network.link =

[libvirt] [PATCH 09/16] LXC from native: convert lxc.id_map into idmap

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 41 ++ tests/lxcconf2xmldata/lxcconf2xml-idmap.config | 6 tests/lxcconf2xmldata/lxcconf2xml-idmap.xml| 32 tests/lxcconf2xmltest.c| 1 + 4 files changed, 80

[libvirt] [PATCH 11/16] LXC from native: map lxc.cgroup.cpu.*

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 26 tests/lxcconf2xmldata/lxcconf2xml-cputune.config | 9 ++ tests/lxcconf2xmldata/lxcconf2xml-cputune.xml| 38 tests/lxcconf2xmltest.c | 1 + 4 files changed, 74

[libvirt] [PATCH 06/16] LXC from native: convert phys network types to net hostdev devices

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 43 +++--- .../lxcconf2xmldata/lxcconf2xml-physnetwork.config | 8 tests/lxcconf2xmldata/lxcconf2xml-physnetwork.xml | 35 ++ tests/lxcconf2xmltest.c| 1 + 4 files changed,

[libvirt] [PATCH 08/16] LXC from native: convert macvlan network configuration

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 38 +- .../lxcconf2xml-macvlannetwork.config | 14 .../lxcconf2xmldata/lxcconf2xml-macvlannetwork.xml | 30 + tests/lxcconf2xmltest.c| 1 + 4 files

[libvirt] [PATCH 02/16] LXC from native: import rootfs

2014-01-14 Thread Cédric Bosdonnat
LXC rootfs can be either a directory or a block device or an image file. The first two types have been implemented, but the image file is still to be done since LXC auto-guesses the file format at mount time and the LXC driver doesn't support the 'auto' format. --- src/lxc/lxc_native.c

[libvirt] [PATCH 12/16] LXC from native: map lxc.cgroup.cpuset.*

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 27 .../lxcconf2xmldata/lxcconf2xml-cpusettune.config | 8 + tests/lxcconf2xmldata/lxcconf2xml-cpusettune.xml | 36 ++ tests/lxcconf2xmltest.c| 1 + 4 files changed,

[libvirt] [PATCH 04/16] LXC from native: implement no network conversion

2014-01-14 Thread Cédric Bosdonnat
If no network configuration is provided, LXC only provides the loopback interface. To match this, we need to use the privnet feature. --- src/lxc/lxc_native.c | 43 ++ tests/lxcconf2xmldata/lxcconf2xml-nonetwork.config | 5 +++

[libvirt] [PATCH 00/16] lxc driver connectDomainXMLFromNative

2014-01-14 Thread Cédric Bosdonnat
a VLAN interface on the host or precise the rootfs format for image files. Cédric Bosdonnat (16): LXC driver: started implementing connectDomainXMLFromNative LXC from native: import rootfs LXC from native: migrate fstab and lxc.mount.entry LXC from native: implement no network conversion LXC

[libvirt] [PATCH 05/16] LXC from native: migrate veth network configuration

2014-01-14 Thread Cédric Bosdonnat
Some of the LXC configuration properties aren't migrated since they would only cause problems in libvirt-lxc: lxc.network.ipv[46]: LXC driver doesn't setup IP address of guests lxc.network.name --- src/lxc/lxc_native.c | 98 ++--

[libvirt] [PATCH 03/16] LXC from native: migrate fstab and lxc.mount.entry

2014-01-14 Thread Cédric Bosdonnat
Tmpfs default usage is computed based on the host physical memory. To test this more easily, the value is computed outside the parse method. --- src/lxc/lxc_container.c | 2 +- src/lxc/lxc_container.h | 2 + src/lxc/lxc_native.c

[libvirt] [PATCH 01/16] LXC driver: started implementing connectDomainXMLFromNative

2014-01-14 Thread Cédric Bosdonnat
This function aims at converting LXC configuration into a libvirt domain XML description to help users migrate from LXC to libvirt. Here is an example of how the lxc configuration works: virsh -c lxc:/// domxml-from-native lxc /var/lib/lxc/migrate_test/config It is possible that some parts

[libvirt] [PATCH 07/16] LXC from native: convert lxc.tty to console devices

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 41 tests/lxcconf2xmldata/lxcconf2xml-simple.xml | 6 2 files changed, 47 insertions(+) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 3667d04..6ea4998 100644 --- a/src/lxc/lxc_native.c +++

[libvirt] [PATCH 15/16] LXC from native: map block filesystems

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 1c0f325..5ba6f94 100644 --- a/src/lxc/lxc_native.c +++ b/src/lxc/lxc_native.c @@ -471,6 +471,7 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab, unsigned

[libvirt] [PATCH 13/16] LXC from native: add lxc.cgroup.blkio.* mapping

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 44 ++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.config | 9 + tests/lxcconf2xmldata/lxcconf2xml-blkiotune.xml| 44 ++ tests/lxcconf2xmltest.c| 1 + 4 files

[libvirt] [PATCH 10/16] LXC from native: migrate memory tuning

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 26 tests/lxcconf2xmldata/lxcconf2xml-memtune.config | 12 tests/lxcconf2xmldata/lxcconf2xml-memtune.xml| 38 tests/lxcconf2xmltest.c | 1 + 4 files changed, 77

[libvirt] [PATCH 14/16] LXC from native: map lxc.arch to /domain/os/type@arch

2014-01-14 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c| 8 tests/lxcconf2xmldata/lxcconf2xml-simple.config | 1 + tests/lxcconf2xmldata/lxcconf2xml-simple.xml| 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index

[libvirt] [PATCH v2 12/18] LXC from native: map lxc.cgroup.cpu.*

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 34 tests/lxcconf2xmldata/lxcconf2xml-cputune.config | 7 + tests/lxcconf2xmldata/lxcconf2xml-cputune.xml| 29 tests/lxcconf2xmltest.c | 1 + 4 files changed, 71

[libvirt] [PATCH v2 02/18] LXC driver: started implementing connectDomainXMLFromNative

2014-01-30 Thread Cédric Bosdonnat
This function aims at converting LXC configuration into a libvirt domain XML description to help users migrate from LXC to libvirt. Here is an example of how the lxc configuration works: virsh -c lxc:/// domxml-from-native lxc /var/lib/lxc/migrate_test/config It is possible that some parts

[libvirt] [PATCH v2 05/18] LXC from native: implement no network conversion

2014-01-30 Thread Cédric Bosdonnat
If no network configuration is provided, LXC only provides the loopback interface. To match this, we need to use the privnet feature. LXC will also define a 'none' network type in its 1.0.0 version that fits libvirt LXC driver's default. --- src/lxc/lxc_native.c | 55

[libvirt] [PATCH v2 06/18] LXC from native: migrate veth network configuration

2014-01-30 Thread Cédric Bosdonnat
Some of the LXC configuration properties aren't migrated since they would only cause problems in libvirt-lxc: * lxc.network.ipv[46]: LXC driver doesn't setup IP address of guests, see rhbz#1059624 * lxc.network.name, see rhbz#1059630 --- src/lxc/lxc_native.c | 114

[libvirt] [PATCH v2 03/18] LXC from native: import rootfs

2014-01-30 Thread Cédric Bosdonnat
LXC rootfs can be either a directory or a block device or an image file. The first two types have been implemented, but the image file is still to be done since LXC auto-guesses the file format at mount time and the LXC driver doesn't support the 'auto' format. --- src/lxc/lxc_native.c

[libvirt] [PATCH v2 18/18] LXC: added some doc on domxml-from-native with mention of limitations

2014-01-30 Thread Cédric Bosdonnat
--- docs/drvlxc.html.in | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index 0f3efb0..7f73084 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -555,7 +555,7 @@ and LXC. For further

[libvirt] [PATCH v2 15/18] LXC from native: map lxc.arch to /domain/os/type@arch

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c| 9 + tests/lxcconf2xmldata/lxcconf2xml-simple.config | 1 + tests/lxcconf2xmldata/lxcconf2xml-simple.xml| 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index

[libvirt] [PATCH v2 04/18] LXC from native: migrate fstab and lxc.mount.entry

2014-01-30 Thread Cédric Bosdonnat
Tmpfs relative size and default 50% size values aren't supported as we have no idea of the available memory at the conversion time. --- src/lxc/lxc_container.c | 2 +- src/lxc/lxc_container.h | 2 + src/lxc/lxc_native.c

[libvirt] [PATCH v2 10/18] LXC from native: convert lxc.id_map into idmap

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 43 ++ tests/lxcconf2xmldata/lxcconf2xml-idmap.config | 5 +++ tests/lxcconf2xmldata/lxcconf2xml-idmap.xml| 28 + tests/lxcconf2xmltest.c| 1 + 4 files changed, 77

[libvirt] [PATCH v2 14/18] LXC from native: add lxc.cgroup.blkio.* mapping

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 63 ++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.config | 7 +++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.xml| 35 tests/lxcconf2xmltest.c| 1 + 4 files changed, 106

[libvirt] [PATCH v2 08/18] LXC from native: convert lxc.tty to console devices

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 44 tests/lxcconf2xmldata/lxcconf2xml-simple.xml | 6 2 files changed, 50 insertions(+) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index ad33845..9d9ccb1 100644 --- a/src/lxc/lxc_native.c +++

[libvirt] [PATCH v2 01/18] Improve virConf parse to handle LXC config format

2014-01-30 Thread Cédric Bosdonnat
virConf now honours a VIR_CONF_FLAG_LXC_FORMAT flag to handle LXC configuration files. The differences are that property names can contain '.' character and values are all strings without any bounding quotes. Provide a new virConfWalk function calling a handler on all non-comment values. This

[libvirt] [PATCH v2 11/18] LXC from native: migrate memory tuning

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 40 tests/lxcconf2xmldata/lxcconf2xml-memtune.config | 10 ++ tests/lxcconf2xmldata/lxcconf2xml-memtune.xml| 29 + tests/lxcconf2xmltest.c | 1 + 4 files changed, 80

[libvirt] [PATCH v2 07/18] LXC from native: convert phys network types to net hostdev devices

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 44 +++--- .../lxcconf2xmldata/lxcconf2xml-physnetwork.config | 6 +++ tests/lxcconf2xmldata/lxcconf2xml-physnetwork.xml | 26 + tests/lxcconf2xmltest.c| 1 + 4 files changed, 72

[libvirt] [PATCH v2 16/18] LXC from native: map block filesystems

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 4 1 file changed, 4 insertions(+) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 98a9e12..cdf7c7c 100644 --- a/src/lxc/lxc_native.c +++ b/src/lxc/lxc_native.c @@ -280,6 +280,10 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab) } else

[libvirt] [PATCH v2 09/18] LXC from native: convert macvlan network configuration

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 47 +- .../lxcconf2xml-macvlannetwork.config | 13 ++ .../lxcconf2xmldata/lxcconf2xml-macvlannetwork.xml | 26 tests/lxcconf2xmltest.c| 1 + 4 files changed, 77

[libvirt] [PATCH v2 17/18] LXC from native: map vlan network type

2014-01-30 Thread Cédric Bosdonnat
The problem with VLAN is that the user still has to manually create the vlan interface on the host. Then the generated configuration will use it as a nerwork hostdev device. So the generated configurations of the following two fragments are equivalent (see rhbz#1059637). lxc.network.type = phys

[libvirt] [PATCH v2 13/18] LXC from native: map lxc.cgroup.cpuset.*

2014-01-30 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 30 ++ .../lxcconf2xmldata/lxcconf2xml-cpusettune.config | 6 + tests/lxcconf2xmldata/lxcconf2xml-cpusettune.xml | 27 +++ tests/lxcconf2xmltest.c| 1 + 4 files

[libvirt] [PATCH v2 00/18] LXC configuration conversion to domain XML

2014-01-30 Thread Cédric Bosdonnat
in the appropriate commit log, and I still hope to be able to provide patches for them later. Cédric Bosdonnat (18): Improve virConf parse to handle LXC config format LXC driver: started implementing connectDomainXMLFromNative LXC from native: import rootfs LXC from native: migrate fstab

[libvirt] [PATCH] virnetdevbandwidthtest: fix hard coded /sbin/tc

2014-01-31 Thread Cédric Bosdonnat
On openSuse, (and possibly other distros), tc isn't located in /sbin/tc. To get rid of that problem, use TC constant instead of hard coded /sbin/tc in the expected string --- tests/virnetdevbandwidthtest.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[libvirt] [PATCH v3 10/21] LXC from native: convert lxc.id_map into idmap

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 44 ++ tests/lxcconf2xmldata/lxcconf2xml-idmap.config | 5 +++ tests/lxcconf2xmldata/lxcconf2xml-idmap.xml| 28 tests/lxcconf2xmltest.c| 1 + 4 files changed, 78

[libvirt] [PATCH v3 03/21] LXC from native: import rootfs

2014-02-05 Thread Cédric Bosdonnat
LXC rootfs can be either a directory or a block device or an image file. The first two types have been implemented, but the image file is still to be done since LXC auto-guesses the file format at mount time and the LXC driver doesn't support the 'auto' format. --- src/lxc/lxc_native.c

[libvirt] [PATCH v3 13/21] LXC from native: map lxc.cgroup.cpuset.*

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 30 ++ .../lxcconf2xmldata/lxcconf2xml-cpusettune.config | 6 + tests/lxcconf2xmldata/lxcconf2xml-cpusettune.xml | 27 +++ tests/lxcconf2xmltest.c| 1 + 4 files

[libvirt] [PATCH v3 07/21] LXC from native: convert phys network types to net hostdev devices

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 44 +++--- .../lxcconf2xmldata/lxcconf2xml-physnetwork.config | 6 +++ tests/lxcconf2xmldata/lxcconf2xml-physnetwork.xml | 26 + tests/lxcconf2xmltest.c| 1 + 4 files changed, 72

[libvirt] [PATCH v3 02/21] LXC driver: started implementing connectDomainXMLFromNative

2014-02-05 Thread Cédric Bosdonnat
This function aims at converting LXC configuration into a libvirt domain XML description to help users migrate from LXC to libvirt. Here is an example of how the lxc configuration works: virsh -c lxc:/// domxml-from-native lxc-tools /var/lib/lxc/migrate_test/config It is possible that some parts

[libvirt] [PATCH v3 12/21] LXC from native: map lxc.cgroup.cpu.*

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 34 tests/lxcconf2xmldata/lxcconf2xml-cputune.config | 7 + tests/lxcconf2xmldata/lxcconf2xml-cputune.xml| 29 tests/lxcconf2xmltest.c | 1 + 4 files changed, 71

[libvirt] [PATCH v3 08/21] LXC from native: convert lxc.tty to console devices

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 44 tests/lxcconf2xmldata/lxcconf2xml-simple.xml | 6 2 files changed, 50 insertions(+) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 7997fda..96523c4 100644 --- a/src/lxc/lxc_native.c +++

[libvirt] [PATCH v3 11/21] LXC from native: migrate memory tuning

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 40 tests/lxcconf2xmldata/lxcconf2xml-memtune.config | 10 ++ tests/lxcconf2xmldata/lxcconf2xml-memtune.xml| 29 + tests/lxcconf2xmltest.c | 1 + 4 files changed, 80

[libvirt] [PATCH v3 17/21] LXC from native: map vlan network type

2014-02-05 Thread Cédric Bosdonnat
The problem with VLAN is that the user still has to manually create the vlan interface on the host. Then the generated configuration will use it as a nerwork hostdev device. So the generated configurations of the following two fragments are equivalent (see rhbz#1059637). lxc.network.type = phys

[libvirt] [PATCH v3 16/21] LXC from native: map block filesystems

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 4 1 file changed, 4 insertions(+) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 1997370..9a16523 100644 --- a/src/lxc/lxc_native.c +++ b/src/lxc/lxc_native.c @@ -286,6 +286,10 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab)

[libvirt] [PATCH v3 01/21] Improve virConf parse to handle LXC config format

2014-02-05 Thread Cédric Bosdonnat
virConf now honours a VIR_CONF_FLAG_LXC_FORMAT flag to handle LXC configuration files. The differences are that property names can contain '.' character and values are all strings without any bounding quotes. Provide a new virConfWalk function calling a handler on all non-comment values. This

[libvirt] [PATCH v3 06/21] LXC from native: migrate veth network configuration

2014-02-05 Thread Cédric Bosdonnat
Some of the LXC configuration properties aren't migrated since they would only cause problems in libvirt-lxc: * lxc.network.ipv[46]: LXC driver doesn't setup IP address of guests, see rhbz#1059624 * lxc.network.name, see rhbz#1059630 --- src/lxc/lxc_native.c | 114

[libvirt] [PATCH v3 04/21] LXC from native: migrate fstab and lxc.mount.entry

2014-02-05 Thread Cédric Bosdonnat
Tmpfs relative size and default 50% size values aren't supported as we have no idea of the available memory at the conversion time. --- src/lxc/lxc_container.c | 2 +- src/lxc/lxc_container.h | 2 + src/lxc/lxc_native.c

[libvirt] [PATCH v3 00/21] LXC configuration conversion

2014-02-05 Thread Cédric Bosdonnat
to give major:minor numbers instead of a path for blkio tune devices. The last one is a way to address Daniel's comment on the /dev/block/... paths. Cédric Bosdonnat (21): Improve virConf parse to handle LXC config format LXC driver: started implementing connectDomainXMLFromNative LXC from

[libvirt] [PATCH v3 15/21] LXC from native: map lxc.arch to /domain/os/type@arch

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c| 9 + tests/lxcconf2xmldata/lxcconf2xml-simple.config | 1 + tests/lxcconf2xmldata/lxcconf2xml-simple.xml| 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index

[libvirt] [PATCH v3 05/21] LXC from native: implement no network conversion

2014-02-05 Thread Cédric Bosdonnat
If no network configuration is provided, LXC only provides the loopback interface. To match this, we need to use the privnet feature. LXC will also define a 'none' network type in its 1.0.0 version that fits libvirt LXC driver's default. --- src/lxc/lxc_native.c | 55

[libvirt] [PATCH v3 20/21] lxc: honor link state=up for veth interfaces

2014-02-05 Thread Cédric Bosdonnat
direct interfaces are already brought up when creating them. --- src/lxc/lxc_process.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index ed729f6..6f7ff74 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -245,6 +245,7 @@

[libvirt] [PATCH v3 21/21] blkiotune: allow node major='' minor=''/ in place of path

2014-02-05 Thread Cédric Bosdonnat
To ease LXC configuration conversion, allow blkiotune device XML fragments to define the device using its major:minor numbers. --- docs/formatdomain.html.in | 10 +- src/conf/domain_conf.c | 45 - src/conf/domain_conf.h

[libvirt] [PATCH v3 14/21] LXC from native: add lxc.cgroup.blkio.* mapping

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 63 ++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.config | 7 +++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.xml| 35 tests/lxcconf2xmltest.c| 1 + 4 files changed, 106

[libvirt] [PATCH v3 19/21] LXC from native: convert blkio throttle config

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 68 ++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.config | 4 ++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.xml| 4 ++ 3 files changed, 65 insertions(+), 11 deletions(-) diff --git a/src/lxc/lxc_native.c

[libvirt] [PATCH v3 09/21] LXC from native: convert macvlan network configuration

2014-02-05 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 47 +- .../lxcconf2xml-macvlannetwork.config | 13 ++ .../lxcconf2xmldata/lxcconf2xml-macvlannetwork.xml | 26 tests/lxcconf2xmltest.c| 1 + 4 files changed, 77

[libvirt] [PATCH v3 18/21] LXC: added some doc on domxml-from-native with mention of limitations

2014-02-05 Thread Cédric Bosdonnat
--- docs/drvlxc.html.in | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index 0f3efb0..fc4bc20 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -555,7 +555,7 @@ and LXC. For further

[libvirt] [PATCH] AppArmor: Fix the place where the template should be installed

2014-02-12 Thread Cédric Bosdonnat
The security driver expects /etc/apparmor.d/libvirt/TEMPLATE but we installed it to /etc/apparmor.d/libvirtd/TEMPLATE. Move the template to the expected place since that code was here long before. --- examples/apparmor/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[libvirt] [PATCH] Fixed build with clang.

2014-02-12 Thread Cédric Bosdonnat
Two unused global variables, and DBUS_TYPE_INVALID used as a const char*. --- src/phyp/phyp_driver.c | 1 - src/storage/storage_backend_scsi.c | 24 src/util/virdbus.c | 2 +- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git

[libvirt] [PATCH] lxc from native: removed now remaining useless line

2014-02-13 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index ee07635..2cf479d 100644 --- a/src/lxc/lxc_native.c +++ b/src/lxc/lxc_native.c @@ -900,7 +900,6 @@ lxcParseConfigString(const char *config) } /* Loop over

[libvirt] [PATCH] Forgot to add lxcconf2xmldata to dist.

2014-02-14 Thread Cédric Bosdonnat
--- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index 0718a69..9bb61ca 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -72,6 +72,7 @@ EXTRA_DIST = \ domainsnapshotxml2xmlout \ fchostdata \

[libvirt] [PATCH 4/5] apparmor: add debug traces when changing profile.

2014-02-21 Thread Cédric Bosdonnat
The reason for these is that aa-status doesn't show the process using the profile as they are in another namespace. --- src/security/security_apparmor.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c index

[libvirt] [PATCH 1/5] LXC driver: generate apparmor profiles for guests

2014-02-21 Thread Cédric Bosdonnat
From: Cédric Bosdonnat cedric.bosdon...@free.fr use_apparmor() was first designed to be called from withing libvirtd, but libvirt_lxc also uses it. in libvirt_lxc, there is no need to check whether to use apparmor or not: just use it if possible. --- examples/apparmor/Makefile.am| 2

[libvirt] [PATCH 2/5] Make sure apparmor is started before libvirtd

2014-02-21 Thread Cédric Bosdonnat
If apparmor security driver is enabled in either qemu or lxc driver configuration and libvirtd starts before AppArmor, it will fail. --- daemon/libvirtd.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in index dc2433a..b50fca0

[libvirt] [PATCH 0/5] Get AppArmor to work for LXC containers

2014-02-21 Thread Cédric Bosdonnat
This patch series, implements the AppArmor support for LXC containers. examples/apparmor/libvirt-lxc only allows the minimum, users will be able to add more in the generated profile. Cédric Bosdonnat (5): LXC driver: generate apparmor profiles for guests Make sure apparmor is started before

[libvirt] [PATCH 5/5] add support for apparmor in lxc-enter-namespace

2014-02-21 Thread Cédric Bosdonnat
--- examples/apparmor/libvirt-lxc | 7 +++ src/libvirt-lxc.c | 13 + 2 files changed, 20 insertions(+) diff --git a/examples/apparmor/libvirt-lxc b/examples/apparmor/libvirt-lxc index 47f27b1..d404328 100644 --- a/examples/apparmor/libvirt-lxc +++

[libvirt] [PATCH 3/5] Set default lxc security_driver to none

2014-02-21 Thread Cédric Bosdonnat
No security_driver value could cause weird behavior, like using apparmor even though we don't want it. --- src/lxc/lxc.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lxc/lxc.conf b/src/lxc/lxc.conf index 8df4601..5eb0122 100644 --- a/src/lxc/lxc.conf +++ b/src/lxc/lxc.conf @@

[libvirt] [PATCH v2 4/5] add support for apparmor in lxc-enter-namespace

2014-03-03 Thread Cédric Bosdonnat
--- examples/apparmor/libvirt-lxc | 7 +++ src/libvirt-lxc.c | 13 + 2 files changed, 20 insertions(+) diff --git a/examples/apparmor/libvirt-lxc b/examples/apparmor/libvirt-lxc index 47f27b1..d404328 100644 --- a/examples/apparmor/libvirt-lxc +++

[libvirt] [PATCH v2 1/5] LXC driver: generate apparmor profiles for guests

2014-03-03 Thread Cédric Bosdonnat
From: Cédric Bosdonnat cedric.bosdon...@free.fr use_apparmor() was first designed to be called from withing libvirtd, but libvirt_lxc also uses it. in libvirt_lxc, there is no need to check whether to use apparmor or not: just use it if possible. --- examples/apparmor/Makefile.am| 2

[libvirt] [PATCH v2 2/5] Make sure apparmor is started before libvirtd

2014-03-03 Thread Cédric Bosdonnat
If apparmor security driver is enabled in either qemu or lxc driver configuration and libvirtd starts before AppArmor, it will fail. --- daemon/libvirtd.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in index e1f2a07..086da36

[libvirt] [PATCH v2 0/5] AppArmor support for lxc containers

2014-03-03 Thread Cédric Bosdonnat
This is a repost of the previous patch series, with the following changes: * Dropped the patch setting none security driver as default in lxc.conf * Add a patch to implement support for none type with apparmor security model. Cédric Bosdonnat (5): LXC driver: generate apparmor profiles

[libvirt] [PATCH v2 5/5] apparmor: handle none type

2014-03-03 Thread Cédric Bosdonnat
--- src/security/security_apparmor.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c index 1c1b128..a74a91c 100644 --- a/src/security/security_apparmor.c +++ b/src/security/security_apparmor.c @@

[libvirt] [PATCH v2 3/5] apparmor: add debug traces when changing profile.

2014-03-03 Thread Cédric Bosdonnat
The reason for these is that aa-status doesn't show the process using the profile as they are in another namespace. --- src/security/security_apparmor.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c index

[libvirt] [PATCH] LXC start after shutdown didn't work

2013-09-26 Thread Cédric Bosdonnat
The bug is that after shutting down an lxc full-distro container, start always fails. It turns out that shutdown doesn't clean the machine on the machined side. A workaround is to machinectl terminate the container. A proper fix would be that machinectl tracks the state of the init process and

[libvirt] [PATCH] LXC: workaround machined uncleaned data with containers running systemd.

2013-09-27 Thread Cédric Bosdonnat
The problem is described by [0] but its effect on libvirt is that starting a container with a full distro running systemd after having stopped it simply fails. The container cleanup now calls the machined Terminate function to make sure that everything is in order for the next run. [0]:

[libvirt] [PATCH] LXC: workaround machined uncleaned data with containers running systemd.

2013-09-30 Thread Cédric Bosdonnat
The problem is described by [0] but its effect on libvirt is that starting a container with a full distro running systemd after having stopped it simply fails. The container cleanup now calls the machined Terminate function to make sure that everything is in order for the next run. [0]:

[libvirt] [PATCH 0/2] Network events feature

2013-11-19 Thread Cédric Bosdonnat
the reusable parts of them. The second commit adds network events based on those now-common event functions. The network events are implemented in the test and bridge network drivers ATM. Cédric Bosdonnat (2): virDomainEvent refactoring to separate generic things from domain ones Added network

[libvirt] [PATCH 00/34] network events feature v2

2013-11-29 Thread Cédric Bosdonnat
are started/destroyed/defined/undefined. The network events are implemented in the test, bridge network and remote drivers ATM. Cédric Bosdonnat (34): Added domain start/stop/define/undefine event unit tests Rename virDomainEventCallback to virObjectEventCallback Renamed virDomainMeta

[libvirt] [PATCH 07/34] Created virObjectEventStateRegisterID

2013-11-29 Thread Cédric Bosdonnat
but kept virDomainEventStateRegisterID as a convenience wrapper around this new function. --- src/conf/domain_event.c | 125 +++ src/conf/domain_event.h | 25 ++ src/libvirt_private.syms | 1 + 3 files changed, 110 insertions(+), 41

[libvirt] [PATCH 04/34] Renamed virDomainEventQueue to virObjectEventQueue

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 46 +++--- src/conf/domain_event.h | 4 ++-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 3bfe1e0..a4af23a 100644 --- a/src/conf/domain_event.c +++

[libvirt] [PATCH 02/34] Rename virDomainEventCallback to virObjectEventCallback

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 8 src/conf/domain_event.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 19e3920..fd68820 100644 --- a/src/conf/domain_event.c +++ b/src/conf/domain_event.c @@ -43,7 +43,7 @@

[libvirt] [PATCH 23/34] Add object event namespaces for the event IDs

2013-11-29 Thread Cédric Bosdonnat
Each unique event ID will thus be composed by 1 byte for the namespace and 1 byte for a namespace-specific ID. The namespace for domain event needs to be 0 for compatibility reasons. --- include/libvirt/libvirt.h.in | 8 src/conf/domain_event.c | 10 -- 2 files changed, 16

[libvirt] [PATCH 09/34] Create virDomainEventLifecycle to start removing the huge union

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 65 ++--- src/conf/domain_event.h | 8 +++--- 2 files changed, 50 insertions(+), 23 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index ff4f69a..a69ce11 100644 --- a/src/conf/domain_event.c

[libvirt] [PATCH 08/34] virObject-ified virDomainEvent

2013-11-29 Thread Cédric Bosdonnat
Added a parent class virObjectEvent for future event types --- cfg.mk | 2 - src/conf/domain_event.c | 620 +++ src/conf/domain_event.h | 5 +- src/libvirt_private.syms | 1 - src/qemu/qemu_driver.c | 2 +-

[libvirt] [PATCH 18/34] Created virDomainEventTrayChange

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 77 - src/conf/domain_event.h | 4 +-- 2 files changed, 52 insertions(+), 29 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 8497b9a..24291b9 100644 --- a/src/conf/domain_event.c +++

[libvirt] [PATCH 01/34] Added domain start/stop/define/undefine event unit tests

2013-11-29 Thread Cédric Bosdonnat
These unit tests are aiming at providing some help during the domain events refactoring. --- .gitignore | 1 + tests/Makefile.am | 7 ++ tests/objecteventtest.c | 242 3 files changed, 250 insertions(+) create mode 100644

[libvirt] [PATCH 29/34] test driver: renamed testDomainEventQueue into testObjectEventQueue

2013-11-29 Thread Cédric Bosdonnat
--- src/test/test_driver.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 6d2a0e2..4972e3d 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -121,7 +121,7 @@

[libvirt] [PATCH 24/34] Renamed virDomainEventTimer to virObjectEventTimer

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index d78f3ea..b0c9050 100644 --- a/src/conf/domain_event.c +++ b/src/conf/domain_event.c @@ -825,7 +825,7 @@

[libvirt] [PATCH 13/34] Created virDomainEventWatchdog to get rid of the huge union

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 56 ++--- src/conf/domain_event.h | 4 ++-- 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 31699b1..8d08d2f 100644 --- a/src/conf/domain_event.c +++

[libvirt] [PATCH 12/34] Create virDomainEventRTCChange to get rid of the huge union

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 53 +++-- src/conf/domain_event.h | 4 ++-- 2 files changed, 40 insertions(+), 17 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 07c8100..31699b1 100644 --- a/src/conf/domain_event.c +++

[libvirt] [PATCH 03/34] Renamed virDomainMeta to virObjectMeta

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index fd68820..3bfe1e0 100644 --- a/src/conf/domain_event.c +++ b/src/conf/domain_event.c @@ -32,13

[libvirt] [PATCH 06/34] Renamed virDomainEventCallbackList* to virObjectEventCallbackList*

2013-11-29 Thread Cédric Bosdonnat
But kept the legacy Domain lifecycle event functions as is. --- src/conf/domain_event.c | 87 ++--- src/conf/domain_event.h | 4 +-- 2 files changed, 48 insertions(+), 43 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c

[libvirt] [PATCH 16/34] Created virDomainEventBlockJob

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 84 +++-- src/conf/domain_event.h | 16 +- 2 files changed, 61 insertions(+), 39 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index dea8729..5d56fe5 100644 ---

[libvirt] [PATCH 19/34] Created virDomainEventBalloonChange

2013-11-29 Thread Cédric Bosdonnat
--- src/conf/domain_event.c | 60 ++--- src/conf/domain_event.h | 4 ++-- 2 files changed, 44 insertions(+), 20 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 24291b9..ac7828e 100644 --- a/src/conf/domain_event.c +++

  1   2   3   4   5   6   >