Skip to contentSkip to conversation

Add dump entry point to Xend via HTTP

PATCH Applied Daniel Veillard 2 participants 3 messages Nov 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add dump entry point to Xend via HTTP

The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it,

Daniel

--------------------------------------------------------------

tools/python/xen/xend/server/SrvDomain.py +12 -0
diff -r c677f4e75608 tools/python/xen/xend/server/SrvDomain.py
@@ -81,6 +81,18 @@ class SrvDomain(SrvDir):
 
     def do_save(self, _, req):
         return self.xd.domain_save(self.dom.domid, req.args['file'][0])
+
+    def op_dump(self, op, req):
+        self.acceptCommand(req)
+        return req.threadRequest(self.do_dump, op, req)
+
+    def do_dump(self, _, req):
+        fn = FormFn(self.xd.domain_dump,
+	            [['dom',         'int'],
+		     ['file',        'str'],
+		     ['live',        'int'],
+		     ['crash',       'int']])
+        return fn(req.args, {'dom': self.dom.domid})
 
     def op_migrate(self, op, req):
         return req.threadRequest(self.do_migrate, op, req)

--------------------------------------------------------------

Signature · 4 lines
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[email protected]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
Applied
#1 lore raw
Quoted 6 lines · Daniel Veillard

The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it,

Daniel

Applied, thanks Daniel.

Ewan.

#2 lore raw
Quoted 10 lines · Ewan Mellor
Quoted 6 lines · Daniel Veillard

The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it,

Daniel

Applied, thanks Daniel.

Cool, thanks for the super-fast process :-)

Daniel

Signature · 4 lines
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[email protected]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/