Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HEAT create Image with local file

Hello, I'm trying to create a simple heat templates that loads an image into glance

My qcow2 file is on the control node from which i run the heat stack-create command

If I use "CLI", glance image-create, everything works but with HEAT i get an error

This is my resource glance_image: type: OS::Glance::Image properties: container_format: {get_param: imgcontainer} disk_format: {get_param: imgdisk} name: {get_param: imgname} location: {get_param: imglocation}

And imglocation is something like /root/vms/images/vm.qcow2

When I run the stack it fails with this error HTTPBadRequest: resources.glance_image: 400 Bad Request: External sources are not supported

How can I create an image via Heat using a local image file?

Thanks UMberto

HEAT create Image with local file

Hello, I'm trying to create a simple heat templates that loads an image into glance

My qcow2 file is on the control node from which i run the heat stack-create command

If I use "CLI", glance image-create, everything works but with HEAT i get an error

This is my resource glance_image: glance_image:

type: OS::Glance::Image
  properties:
    container_format: {get_param: imgcontainer}
    disk_format: {get_param: imgdisk}
    name: {get_param: imgname}
    location: {get_param: imglocation}

imglocation}

And imglocation is something like /root/vms/images/vm.qcow2

When I run the stack it fails with this error HTTPBadRequest: resources.glance_image: 400 Bad Request: External sources are not supported

How can I create an image via Heat using a local image file?

Thanks UMberto