<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 4:36 PM, Ondra Machacek <span dir="ltr"><<a href="mailto:omachace@redhat.com" target="_blank">omachace@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You actually have to run method 'activate()'[1] on VM disk.<br>
<br>
So it will look like this:<br>
<br>
api.vms.get(VM0_NAME).disks.get(DISK1_NAME).activate()<br>
<br>
[1] <a href="https://gerrit.ovirt.org/gitweb?p=ovirt-engine-sdk.git;a=blob;f=src/ovirtsdk/infrastructure/brokers.py;h=7def8a5adea3357d31827f754a1e644b70de146d;hb=sdk_3.6#l31779" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/gitweb?p=ovirt-engine-sdk.git;a=blob;f=src/ovirtsdk/infrastructure/brokers.py;h=7def8a5adea3357d31827f754a1e644b70de146d;hb=sdk_3.6#l31779</a></blockquote><div><br></div><div>Thanks.</div><div>I've ended up adding 'active=True' to the disk when adding it - and it seems to do the same. Is that correct?</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
<br>
On 07/25/2016 03:13 PM, Yaniv Kaul wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
After successfully attaching a disk and verifying its status is in 'ok',<br>
I've tried:<br>
api.vms.get(VM0_NAME).disks.get(DISK1_NAME).set_active(True)<br>
<br>
But it doesn't really activate it. What's the correct way to activate it?<br>
(It works well via the UI).<br>
<br>
TIA,<br>
Y.<br>
<br>
<br></div></div><span>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</span></blockquote>
</blockquote></div><br></div></div>