[libvirt] [Sheepdog][Libvirt]How should i test sheepdog in libvirt

Hi Morita, I just wanna test if sheepdog works well in libvirt. I am not sure if i can only use libvirt environment to finish this test? Or maybe i should also set up QEMU/Sheepdog/Openstack environment, right? I have done following jobs. 1, git clone git://libvirt.org/libvirt.git 2, cd libvirt 3, git reset --hard v0.9.13 4, ./autogen.sh && make NOTE: Step 3 just call back to libvirt version 0.9.13, which you, Morita, patched for Libvirt at around this version. (Your patch is here http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=036ad5052b43fe9f0d197e8...) I just wanna study the original patch for libvirt. After step 4, if i can use tool virsh(under libvirt/tools dir) to test sheepdog driver? Therefore, i am not sure how i should use tool virsh to test if Sheepdog driver works well in libvirt. If i can finish this test only with libvirt ENV.?(Or also should set up QEMU/Sheepdog/Openstack environment) How should i do next step? Could anyone give me some suggestions? Thanks in advance ;-) -- Thanks Harry Wei

At Sun, 27 Jan 2013 01:11:25 +0800, harryxiyou wrote:
Hi Morita,
I just wanna test if sheepdog works well in libvirt. I am not sure if i can only use libvirt environment to finish this test? Or maybe i should also set up QEMU/Sheepdog/Openstack environment, right? I have done following jobs.
1, git clone git://libvirt.org/libvirt.git 2, cd libvirt 3, git reset --hard v0.9.13 4, ./autogen.sh && make
NOTE: Step 3 just call back to libvirt version 0.9.13, which you, Morita, patched for Libvirt at around this version. (Your patch is here http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=036ad5052b43fe9f0d197e8...) I just wanna study the original patch for libvirt.
After step 4, if i can use tool virsh(under libvirt/tools dir) to test sheepdog driver? Therefore, i am not sure how i should use tool virsh to test if Sheepdog driver works well in libvirt. If i can finish this test only with libvirt ENV.?(Or also should set up QEMU/Sheepdog/Openstack environment) How should i do next step?
I wrote a minimum guide to use sheepdog volumes from virsh. Hope it would help you: https://github.com/collie/sheepdog/wiki/Libvirt libvirt-list is a place for discussions about the development of libvirt. I guess libvirt-users is a better place for you. Thanks, Kazutaka

On Sun, Jan 27, 2013 at 5:52 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I wrote a minimum guide to use sheepdog volumes from virsh. Hope it would help you: https://github.com/collie/sheepdog/wiki/Libvirt
Hmmm..., let me have a try, thanks for your jobs.
libvirt-list is a place for discussions about the development of libvirt. I guess libvirt-users is a better place for you.
You are right, i will, thanks. -- Thanks Harry Wei

On Sun, Jan 27, 2013 at 6:24 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Sun, Jan 27, 2013 at 5:52 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I wrote a minimum guide to use sheepdog volumes from virsh. Hope it would help you: https://github.com/collie/sheepdog/wiki/Libvirt
Actually, i do not wanna start a VM. I just wanna test if 'virsh' can create/destroy a Sheepdog volume. The logical relationships are like this(parameters are sent): virsh --> libvirt client --> libvirt server --> qemu How should i use 'virsh' command create/destroy a Sheepdog volume? -- Thanks Harry Wei

At Sun, 27 Jan 2013 20:46:15 +0800, harryxiyou wrote:
On Sun, Jan 27, 2013 at 6:24 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Sun, Jan 27, 2013 at 5:52 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I wrote a minimum guide to use sheepdog volumes from virsh. Hope it would help you: https://github.com/collie/sheepdog/wiki/Libvirt
Actually, i do not wanna start a VM. I just wanna test if 'virsh' can create/destroy a Sheepdog volume. The logical relationships are like this(parameters are sent): virsh --> libvirt client --> libvirt server --> qemu How should i use 'virsh' command create/destroy a Sheepdog volume?
You can create a pool based on Sheepdog with $ virsh pool-create pool.xml and create a shepdog volume with $ virsh vol-create vol.xml Example XML descriptions are available on the libvirt documentation page: http://libvirt.org/storage.html#StorageBackendSheepdog See also 'virsh help'. Thanks, Kazutaka

On Sun, Jan 27, 2013 at 11:14 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote:
At Sun, 27 Jan 2013 20:46:15 +0800, harryxiyou wrote:
On Sun, Jan 27, 2013 at 6:24 PM, harryxiyou <harryxiyou@gmail.com> wrote:
On Sun, Jan 27, 2013 at 5:52 PM, MORITA Kazutaka <morita.kazutaka@gmail.com> wrote: [...]
I wrote a minimum guide to use sheepdog volumes from virsh. Hope it would help you: https://github.com/collie/sheepdog/wiki/Libvirt
Actually, i do not wanna start a VM. I just wanna test if 'virsh' can create/destroy a Sheepdog volume. The logical relationships are like this(parameters are sent): virsh --> libvirt client --> libvirt server --> qemu How should i use 'virsh' command create/destroy a Sheepdog volume?
You can create a pool based on Sheepdog with $ virsh pool-create pool.xml and create a shepdog volume with $ virsh vol-create vol.xml
Example XML descriptions are available on the libvirt documentation page: http://libvirt.org/storage.html#StorageBackendSheepdog
See also 'virsh help'.
I also have two questions. 1, Before create Sheepdog volume by virsh command, i must build Sheepdog and libvirt environment, right? 2, There are all the commit logs of Sheepdog, which can be found here. http://libvirt.org/git/?p=libvirt.git&a=search&h=HEAD&st=commit&s=sheepdog Therefore, i cannot catch the changes you made in the latest Libvirt git tree. The patch you made for Libvirt at 2010-12-09, which was merged by Eric Blake. Shoud i download Eric Blake's git tree? But where is Eric Blake's git tree? Morita, could you please tell me how i can get your patch's git tree? Your patch can be found here. http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=036ad5052b43fe9f0d197e8... Thanks for your help very much ;-) -- Thanks Harry Wei

On Mon, Jan 28, 2013 at 12:43 AM, harryxiyou <harryxiyou@gmail.com> wrote: [...]
I also have two questions.
1, Before create Sheepdog volume by virsh command, i must build Sheepdog and libvirt environment, right?
2, There are all the commit logs of Sheepdog, which can be found here. http://libvirt.org/git/?p=libvirt.git&a=search&h=HEAD&st=commit&s=sheepdog Therefore, i cannot catch the changes you made in the latest Libvirt git tree. The patch you made for Libvirt at 2010-12-09, which was merged by Eric Blake. Shoud i download Eric Blake's git tree? But where is Eric Blake's git tree? Morita, could you please tell me how i can get your patch's git tree? Your patch can be found here. http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=036ad5052b43fe9f0d197e8...
Thanks for your help very much ;-)
I have solved the second question like following: 1, git clone git://libvirt.org/libvirt.git 2, cd libvirt 3, git reset --hard 036ad50 NOTE: 036ad50 is the commit SHA1 key of that patch. Therefore, we cannot see the changes you did in libvirt/src/qemu/qemu_conf.c file of latest libvirt git tree. I have also searched all the logs libvirt developers did for sheepdog driver, which they did not modified your patch completely. All the sheepdog change logs can be seen here. http://libvirt.org/git/?p=libvirt.git&a=search&h=HEAD&st=commit&s=sheepdog -- Thanks Harry Wei

On Mon, Jan 28, 2013 at 12:55 AM, harryxiyou <harryxiyou@gmail.com> wrote:
On Mon, Jan 28, 2013 at 12:43 AM, harryxiyou <harryxiyou@gmail.com> wrote: [...]
I also have two questions.
1, Before create Sheepdog volume by virsh command, i must build Sheepdog and libvirt environment, right?
2, There are all the commit logs of Sheepdog, which can be found here. http://libvirt.org/git/?p=libvirt.git&a=search&h=HEAD&st=commit&s=sheepdog Therefore, i cannot catch the changes you made in the latest Libvirt git tree. The patch you made for Libvirt at 2010-12-09, which was merged by Eric Blake. Shoud i download Eric Blake's git tree? But where is Eric Blake's git tree? Morita, could you please tell me how i can get your patch's git tree? Your patch can be found here. http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=036ad5052b43fe9f0d197e8...
Thanks for your help very much ;-)
I have solved the second question like following:
1, git clone git://libvirt.org/libvirt.git 2, cd libvirt 3, git reset --hard 036ad50
NOTE: 036ad50 is the commit SHA1 key of that patch.
Therefore, we cannot see the changes you did in libvirt/src/qemu/qemu_conf.c file of latest libvirt git tree. I have also searched all the logs libvirt developers did for sheepdog driver, which they did not modified your patch completely. All the sheepdog change logs can be seen here. http://libvirt.org/git/?p=libvirt.git&a=search&h=HEAD&st=commit&s=sheepdog
Another question is whether i have to build QEMU environment? I remeber you said if QEMU do not support Sheepdog then Libvirt do not support Sheepdog. Now, i am not clear about their communicating details. Could you please give me some suggestions? thanks. -- Thanks Harry Wei
participants (2)
-
harryxiyou
-
MORITA Kazutaka