 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH V2] xend: Add support for URI ('file:' and 'data:' scheme) for PV/kernel and PV/ramdisk
 
Hello!
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.
Notes:
o all included: a detailed description can be found in the xenapi
  documentation
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
Andreas
[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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |