Ask Your Question
0

HEAT create Image with local file

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

ubk_pnstck gravatar image

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

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 710 times

Last updated: Nov 15 '16