[Kimchi-devel] [PATCH V2 0/3] create a VM from an iscsi pool template

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Tue Mar 25 12:47:17 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>


V1 -> V2:
address aline's comment.
storage_type = self._get_storage_type()
if storage_type == 'iscsi':
    ....
elif storage_type == 'scsi': 



This patch just support create vm on iscsi lun.

Now we have support iSCSI or SCSI pool.

Here we want to create volumes for VM in those pools.
The best way to do it is on template level - and not on vm level

For if we create a template just assign a iSCSI or SCSI pool,
the user still need to choose a volume for his VM.

Also as we discussion, we do not mix disks from 2 different types of
storage pools, for instance: we do not create a template with 2
disks, where one comes from a ISCSI pool and other is a .img in
a DIR pool.

ShaoHe Feng (3):
  add a method to get iscsi storage pool auth information.
  generate a iscsi volume disk for a guest
  create a VM from an iscsi pool template.

 src/kimchi/model/templates.py | 11 +++++++++++
 src/kimchi/model/vms.py       |  4 +++-
 src/kimchi/vmtemplate.py      | 38 +++++++++++++++++++++++++++++++++++++-
 3 files changed, 51 insertions(+), 2 deletions(-)

-- 
1.8.5.3




More information about the Kimchi-devel mailing list