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/
Home Products Support Community News


[Xen-devel] [PATCH V2] xend: Add support for URI ('file:' and 'data:' sc

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH V2] xend: Add support for URI ('file:' and 'data:' scheme) for PV/kernel and PV/ramdisk
From: Andreas Florath <xen@xxxxxxxxxxxx>
Date: Mon, 24 Aug 2009 10:26:17 +0200
Delivery-date: Mon, 24 Aug 2009 01:26:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

Attached you can find a patch which adds support for 'file:' and 'data:'
URI schemes for the parameters 'PV/kernel' and 'PV/ramdisk' in the
VM.create() call.
The 'data:' scheme handling enables using a file which is stored inside
the management system (from where the XenAPI call is send) as kernel
or ramdisk.

o all included: a detailed description can be found in the xenapi
o bumped up the version of the API document to 1.0.8 (because of
  (minimal) interface extension)
o Future enhancements (like http:, ftp: schemes) fit seamlessly into the
  current design / classes
o Unittest cases and xm-test case included

This is version 2 of the patch.  Version 1 had some problems / bugs and
was removed from the repository.

Changes to original version:
o Problem [1] 'xend: Don't call decode() if PV_{kernel, ramdisk} are'
  was fixed:
  It is now checked, if the appropriate value is specified and (if so) if
  the value is not '' - only then the data/file uri handling code is called.
o Problem [2] 'KeyError: 'use_tmp_kernel' with -unstable' was fixed:
  When not using the data/file uri code the original patch did not handle
  the cases where 'use_tmp_xxx' was not set.  This is fixed in the current
  patch.  The original:
     if vmConfig['use_tmp_kernel']:
  is now changed to
     if 'use_tmp_kernel' in vmConfig and vmConfig['use_tmp_kernel']:
o Problem [3] 'python: make tools/python/xen/util/fileuri.py work on
  python 2.3' was fixed:
  The patch to check the syntax for different python versions was
  introduced already [4].
o Unit tests are now split up into separate files (tools/tests/utests).
o Existing unit test were enhanced.
o Additional unit tests were added; especially to re-test problems [1]
  and [2].
o Unit tests can be executed with different versions of python.
o '04_xapi-data_uri_handling' xm-test exercising the new functionality
  was added.

Kind regards


[1] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg00896.html
[2] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg01006.html
[3] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg00900.html
[4] http://lists.xensource.com/archives/html/xen-devel/2009-07/msg01121.html

Attachment: xu-data-uri-handling-03.hg-export
Description: Binary data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH V2] xend: Add support for URI ('file:' and 'data:' scheme) for PV/kernel and PV/ramdisk, Andreas Florath <=