HEAT create Image with local file

asked 2016-11-03 10:59:14 -0600

ubk_pnstck gravatar image

updated 2016-11-03 10:59:54 -0600

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


  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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-11-15 08:27:55 -0600

zaneb gravatar image

You can't, and it would be really insecure if you could.

Just upload it to Glance using the client. Or upload it to Swift first and then pass the URL when creating the image in Heat.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-11-03 10:59:14 -0600

Seen: 953 times

Last updated: Nov 15 '16