WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-35059: LVHDRT/TC8713 wants a noninteractive PV gues

To: Xen API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest
From: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Date: Mon, 08 Mar 2010 22:27:25 -0000
Delivery-date: Mon, 08 Mar 2010 14:27:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.3.1
# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1268085457 28800
# Node ID 504faa68f36b04176c0705515b0736349b2dadf8
# Parent  44290c66fec9040b6072c4e3b06c9351b3befe41
CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest.

Password init on the console, during an interactive first boot, blocks
the xs-tools daemon start, which prevents a VM.suspend, which TC8713
relies on.

The behavioral difference sneaked in with xgts.hg cset
559:7d7540a5ff43 (utilities support for Debian Squeeze). Fixed by
setting the "noninteractive" PV attribute.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 44290c66fec9 -r 504faa68f36b ocaml/lvhdrt/utils.ml
--- a/ocaml/lvhdrt/utils.ml     Thu Feb 25 17:11:36 2010 +0000
+++ b/ocaml/lvhdrt/utils.ml     Mon Mar 08 13:57:37 2010 -0800
@@ -221,7 +221,12 @@
     let vm_install session_id template name sr = 
       let sr_uuid = Client.SR.get_uuid rpc session_id sr in
       let newvm_uuid = cli_cmd [ "vm-install"; "template=" ^ template; 
"new-name-label=" ^ name; "sr-uuid=" ^ sr_uuid ] in
-      Client.VM.get_by_uuid rpc session_id newvm_uuid in
+      let vm =
+       Client.VM.get_by_uuid rpc session_id newvm_uuid
+      in
+       Client.VM.set_PV_args rpc session_id vm "noninteractive"; 
+       vm
+    in
     let vm' = vm_install session "Debian Etch 4.0" "lvhdrt sacrificial VM" sr 
in
 
     Pervasiveext.finally 
# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1268085457 28800
# Node ID 504faa68f36b04176c0705515b0736349b2dadf8
# Parent  44290c66fec9040b6072c4e3b06c9351b3befe41
CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest.

Password init on the console, during an interactive first boot, blocks
the xs-tools daemon start, which prevents a VM.suspend, which TC8713
relies on.

The behavioral difference sneaked in with xgts.hg cset
559:7d7540a5ff43 (utilities support for Debian Squeeze). Fixed by
setting the "noninteractive" PV attribute.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 44290c66fec9 -r 504faa68f36b ocaml/lvhdrt/utils.ml
--- a/ocaml/lvhdrt/utils.ml     Thu Feb 25 17:11:36 2010 +0000
+++ b/ocaml/lvhdrt/utils.ml     Mon Mar 08 13:57:37 2010 -0800
@@ -221,7 +221,12 @@
     let vm_install session_id template name sr = 
       let sr_uuid = Client.SR.get_uuid rpc session_id sr in
       let newvm_uuid = cli_cmd [ "vm-install"; "template=" ^ template; 
"new-name-label=" ^ name; "sr-uuid=" ^ sr_uuid ] in
-      Client.VM.get_by_uuid rpc session_id newvm_uuid in
+      let vm =
+       Client.VM.get_by_uuid rpc session_id newvm_uuid
+      in
+       Client.VM.set_PV_args rpc session_id vm "noninteractive"; 
+       vm
+    in
     let vm' = vm_install session "Debian Etch 4.0" "lvhdrt sacrificial VM" sr 
in
 
     Pervasiveext.finally 
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest, Daniel Stodden <=