Comment 8 for bug 1454401

Revision history for this message
Steve Baker (steve-stevebaker) wrote : Re: [Bug 1454401] Re: get_file doesn't work in the global environment

On 30/11/15 12:58, Martin Paulo wrote:
> I think I've just been bitten by this :(
>
> I have a stack with the following resource type:
> type: OS::Heat::Stack
> properties:
> template: { get_file: "https://url_to_template" }
> timeout: 60
> parameters:
> key_name: { get_param: key_name }
> image_id: { get_param: image_id }
> instance_type: { get_param: instance_type }
>
> It works perfectly from the command line. But not from the dashboard.
> There I get the error "No content found in the "files" section for
> get_file path"... From a users point of view this is not nice: using
> url's should allow you to launch the template from the dashboard. You
> should not have to download them to your local machine and use the
> command line client. I'm not alone in this, btw:
> https://ask.openstack.org/en/question/65776/need-clarification-of-heat-
> template-get_file-with-http-resource/
>
This is more likely a horizon issue where horizon is not calling
get_template_contents and process_multiple_environment_and_files:
https://github.com/openstack/python-heatclient/blob/master/heatclient/v1/shell.py#L103-L109

A bug should be created against horizon if it has not been already.