<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">What's the end goal of this? Why would you want something the management system (=engine) is not aware of?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 7:25 PM, Hayley Swimelar <span dir="ltr"><<a href="mailto:hayley@linbit.com" target="_blank">hayley@linbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 05/31/2016 08:25 AM, Yaniv Dary wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you explain the use case? What are you trying to use VDSM for?<br>
The API you want to use is internal and can break without notice.<br>
</blockquote>
<br></span>
Hi Yaniv,<br>
<br>
I'm working to to integrate DRBD storage into VDSM.<br>
<br>
It will be a new type of storage domain, so I can't use the GUI since the engine component won't be aware of it as far as I can tell.<br>
<br>
The current plan is to have another developer on our end make changes to the Engine once the VDSM side is working.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Yaniv Dary<br>
Technical Product Manager<br>
Red Hat Israel Ltd.<br>
34 Jerusalem Road<br>
Building A, 4th floor<br>
Ra'anana, Israel 4350109<br>
<br>
Tel : <a href="tel:%2B972%20%289%29%207692306" value="+97297692306" target="_blank">+972 (9) 7692306</a><br>
8272306<br>
Email: <a href="mailto:ydary@redhat.com" target="_blank">ydary@redhat.com</a><br>
IRC : ydary<br>
<br>
<br>
On Wed, May 25, 2016 at 8:29 PM, Hayley Swimelar <<a href="mailto:hayley@linbit.com" target="_blank">hayley@linbit.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On 05/25/2016 02:00 AM, Martin Sivak wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I do not remember exacly, but you might check the source code of<br>
hosted engine's VdsmBackend where we do that too.<br>
<br>
<br>
<a href="https://gerrit.ovirt.org/gitweb?p=ovirt-hosted-engine-ha.git;a=blob;f=ovirt_hosted_engine_ha/lib/storage_backends.py;h=f2fbdc43d0e4afd7539a3a1de75de0cb07bdca9d;hb=a012f184584af20d3dba8038d73b8d9b447af7b3" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/gitweb?p=ovirt-hosted-engine-ha.git;a=blob;f=ovirt_hosted_engine_ha/lib/storage_backends.py;h=f2fbdc43d0e4afd7539a3a1de75de0cb07bdca9d;hb=a012f184584af20d3dba8038d73b8d9b447af7b3</a><br>
<br>
I think you are missing the prepareImage call.<br>
<br>
</blockquote>
<br>
I think that prepareImage is probably the missing piece to this; however,<br>
it seems that the hosted engine's create_volume method with calls<br>
_get_volume_path which calls prepareImage.<br>
<br>
vdsClient's prepareImage command takes a volume UUID as an agrument I've<br>
tried passing the new UUID I created for the createVolume command, the UUID<br>
returned from that command, and a fresh UUID. All of these return the same<br>
error: Volume does not exist<br>
<br>
I've also tried manually creating the image directory under the storage<br>
domain directory with the same results for all commands.<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards<br>
<br>
--<br>
Martin Sivak<br>
SLA / oVirt<br>
<br>
On Wed, May 25, 2016 at 1:44 AM, Hayley Swimelar <<a href="mailto:hayley@linbit.com" target="_blank">hayley@linbit.com</a>><br>
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
Like the title says, I need to work with VDSM's storage layer without<br>
involving the engine.<br>
<br>
Presently, I'm testing this with NFS domains and have been able to use<br>
vdsClient to create, attach, and activate a new storage domain, but I<br>
have<br>
not been able to create a new image or volume.<br>
<br>
Here are the commands I ran to get to this step, starting with a nfs<br>
volume<br>
already mounted on the machine I ran the commands on.<br>
<br>
----<br>
vdsClient -s host_name createStorageDomain 1<br>
97338d5c-9b6f-1859-b827-e977ed082e53 cli_domain storage_server:/data<br>
<br>
vdsClient -s host_name attachStorageDomain<br>
97338d5c-9b6f-1859-b827-e977ed082e53 00000001-0001-0001-0001-00000000033c<br>
<br>
vdsClient -s host_name activateStorageDomain<br>
97338d5c-9b6f-1859-b827-e977ed082e53 00000001-0001-0001-0001-00000000033c<br>
<br>
vdsClient -s frodo createVolume 97338d5c-9b6f-1859-b827-e977ed082e53<br>
00000001-0001-0001-0001-00000000033c 0288f410-71f1-4b7d-bdb7-e815a93e34ef<br>
53690000000 5 1 2 96d7726c-6969-40a5-84bd-0925496b6051 cli_volume<br>
----<br>
<br>
The last command outputs a new UUID, but there is nothing under<br>
<br>
/rhev/data-center/00000001-0001-0001-0001-00000000033c/97338d5c-9b6f-1859-b827-e977ed082e53/images/<br>
directory.<br>
<br>
If I pass createVolume an existing image/storage domain UUID, the command<br>
still outputs a new UUID, but nothing changes under the images directory.<br>
<br>
Is there a step that I am missing somewhere in this process?<br>
<br>
--<br>
Hayley Swimelar<br>
LINBIT | Keeping the Digital World Running<br>
DRBD — Corosync — Pacemaker<br>
<a href="tel:%2B1-503-573-1262%20x212" value="+15035731262" target="_blank">+1-503-573-1262 x212</a><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
<br>
</blockquote>
<br>
</blockquote>
--<br>
Hayley Swimelar<br>
LINBIT | Keeping the Digital World Running<br>
DRBD — Corosync — Pacemaker<br>
<a href="tel:%2B1-503-573-1262%20x212" value="+15035731262" target="_blank">+1-503-573-1262 x212</a><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
<br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Hayley Swimelar<br>
LINBIT | Keeping the Digital World Running<br>
DRBD — Corosync — Pacemaker<br>
<a href="tel:%2B1-503-573-1262%20x212" value="+15035731262" target="_blank">+1-503-573-1262 x212</a><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>