[Xen-devel] [OSSTest Nested v12 20/21] Don't lvextend if actually no more space to extend

2015-08-28 Thread Robert Ho
Though passes if judgement, the overall_limit_pe(\$vg_more_free_pe); may final judge no more free_pe to extend. So, check if $vg_more_free_pe is 0, if so, we don't lvextend, otherwise lvextend will report error on nonsense operation. Signed-off-by: Robert Ho --- ts-xen-build-pre

[Xen-devel] [OSSTest Nested v12 02/21] Correct a mistake in setboot_grup2() of Xen entry parsing pattern

2015-08-28 Thread Robert Ho
In previous adding of 'submenu' parsing code, a mistake was made. Now restore the match pattern to original. Signed-off-by: Robert Ho --- Osstest/Debian.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index c6b472

[Xen-devel] [OSSTest Nested v12 11/21] Tcl: Provide lunappend

2015-08-28 Thread Robert Ho
From: Ian Jackson Signed-off-by: Ian Jackson Tested-by: Robert Ho --- tcl/osstestlib.tcl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tcl/osstestlib.tcl b/tcl/osstestlib.tcl index 61a6a09..b5a52d3 100644 --- a/tcl/osstestlib.tcl +++ b/tcl/osstestlib.tcl @@ -75,6 +75,13 @@ proc

[Xen-devel] [OSSTest Nested v12 05/21] Honour $xopts{ExtraConfig} and use it to enable nestedhvm

2015-08-28 Thread Robert Ho
Signed-off-by: Robert Ho --- ts-debian-hvm-install | 5 + 1 file changed, 5 insertions(+) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index 2ec4717..e271af8 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -202,6 +202,10 @@ sub prep

[Xen-devel] [OSSTest Nested v12 04/21] Comment out CDROM entry in HVM guest VM

2015-08-28 Thread Robert Ho
Comment out CDROM entry in sources.list to make HTTP URL entry available for L1 HVM guest VM. Signed-off-by: Robert Ho --- ts-debian-hvm-install | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index f9bc5a5..2ec4717 100755 --- a

[Xen-devel] [OSSTest Nested v12 21/21] await_tcp(): check_ip for each loop iteration

2015-08-28 Thread Robert Ho
dress in dhcp cases. Signed-off-by: Robert Ho --- Osstest/TestSupport.pm | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 1d1d6b1..298fca9 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm

[Xen-devel] [OSSTest Nested v12 19/21] Selecthost uses dynamic IP address if the host is not configured static IP.

2015-08-28 Thread Robert Ho
of nested test). Signed-off-by: Robert Ho --- Osstest/DhcpWatch/leases.pm | 2 +- Osstest/TestSupport.pm | 23 +-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Osstest/DhcpWatch/leases.pm b/Osstest/DhcpWatch/leases.pm index 9a74c40..16e67d3 100644 --

[Xen-devel] [OSSTest Nested v12 00/21] Introduction of netsted HVM test job

2015-08-28 Thread Robert Ho
- Ian Jackson (4): Tcl: Provide lunappend sg-run-job: Declare Tcl (for the benefit of Emacs) sg-run-job: Break out per-host-prep and per-host-finish sg-run-job: Provide infrastructure for layers of nesting Robert Ho (17): Optimize and re-format previ

[Xen-devel] [OSSTest Nested v12 14/21] sg-run-job: Provide infrastructure for layers of nesting

2015-08-28 Thread Robert Ho
in per-host-finish, avoids powering off physical servers. The use of `.' rather than `!.' for iffail means we do not power off after failures (as we might want to preserve the state for debugging etc). Signed-off-by: Ian Jackson Tested-by: Robert Ho --- sg-run-job | 21 ++

[Xen-devel] [OSSTest Nested v12 08/21] Add new script to customize nested test configuration

2015-08-28 Thread Robert Ho
guest. Changes since last version: 1. don't store l1 IP in runvar 2. create vg in the lv disk in l0; not bother to do this inside l1. Signed-off-by: longtao.pang Acked-by: Ian Campbell Signed-off-by: Robert Ho --- ts-nested-setup | 77 +++

[Xen-devel] [OSSTest Nested v12 03/21] Allow runvars to specify guest disk and ram size (turning previous values into defaults)

2015-08-28 Thread Robert Ho
size to be defined by runvar. It takes precedence over the calculation formula. 3. Add comment at the interface code. Signed-off-by: Robert Ho --- Osstest/TestSupport.pm | 3 ++- ts-debian-hvm-install | 14 ++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git

[Xen-devel] [OSSTest Nested v12 01/21] Optimize and re-format previous code of 'submenu' parsing

2015-08-28 Thread Robert Ho
* space between ')' and '{'; and after '=' * omit unnecessary 'define' and '!defined' usage * break long '{}' into several lines Signed-off-by: Robert Ho --- Osstest/Debian.pm | 10 ++ 1 file changed, 6 insertions(+), 4 dele

[Xen-devel] [OSSTest Nested v12 07/21] Replace 'start osstest-confirm-booted' code by function

2015-08-28 Thread Robert Ho
Schedul start osstest-confirm-booted script via call `host_install_postboot_complete' fucntion; in order to avoid open code. Signed-off-by: Robert Ho --- ts-host-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts-host-install b/ts-host-install

[Xen-devel] [OSSTest Nested v12 18/21] After Xen install, configure its xenbr0 interface as dhcp.

2015-08-28 Thread Robert Ho
. Signed-off-by: Robert Ho --- ts-xen-install | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ts-xen-install b/ts-xen-install index e039173..6d04982 100755 --- a/ts-xen-install +++ b/ts-xen-install @@ -303,10 +303,7 @@ END if (m/^\s* iface \s+ (?: $physif | xenbr0

[Xen-devel] [OSSTest Nested v12 06/21] Add new function of 'host_install_postboot_complete'

2015-08-28 Thread Robert Ho
s-nested-setup) will need this, so wrapper it to avoid open code. Signed-off-by: Robert Ho --- Osstest/TestSupport.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index b7963af..f2ec9be 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest

[Xen-devel] [OSSTest Nested v12 15/21] Integrate Ian J. code and small corrections.

2015-08-28 Thread Robert Ho
Signed-off-by: Robert Ho --- sg-run-job | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sg-run-job b/sg-run-job index 7cb6cac..4ae651d 100755 --- a/sg-run-job +++ b/sg-run-job @@ -69,14 +69,14 @@ proc run-job {job} { per-host-ts broken host-install/@(*) ts-host

[Xen-devel] [OSSTest Nested v12 12/21] sg-run-job: Declare Tcl (for the benefit of Emacs)

2015-08-28 Thread Robert Ho
From: Ian Jackson Signed-off-by: Ian Jackson Tested-by: Robert Ho Resolve conflicts: sg-run-job --- sg-run-job | 1 + 1 file changed, 1 insertion(+) diff --git a/sg-run-job b/sg-run-job index e4ebc22..ec03cce 100755 --- a/sg-run-job +++ b/sg-run-job @@ -1,4 +1,5 @@ #!/usr/bin/tclsh

[Xen-devel] [OSSTest Nested v12 16/21] Add PDU power method for nested L1 and L2 guest

2015-08-28 Thread Robert Ho
For nested host/guest, its power on/off method shall be its host invoke $(toolstack)->create/destroy method. --- Osstest/PDU/guest.pm | 63 ++ Osstest/TestSupport.pm | 3 +++ 2 files changed, 66 insertions(+) create mode 100755 Osstest/PDU/guest.

[Xen-devel] [OSSTest Nested v12 17/21] Compose the main recipe of nested test job

2015-08-28 Thread Robert Ho
After integrated Ian J.'s code of nested infrasture changes, re- write the nested job's recipe. Signed-off-by: Robert Ho --- sg-run-job | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sg-run-job b/sg-run-job index 4ae651d..3f24fd6 100755 --- a/sg-run-job +++ b/

[Xen-devel] [OSSTest Nested v12 09/21] Wrapper and use core_dump_setup() for nested host and normal host to setup coredump sysctl

2015-08-28 Thread Robert Ho
s function for l1 host. Signed-off-by: longtao.pang Signed-off-by: Robert Ho --- Osstest/TestSupport.pm | 19 +++ ts-debian-hvm-install | 1 + ts-host-install| 15 +-- ts-nested-setup| 2 ++ 4 files changed, 23 insertions(+), 14 deletions(-) di

[Xen-devel] [OSSTest Nested v12 10/21] Add test job for nest test case

2015-08-28 Thread Robert Ho
essary '' 3. no need to set l2 disk size Signed-off-by: longtao.pang Acked-by: Ian Campbell Signed-off-by: Robert Ho --- make-flight | 29 + 1 file changed, 29 insertions(+) diff --git a/make-flight b/make-flight index 00f797e..aa6c9b5 100755 --- a/make

[Xen-devel] [OSSTest Nested v12 13/21] sg-run-job: Break out per-host-prep and per-host-finish

2015-08-28 Thread Robert Ho
From: Ian Jackson No functional change. We now call the per-host-ts finish steps unconditionally, rather than only if !$need_build_host, per-host-ts is (complicated) no-op if $need_build_host, since in that case $need_xen_hosts is {}. Signed-off-by: Ian Jackson Tested by: Robert Ho --- sg

[Xen-devel] [PATCH OSSTEST 01/12] Add support of parsing grub which has 'submenu' primitive

2015-02-11 Thread Robert Ho
From a hvm kernel build from Linux stable Kernel tree, the auto generated grub2 menu will have 'submenu' primitive, upon the 'menuentry' items. Xen boot entries will be grouped into a submenu. This patch adds capability to support such grub formats. Also, this patch adjust some indent alignmen

[Xen-devel] [PATCH OSSTEST 12/12] Changes to test step of xen install

2015-02-11 Thread Robert Ho
This patch accomodates ts-xen-install to nested L1 xen installation usage. Its change is relatively simpler than ts-debain-hvm-install. We simply alter '$ho' usage to 'w_ho', which is assigned to '$ho' in original L0 installation context, while assigned to '$gho' in L1 Xen installation context

[Xen-devel] [PATCH OSSTEST 09/12] Add build hvm job for nested test use

2015-02-11 Thread Robert Ho
Add build-debain-hvm build job. The $TREE_LINUX and $REVISION_LINU can be designaged in standalone.config. --- mfi-common | 8 1 file changed, 8 insertions(+) diff --git a/mfi-common b/mfi-common index 27d6b31..0d43959 100644 --- a/mfi-common +++ b/mfi-common @@ -166,6 +166,14 @@ crea

[Xen-devel] [PATCH OSSTEST 10/12] Compose the main body of test-nested test job.

2015-02-11 Thread Robert Ho
Compose the main body of test-nested test job. 1. invoke ts-debian-hvm-install with host of 'host', gn of 'nested', nested of 'nested_L1' 2. then install xen (ts-xen-install) with host of 'host', gn of 'nested', nested_build defined 3. then again invoke ts-debian-hvm-install to install L2,

[Xen-devel] [PATCH OSSTEST 02/12] Increase boot timer to accomodate to nest test

2015-02-11 Thread Robert Ho
In nested test case, guest boot will take more time. Increase the timer to 200 seconds. --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index c4da8ce..f3c515e 100644 --- a/Osstest/TestSupport.pm +++

[Xen-devel] [PATCH OSSTEST 03/12] Designate vif device model to e1000

2015-02-11 Thread Robert Ho
Designate vif model to 'e1000', otherwise, with default device model, the L1 eth0 interface disappear, hence xenbridge cannot work. Maybe this limitation can be removed later after some fix it. For now, we have to accomodate to it. --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertio

[Xen-devel] [PATCH OSSTEST 07/12] For hvm guest configuration, config console to 'hvc0'

2015-02-11 Thread Robert Ho
--- Osstest/TestSupport.pm | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index c23bbc7..864805e 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1753,7 +1753,11 @@ sub target_kernkind_check ($) { if

[Xen-devel] [PATCH OSSTEST 05/12] Add and expose some testsupport APIs

2015-02-11 Thread Robert Ho
When install L2 guest, we will need to invoke 'select_ether' to get guest MAC address. So here expose select_ether(). And also, we added another function 'guest_editconfig_cd' and expose it. This function bascically changes guest boot device sequence and alter its on_reboot behavior to restart.

[Xen-devel] [PATCH OSSTEST 08/12] Add test job for nest test case

2015-02-11 Thread Robert Ho
This patch adds creation of the nested test job; when job creation procedure is invoked. --- make-flight | 20 1 file changed, 20 insertions(+) diff --git a/make-flight b/make-flight index a91f256..4f6ce91 100755 --- a/make-flight +++ b/make-flight @@ -197,6 +197,25 @@ do

[Xen-devel] [PATCH OSSTEST 04/12] Just some indentation adustments.

2015-02-11 Thread Robert Ho
--- Osstest/TestSupport.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 8f8638b..1053409 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -53,7 +53,7 @@ BEGIN { target_getfile

[Xen-devel] [PATCH OSSTEST 06/12] Manipulate $ho IP assignment for nest L2 situation

2015-02-11 Thread Robert Ho
In L2 installation context, its host (L1) IP address is not queried from DNS, but from previous step of L1 installation, in which, L1 IP is stored in run var. --- Osstest/TestSupport.pm | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/

[Xen-devel] [PATCH OSSTEST 11/12] Changes on test step of debain hvm guest install

2015-02-11 Thread Robert Ho
This patch is to make ts-debian-hvm-install accomodate to nested L1 and L2 guest installation context. 1. Add an input param 'nested' to indicate which installationcontext is. and manipulating 'gn' accordingly. 2. increase disk size to accomodate to nested test requirment. 3. increase root

[Xen-devel] [PATCH OSSTEST 00/12] Add nested xen on xen test case

2015-02-11 Thread Robert Ho
es 'ts-xen-install' with 'nested' input param to differentiate L1 Xen installation from L0 Xen installation. This patch series has been tested on test machines of amd64 arch, with hvm domain0 of Linux kernel 3.18.5, in standalone mode. Robert Ho (12): Add support of par