[libvirt] [Libvirt][QEMU][HLFS]How to test HLFS driver for Libvirt

Hi Morita and other developers, I have programed HLFS(HDFS based Log-structured FileSystem) driver for Libvirt according to Morita's patch(commit 036ad5052b43fe9f0d197e89fd16715950408e1d) for Libvirt, which my patch is not for Libvirt latest version but the version of Morita's patch time.I have called back my git tree to commit 036ad5052b43fe9f0d197e89fd16715950408e1d, then i develop this patch. My patch is now available at http://cloudxy.googlecode.com/svn/branches/hlfs/person/harry/hlfs/hlfs_drive... Therefore, i am not clear about how to test it. How could i know whether it works well for libvirt&QEMU? Could Morita (Or other developers) give me some suggestions? Thanks in advance ;-) -- Thanks Harry Wei

At Mon, 28 Jan 2013 21:18:42 +0800, harryxiyou wrote:
Hi Morita and other developers,
I have programed HLFS(HDFS based Log-structured FileSystem) driver for Libvirt according to Morita's patch(commit 036ad5052b43fe9f0d197e89fd16715950408e1d) for Libvirt, which my patch is not for Libvirt latest version but the version of Morita's patch time.I have called back my git tree to commit 036ad5052b43fe9f0d197e89fd16715950408e1d, then i develop this patch. My patch is now available at http://cloudxy.googlecode.com/svn/branches/hlfs/person/harry/hlfs/hlfs_drive...
Therefore, i am not clear about how to test it. How could i know whether it works well for libvirt&QEMU? Could Morita (Or other developers) give me some suggestions?
I'm not familiar with HLFS at all. Sheepdog examples I explained to you in another mail may help you, but I cannot give you any other suggestions about HLFS. Thanks, Kazutaka

On Mon, Jan 28, 2013 at 10:44 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I'm not familiar with HLFS at all. Sheepdog examples I explained to you in another mail may help you, but I cannot give you any other suggestions about HLFS.
Thanks for your reminder, i have found this email. Therefore, could you please explain how Sheepdog driver for Libvirt communicate with QEMU? Thanks for your always help ;-) -- Thanks Harry Wei

On Mon, Jan 28, 2013 at 11:06 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Mon, Jan 28, 2013 at 10:44 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I'm not familiar with HLFS at all. Sheepdog examples I explained to you in another mail may help you, but I cannot give you any other suggestions about HLFS.
Thanks for your reminder, i have found this email. Therefore, could you please explain how Sheepdog driver for Libvirt communicate with QEMU?
Thanks for your always help ;-)
After i did the test way you said, i got following errors. $ ./virsh vol-create -f sheepdog.xml error: Failed to reconnect to the hypervisor error: invalid connection error: internal error Unable to locate libvirtd daemon in $PATH $ cat sheepdog.xml <volume> <name>myvol</name> <key>sheep/myvol</key> <source> </source> <capacity unit='bytes'>53687091200</capacity> <allocation unit='bytes'>53687091200</allocation> <target> <path>sheepdog:myvol</path> <format type='unknown'/> <permissions> <mode>00</mode> <owner>0</owner> <group>0</group> </permissions> </target> Any suggestions? Thanks in advance ;-) -- Thanks Harry Wei

On Mon, Jan 28, 2013 at 11:23 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Mon, Jan 28, 2013 at 11:06 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Mon, Jan 28, 2013 at 10:44 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I'm not familiar with HLFS at all. Sheepdog examples I explained to you in another mail may help you, but I cannot give you any other suggestions about HLFS.
Thanks for your reminder, i have found this email. Therefore, could you please explain how Sheepdog driver for Libvirt communicate with QEMU?
Thanks for your always help ;-)
After i did the test way you said, i got following errors.
$ ./virsh vol-create -f sheepdog.xml error: Failed to reconnect to the hypervisor error: invalid connection error: internal error Unable to locate libvirtd daemon in $PATH
$ cat sheepdog.xml <volume> <name>myvol</name> <key>sheep/myvol</key> <source> </source> <capacity unit='bytes'>53687091200</capacity> <allocation unit='bytes'>53687091200</allocation> <target> <path>sheepdog:myvol</path> <format type='unknown'/> <permissions> <mode>00</mode> <owner>0</owner> <group>0</group> </permissions> </target>
Any suggestions? Thanks in advance ;-)
The version of Libvirt for Up test is 0.9.13. Following test is Libvirt v0.8.6, which you just add Sheepdog volume patch to Libvirt. 1, $ ./libvirtd 2, $ ./virsh vol-create -f sheepdog.xml error: achieve pool '-f' failure error: can not find storage pool: no pool with matching name '-f' Any suggestions? Thanks in advance ;-) -- Thanks Harry Wei

At Mon, 28 Jan 2013 23:43:04 +0800, harryxiyou wrote:
Following test is Libvirt v0.8.6, which you just add Sheepdog volume patch to Libvirt.
The version doesn't support Sheepdog storage pool and volume. Please note that my patch you are looking at doesn't implements a sheepdog storage driver. It only introduced a new schema (network disk) to the domain XML format. Sheepdog storage driver is introduced by other developers and available since 0.9.13.
1, $ ./libvirtd 2, $ ./virsh vol-create -f sheepdog.xml error: achieve pool '-f' failure error: can not find storage pool: no pool with matching name '-f'
Please specify the pool name you created instead of '-f'. Thanks, Kazutaka

On Tue, Jan 29, 2013 at 12:05 AM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote:
At Mon, 28 Jan 2013 23:43:04 +0800, harryxiyou wrote:
Following test is Libvirt v0.8.6, which you just add Sheepdog volume patch to Libvirt.
The version doesn't support Sheepdog storage pool and volume. Please note that my patch you are looking at doesn't implements a sheepdog storage driver. It only introduced a new schema (network disk) to the domain XML format. Sheepdog storage driver is introduced by other developers and available since 0.9.13.
Hmmm..., thanks, i misunderstood :-/ Well, i will re-test Sheepdog driver in latest Libvirt version. Therefore, i cannot find Sheepdog patch files in the latest Libvirt git tree, which the patch is here. http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=29bc4fe6460d80c2aca1b90... I cannot find anyone modify the patch after Sheepdog pool/Volume driver was patched but there are no Sheepdog driver files in latest Libvirt git tree. Could you please tell me their locations? Thanks.
1, $ ./libvirtd 2, $ ./virsh vol-create -f sheepdog.xml error: achieve pool '-f' failure error: can not find storage pool: no pool with matching name '-f'
Please specify the pool name you created instead of '-f'.
That is to say, before i create Sheepdog volume, i have to create Sheepdog pool. Right? -- Thanks Harry Wei

At Tue, 29 Jan 2013 01:00:21 +0800, harryxiyou wrote:
On Tue, Jan 29, 2013 at 12:05 AM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote:
At Mon, 28 Jan 2013 23:43:04 +0800, harryxiyou wrote:
Following test is Libvirt v0.8.6, which you just add Sheepdog volume patch to Libvirt.
The version doesn't support Sheepdog storage pool and volume. Please note that my patch you are looking at doesn't implements a sheepdog storage driver. It only introduced a new schema (network disk) to the domain XML format. Sheepdog storage driver is introduced by other developers and available since 0.9.13.
Hmmm..., thanks, i misunderstood :-/ Well, i will re-test Sheepdog driver in latest Libvirt version. Therefore, i cannot find Sheepdog patch files in the latest Libvirt git tree, which the patch is here. http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=29bc4fe6460d80c2aca1b90... I cannot find anyone modify the patch after Sheepdog pool/Volume driver was patched but there are no Sheepdog driver files in latest Libvirt git tree. Could you please tell me their locations? Thanks.
I've looked at the upstream tree, but it certainly contains sheepdog codes. http://libvirt.org/git/?p=libvirt.git;a=tree;f=src/storage
1, $ ./libvirtd 2, $ ./virsh vol-create -f sheepdog.xml error: achieve pool '-f' failure error: can not find storage pool: no pool with matching name '-f'
Please specify the pool name you created instead of '-f'.
That is to say, before i create Sheepdog volume, i have to create Sheepdog pool. Right?
Yes. Thanks, Kazutaka

On Tue, Jan 29, 2013 at 8:18 AM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I've looked at the upstream tree, but it certainly contains sheepdog codes.
Sorry, my libvirt git tree was not the latest one, which may not patch Sheepdog pool/volume patch. Morita, thanks for your help ;-) -- Thanks Harry Wei

On Tue, Jan 29, 2013 at 12:05 AM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote:
At Mon, 28 Jan 2013 23:43:04 +0800, harryxiyou wrote:
Following test is Libvirt v0.8.6, which you just add Sheepdog volume patch to Libvirt.
The version doesn't support Sheepdog storage pool and volume. Please note that my patch you are looking at doesn't implements a sheepdog storage driver. It only introduced a new schema (network disk) to the domain XML format. Sheepdog storage driver is introduced by other developers and available since 0.9.13.
Now, in the latest Libvirt git tree, i cannot find your -- Thanks Harry Wei

On Tue, Jan 29, 2013 at 8:55 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Tue, Jan 29, 2013 at 12:05 AM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote:
At Mon, 28 Jan 2013 23:43:04 +0800, harryxiyou wrote:
Following test is Libvirt v0.8.6, which you just add Sheepdog volume patch to Libvirt.
The version doesn't support Sheepdog storage pool and volume. Please note that my patch you are looking at doesn't implements a sheepdog storage driver. It only introduced a new schema (network disk) to the domain XML format. Sheepdog storage driver is introduced by other developers and available since 0.9.13.
Now, in the latest Libvirt git tree, i cannot find your
Please Ignore last email, it was a misoperation, sorry. -- Thanks Harry Wei
participants (2)
-
harryxiyou
-
MORITA Kazutaka