<div dir="ltr">Thank you!!!!<div><br></div><div>That is exactly what I needed.  Do you know if there is more comprehensive documentation for the 4.x Python sdk?</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>
Logan Kuhn<br></div></div>
<br><div class="gmail_quote">On Fri, Dec 2, 2016 at 7:35 AM, Ondra Machacek <span dir="ltr">&lt;<a href="mailto:omachace@redhat.com" target="_blank">omachace@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/02/2016 02:00 PM, Logan Kuhn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
As part of migrating from KVM to Ceph, I&#39;m trying to create a Cinder<br>
disk via the python sdk.  This is what I have so far and it fails with<br>
the message that the cinder type null doesn&#39;t exist:<br>
<br>
disk_attachment = disk_attachments_service.add(<br>
    types.DiskAttachment(<br>
        disk=types.Disk(<br>
            name = &#39;API_Disk_Cinder_test&#39;,<br>
            format=types.DiskFormat.RAW,<br>
            provisioned_size=12 * 2**30,<br>
            storage_domains=[<br>
                types.StorageDomain(<br>
                    name=&#39;ovirt2-cinder&#39;,<br>
                ),<br>
                ],<br>
            openstack_volume_type=types.Op<wbr>enStackVolumeType(<br>
                &#39;ceph&#39;,<br>
</blockquote>
<br></span>
^Here you should have:<br>
<br>
  name=&#39;ceph&#39;,<br>
<br>
Python SDK is using named arguments, so be carefull what you are<br>
actually sending.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
openstack_volume_provider=type<wbr>s.OpenStackVolumeProvider(&#39;<wbr>ovirt2-cinder&#39;),<br>
</blockquote>
<br>
^Here you should have:<br>
<br>
<br>
openstack_volume_provider=type<wbr>s.OpenStackVolumeProvider(name<wbr>=&#39;ovirt2-cinder&#39;),<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
                )<br>
        ),<br>
        interface=types.DiskInterface.<wbr>VIRTIO,<br>
        bootable=False,<br>
        active=True,<br>
    ),<br>
)<br>
<br>
Doing it similarly with an NFS backend works so I know the connection<br>
details are correct, so I didn&#39;t bother including them.<br>
<br>
Regards,<br>
<br>
<br></span>
______________________________<wbr>_________________<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<wbr>/listinfo/users</a><br>
<br>
</blockquote>
</blockquote></div><br></div></div>