<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'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'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 = 'API_Disk_Cinder_test',</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='ovirt2-cinder',</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"> 'ceph',</span></div><div><span style="font-size:12.8px"> openstack_volume_provider=types.OpenStackVolumeProvider('ovirt2-cinder'),</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't bother including them.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Regards,</div>
</div>