[ovirt-users] Create cinder disk via python sdk

Logan Kuhn logan at jac-properties.com
Thu Dec 1 20:04:09 UTC 2016


Hi

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:

disk_attachment = disk_attachments_service.add(
    types.DiskAttachment(
        disk=types.Disk(
            name = 'API_Disk_Cinder_test',
            format=types.DiskFormat.RAW,
            provisioned_size=12 * 2**30,
            storage_domains=[
                types.StorageDomain(
                    name='ovirt-cinder',
                ),
                types.OpenStackVolumeType('cinder')
            ],
        ),
        interface=types.DiskInterface.VIRTIO,
        bootable=False,
        active=True,
    ),
)

Doing it similarly with an NFS backend works so I know the connection
details are correct, so I didn't bother including them.

Regards,
Logan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20161201/95648548/attachment-0001.html>


More information about the Users mailing list