<div dir="ltr">Can you explain the use case? What are you trying to use VDSM for?<div>The API you want to use is internal and can break without notice.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72"><span style="font-family:arial,helvetica,sans-serif">Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109
Tel : +972 (9) 7692306
8272306
Email: <a href="mailto:ydary@redhat.com" target="_blank">ydary@redhat.com</a>
IRC : ydary</span></pre>
</div></div></div></div></div>
<br><div class="gmail_quote">On Wed, May 25, 2016 at 8:29 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/25/2016 02:00 AM, Martin Sivak wrote:<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>
<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>
</blockquote>
<br></span>
I think that prepareImage is probably the missing piece to this; however, it seems that the hosted engine's create_volume method with calls _get_volume_path which calls prepareImage.<br>
<br>
vdsClient's prepareImage command takes a volume UUID as an agrument I've tried passing the new UUID I created for the createVolume command, the UUID returned from that command, and a fresh UUID. All of these return the same error: Volume does not exist<br>
<br>
I've also tried manually creating the image directory under the storage domain directory with the same results for all commands.<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>
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>> wrote:<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 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 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>
/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>
</blockquote></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></div></div></blockquote></div><br></div>