[Kimchi-devel] [PATCH 0/3 V2] [PATCH 0/3] [issue #731] Raw volumes validation

Aline Manera alinefm at linux.vnet.ibm.com
Wed Sep 16 21:01:13 UTC 2015


You need to update model/vmstorages.py accordingly to do not add a 
invalid disk to the VM when using the REST API directly.

On 16/09/2015 16:22, pvital at linux.vnet.ibm.com wrote:
> From: Paulo Vital <pvital at linux.vnet.ibm.com>
>
> V1 -> V2:
>      - Added new supported valid Raw content
>      - Make list of valid Raw content global
>
> Kimchi allows to attach Raw volumes that are not disk images when editing
> a VM. With this, it's possible attach a XML or PDF file (that qemu-img and
> libvirt see as raw volumes) as a disk into the guest.
>
> This patch-set introduces a check for all 'raw' volumes to see if them are
> valid disks or not (by using libmagic), and then, pass this information to
> the front-end to make a correct list of volumes option when attaching a new
> one into a VM.
>
> Paulo Vital (3):
>    Raw volumes validation: update contrib and README
>    Raw volumes validation: back-end and front-end
>    Raw volumes validation: update tests
>
>   contrib/DEBIAN/control.in                  |  3 ++-
>   contrib/kimchi.spec.fedora.in              |  1 +
>   contrib/kimchi.spec.suse.in                |  1 +
>   docs/API.md                                |  1 +
>   docs/README.md                             | 11 +++++------
>   src/kimchi/control/storagevolumes.py       |  3 ++-
>   src/kimchi/mockmodel.py                    |  6 ++++--
>   src/kimchi/model/storagevolumes.py         | 18 +++++++++++++++++-
>   tests/test_model_storagevolume.py          |  2 +-
>   ui/js/src/kimchi.guest_storage_add.main.js |  2 +-
>   10 files changed, 35 insertions(+), 13 deletions(-)
>
> --
> 2.4.3




More information about the Kimchi-devel mailing list