Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread MORITA Kazutaka
At Sat, 19 Jan 2013 13:14:42 +0800,
harryxiyou wrote:
 
 On Sat, Jan 19, 2013 at 12:24 PM, MORITA Kazutaka
 morita.kazut...@gmail.com wrote:
  At Fri, 18 Jan 2013 22:56:38 +0800,
 [...]
 
  The answer depends on the protocol between QEMU and HLFS.  What is
  used for accessing HLFS volumes from QEMU?  Is it iSCSI, NFS, or
  something else?
 
 
 Actually, we just realize the block driver interfaces QEMU provided.
 You can see our
 patch from
 http://code.google.com/p/cloudxy/source/browse/trunk/hlfs/patches/hlfs_driver_for_qemu.patch
 
 And what about Sheepdog? What is used for accessing Sheepdog volumes from 
 QEMU?
 Is it iSCSI, NFS, or something else?

Sheepdog uses an own protocol, and I think your file system is similar.

IIUC, what you need to do are:
 1. modify libvirt so that you can specify your file system as a QEMU
disk
 2. add a volume driver to Cinder to handle your file system

You don't need to modify Nova.  You can use
nova.virt.libvirt.volume.LibvirtNetVolumeDriver as a libvirt volume
driver like sheepdog and rbd.

Thanks,

Kazutaka

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 5:27 PM, MORITA Kazutaka
morita.kazut...@gmail.com wrote:
 At Sat, 19 Jan 2013 13:14:42 +0800,
 harryxiyou wrote:
[...]

 Sheepdog uses an own protocol, and I think your file system is similar.

 IIUC, what you need to do are:
  1. modify libvirt so that you can specify your file system as a QEMU
 disk
  2. add a volume driver to Cinder to handle your file system

 You don't need to modify Nova.  You can use
 nova.virt.libvirt.volume.LibvirtNetVolumeDriver as a libvirt volume
 driver like sheepdog and rbd.


I have the same thoughts. Morita, thanks for your help.
You can also see another emali i sent to you a moment ago named
Add a new block storage driver by Libvirt/Qemu way for Openstack,
which says how to add a new block storage for Openstack in details.
I hope you can review that one and give me your suggestions if you
have free time. Thanks in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread Huang Zhiteng
Until the QEMU support is official, I don't think it's a good idea to
have HLFS driver in Cinder.

On Sat, Jan 19, 2013 at 1:14 PM, harryxiyou harryxi...@gmail.com wrote:
 On Sat, Jan 19, 2013 at 12:24 PM, MORITA Kazutaka
 morita.kazut...@gmail.com wrote:
 At Fri, 18 Jan 2013 22:56:38 +0800,
 [...]

 The answer depends on the protocol between QEMU and HLFS.  What is
 used for accessing HLFS volumes from QEMU?  Is it iSCSI, NFS, or
 something else?


 Actually, we just realize the block driver interfaces QEMU provided.
 You can see our
 patch from
 http://code.google.com/p/cloudxy/source/browse/trunk/hlfs/patches/hlfs_driver_for_qemu.patch

 And what about Sheepdog? What is used for accessing Sheepdog volumes from 
 QEMU?
 Is it iSCSI, NFS, or something else?

 --
 Thanks
 Harry Wei

 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp



-- 
Regards
Huang Zhiteng

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 7:00 PM, Huang Zhiteng winsto...@gmail.com wrote:
 Until the QEMU support is official, I don't think it's a good idea
to have HLFS driver in Cinder.


It sounds reasonable, we will send our patches to QEMULibvirt
community. After the patches are merged, we will send patch to
Openstack. Do you have any other suggestions?


-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread Huang Zhiteng
It seems you also have tgt patch for HLFS, personally I'd prefer iSCSI
support over qEMU support since iSCSI is well supported by almost every
hypervisor.
On Jan 19, 2013 9:23 PM, harryxiyou harryxi...@gmail.com wrote:

 On Sat, Jan 19, 2013 at 7:00 PM, Huang Zhiteng winsto...@gmail.com
 wrote:
  Until the QEMU support is official, I don't think it's a good idea
 to have HLFS driver in Cinder.
 

 It sounds reasonable, we will send our patches to QEMULibvirt
 community. After the patches are merged, we will send patch to
 Openstack. Do you have any other suggestions?


 --
 Thanks
 Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-19 Thread harryxiyou
On Sat, Jan 19, 2013 at 10:09 PM, Huang Zhiteng winsto...@gmail.com wrote:
 It seems you also have tgt patch for HLFS, personally I'd prefer iSCSI
 support over qEMU support since iSCSI is well supported by almost every
 hypervisor.

We will first realize HLFS driver by Qemu/Libvirt way for Openstack. Then,
we will also realize iSCSI way. Thanks for your suggestions ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-18 Thread harryxiyou
Hi Morita and other developers,

If i add a QEMU/Libvirt driver(the same as Sheepdog volumes driver in
Openstack Cinder branch) to let Openstack Cinder support a new block-level
storage system, I should change following stuffs, right?

1, Add a driver file to the dir in Openstack Cinder branch(the same as
sheepdog.py),
  https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
2, Change the file in Openstack Nova branch(Let libvirt attach HLFS volumes
to QEMU, the same as sheepdog),
  https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py

Do I should change/add any other files for Openstack? Cloud anyone give me
some suggestions?Thanks in advance ;-)

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-18 Thread MORITA Kazutaka
At Fri, 18 Jan 2013 22:56:38 +0800,
harryxiyou wrote:
 
 Hi Morita and other developers,
 
 If i add a QEMU/Libvirt driver(the same as Sheepdog volumes driver in
 Openstack Cinder branch) to let Openstack Cinder support a new block-level
 storage system, I should change following stuffs, right?
 
 1, Add a driver file to the dir in Openstack Cinder branch(the same as
 sheepdog.py),
   https://github.com/openstack/cinder/blob/master/cinder/volume/drivers
 2, Change the file in Openstack Nova branch(Let libvirt attach HLFS volumes
 to QEMU, the same as sheepdog),
   
 https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py
 
 Do I should change/add any other files for Openstack? Cloud anyone give me
 some suggestions?Thanks in advance ;-)

The answer depends on the protocol between QEMU and HLFS.  What is
used for accessing HLFS volumes from QEMU?  Is it iSCSI, NFS, or
something else?

Thanks,

Kazutaka

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Openstack-dev][Sheepdog]Add a new driver for Openstack Cinder like Sheepdog volumes

2013-01-18 Thread harryxiyou
On Sat, Jan 19, 2013 at 12:24 PM, MORITA Kazutaka
morita.kazut...@gmail.com wrote:
 At Fri, 18 Jan 2013 22:56:38 +0800,
[...]

 The answer depends on the protocol between QEMU and HLFS.  What is
 used for accessing HLFS volumes from QEMU?  Is it iSCSI, NFS, or
 something else?


Actually, we just realize the block driver interfaces QEMU provided.
You can see our
patch from
http://code.google.com/p/cloudxy/source/browse/trunk/hlfs/patches/hlfs_driver_for_qemu.patch

And what about Sheepdog? What is used for accessing Sheepdog volumes from QEMU?
Is it iSCSI, NFS, or something else?

-- 
Thanks
Harry Wei

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp