Hi all,
I´m attempting to create one image from a disk stored inside a volume group.
While I have succesfully tested image creation for standard disks using acli and api I didn´t find how to repeat the same task for disk stored inside Volume Group.
As well documented here and in ther KB articles these sample commands works:
ACLI
acli image.create image-name container=default-container-nnnn source_url=nfs://127.0.0.1/default-container-nnnn/.acropolis/vmdisk/uuid image_type=kDiskImage
API with curl
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"annotation": "cloned disk image",
"image_type": "DISK_IMAGE",
"name": "image-name",
"vm_disk_clone_spec": {
"disk_address": {
"vmdisk_uuid": "UUID"
},
"storage_container_uuid": "UUID"
}
}
' 'https://PE-IP-ADDRESS:9440/PrismGateway/services/rest/v2.0/images/'
But when I try to use the disk uuid of the disk inside a VG the commands fails both from ACLI than API.
Any suggestion/workaround?
Thanks in advance
-Piero
Best answer by Piero
View original