Skip to contentSkip to conversation

Pass --skipdtd parameter to 'xm new' application

PATCH In review Stefan Berger 2 participants 3 messages Jul 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Pass --skipdtd parameter to 'xm new' application

A small fix to the patch.

Pass the -s|--skipdtd parameter through to the 'xm new' application. On my machine I get random hangs in the function that's loading the dtd (xmldtd.load_dtd in xenapi_create.py)?!

---
 xen-unstable.hg/tools/python/xen/xm/new.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
xen-unstable.hg/tools/python/xen/xm/new.py +2 -1
Index: root/xen-unstable.hg/tools/python/xen/xm/new.py
===================================================================
@@ -75,7 +75,8 @@ def main(argv):
         doc = sxp2xml_inst.convert_sxp_to_xml(config) 
         
         xenapi_create_inst = xenapi_create()
-        vm_refs = xenapi_create_inst.create(document = doc)
+        vm_refs = xenapi_create_inst.create(document = doc,
+                                            skipdtd=opts.vals.skipdtd)
     else:       
         make_unstarted_domain(opts, config)
         

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 5 lines · Stefan Berger

A small fix to the patch.

Pass the -s|--skipdtd parameter through to the 'xm new' application. On my machine I get random hangs in the function that's loading the dtd (xmldtd.load_dtd in xenapi_create.py)?!

Then shouldn't this problem be debugged first??

regards
john

#2 lore raw

John Levon <[email protected]> wrote on 07/16/2007 08:41:34 AM:

Quoted 5 lines · Stefan Berger
Quoted 4 lines

A small fix to the patch.

Pass the -s|--skipdtd parameter through to the 'xm new' application.

On

Quoted 4 lines
Quoted 2 lines

my machine I get random hangs in the function that's loading the dtd (xmldtd.load_dtd in xenapi_create.py)?!

Then shouldn't this problem be debugged first??

I'll have a look at it when I get a chance, though passing that skipdtd parameter through to the API seems to be correct, no?

Stefan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel