<div dir="ltr"><span style="font-size:12.8px">Hi</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">As part of migrating from KVM to Ceph, I&#39;m trying to create a Cinder disk via the python sdk.  This is what I have so far and it fails with the message that the cinder type null doesn&#39;t exist:</div><div style="font-size:12.8px"><br></div><div><div><span style="font-size:12.8px">disk_attachment = disk_attachments_service.add(</span></div><div><span style="font-size:12.8px">    types.DiskAttachment(</span></div><div><span style="font-size:12.8px">        disk=types.Disk(</span></div><div><span style="font-size:12.8px">            name = &#39;API_Disk_Cinder_test&#39;,</span></div><div><span style="font-size:12.8px">            format=types.DiskFormat.RAW,</span></div><div><span style="font-size:12.8px">            provisioned_size=12 * 2**30,</span></div><div><span style="font-size:12.8px">            storage_domains=[</span></div><div><span style="font-size:12.8px">                types.StorageDomain(</span></div><div><span style="font-size:12.8px">                    name=&#39;ovirt2-cinder&#39;,</span></div><div><span style="font-size:12.8px">                ),</span></div><div><span style="font-size:12.8px">                ],</span></div><div><span style="font-size:12.8px">            openstack_volume_type=types.OpenStackVolumeType(</span></div><div><span style="font-size:12.8px">                &#39;ceph&#39;,</span></div><div><span style="font-size:12.8px">                openstack_volume_provider=types.OpenStackVolumeProvider(&#39;ovirt2-cinder&#39;),</span></div><div><span style="font-size:12.8px">                )</span></div><div><span style="font-size:12.8px">        ),</span></div><div><span style="font-size:12.8px">        interface=types.DiskInterface.VIRTIO,</span></div><div><span style="font-size:12.8px">        bootable=False,</span></div><div><span style="font-size:12.8px">        active=True,</span></div><div><span style="font-size:12.8px">    ),</span></div><div><span style="font-size:12.8px">)</span></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Doing it similarly with an NFS backend works so I know the connection details are correct, so I didn&#39;t bother including them.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Regards,</div>
</div>