Ask Your Question

Need clarification of heat template "get_file" with http resource

asked 2015-04-24 18:23:03 -0500

nguy4444 gravatar image


I am a newbie with building heat templates. I am just trying to retrieve a file from an http server using the "get_file" function. The syntax I am using is just

get_file: "http://my_http_server/subdir/"

However, I get the error "No content found in the "files" section for get_file path http://my_http_server/subdir/ (http://my_http_server/subdir/")

If I issue the wget command for http://my_http_server/subdir/, I can retrieve the file fine. I thought that is how the get_file function worked, but I may be wrong. The OpenStack explanation is not clear to me where the file to be retrieved should specifically be located, I assumed if using http it is the same as a wget. But I must be wrong. What am I missing? Thanks!

edit retag flag offensive close merge delete


pls be more specific about the errors you are seeing, the following is not very helpful --

I get the error "No content found in the "files" section for get_file path http://my_http_server/subdir/ (http://my_http_server/subdir/")

Qiming gravatar imageQiming ( 2015-04-26 01:22:09 -0500 )edit

I wish I could be more specific, but that is the only error that appears. It is popup box on the Horizon UI. This is OpenStack Juno version. Again, my real question is, should get_file act like wget?

nguy4444 gravatar imagenguy4444 ( 2015-04-26 13:00:16 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2015-04-27 17:08:24 -0500

nguy4444 gravatar image

I found the problem, and it appears to be a bug.

The get_file works fine when run from the command line, when the heat stack-create command is used.

However, it does not work if the template is invoked from the Horizon UI (under Project->Orchestration->Stacks-Launch Stack). That is where the error above occurs... so Horizon has an issue running these types of templates.

edit flag offensive delete link more


Can you possibly provide the bug ID for this issue? I have attempted to locate it in the OpenStack bug list but have not been successful as yet.

Thank you!

bmsealy gravatar imagebmsealy ( 2016-10-27 09:17:56 -0500 )edit

It appears that this has been fixed:

dkt26111 gravatar imagedkt26111 ( 2017-07-20 17:39:18 -0500 )edit

answered 2016-10-12 08:34:13 -0500

Spowell gravatar image

We're experiencing the same issue in Liberty.

edit flag offensive delete link more

answered 2016-11-15 09:11:54 -0500

zaneb gravatar image

get_file doesn't get a file from a URL. It gets the file with that key from the dict of files that were passed in when you created (or updated) the stack. If there happens to be a key that is also a URL, it can get that file from the dict, but it won't request it from the URL.

How python-heatclient works is that it searches the template for get_file functions, retrieves them locally, and passes them to Heat as part of the stack create/update request. However, Horizon does _not_ do this.

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


Asked: 2015-04-24 18:23:03 -0500

Seen: 2,197 times

Last updated: Nov 15 '16