libvirt/tests/xlconfigdata
Jim Fehlig 6604a3dd9f xenconfig: support xl<->xml conversion of rbd disk devices
The target= setting in xl disk configuration can be used to encode
meta info that is meaningful to a backend. Leverage this fact to
support qdisk network disk types such as rbd. E.g. <disk> config
such as

   <disk type='network' device='disk'>
     <driver name='qemu' type='raw'/>
     <source protocol='rbd' name='pool/image'>
       <host name='mon1.example.org' port='6321'/>
       <host name='mon2.example.org' port='6322'/>
       <host name='mon3.example.org' port='6322'/>
     </source>
     <target dev='hdb' bus='ide'/>
     <address type='drive' controller='0' bus='0' target='0' unit='1'/>
   </disk>

can be converted to the following xl config (and vice versa)

  disk = [ "format=raw,vdev=hdb,access=rw,backendtype=qdisk,
            target=rbd:pool/image:auth_supported=none:mon_host=mon1.example.org\\:6321\\;mon2.example.org\\:6322\\;mon3.example.org\\:6322"
         ]

Note that in xl disk config, a literal backslash in target= must
be escaped with a backslash. Conversion of <auth> config is not
handled in this patch, but can be done in a follow-up patch.

Also add a test for the conversions.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2016-02-22 11:46:50 -07:00
..
test-disk-positional-parms-full.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-disk-positional-parms-full.xml xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-disk-positional-parms-partial.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-disk-positional-parms-partial.xml xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-fullvirt-direct-kernel-boot-bogus-extra.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot-bogus-extra.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-fullvirt-direct-kernel-boot-extra.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-fullvirt-direct-kernel-boot-extra.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-fullvirt-direct-kernel-boot.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-fullvirt-direct-kernel-boot.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-fullvirt-multiusb.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-fullvirt-multiusb.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-new-disk.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-new-disk.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-paravirt-cmdline-bogus-extra-root.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline-bogus-extra-root.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
test-paravirt-cmdline-extra-root.cfg libxl: Support cmdline= in xl config files 2016-01-21 10:48:44 -07:00
test-paravirt-cmdline-extra-root.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
test-paravirt-cmdline.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-paravirt-cmdline.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
test-paravirt-maxvcpus.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-paravirt-maxvcpus.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
test-rbd-multihost-noauth.cfg xenconfig: support xl<->xml conversion of rbd disk devices 2016-02-22 11:46:50 -07:00
test-rbd-multihost-noauth.xml xenconfig: support xl<->xml conversion of rbd disk devices 2016-02-22 11:46:50 -07:00
test-spice-features.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-spice-features.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-spice.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-spice.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00
test-vif-rate.cfg xenconfig: produce key=value disk config syntax in xl formatter 2016-02-22 11:46:50 -07:00
test-vif-rate.xml domain: add implicit controllers from post parse 2016-02-19 09:45:23 -05:00