Bug 1471948

Summary: heat client doesn't populate correctly the "files" parameter
Product: Red Hat CloudForms Management Engine Reporter: Ryan Spagnola <rspagnol>
Component: ProvidersAssignee: Alexander Demicev <ademicev>
Status: CLOSED ERRATA QA Contact: Danylo Kholodov <dkholodo>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: aarapov, aarrichi, ademicev, akarol, apannu, fdewaley, gblomqui, jfrey, jhardy, lmiccini, maufart, obarenbo, simaishi, smallamp
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard: openstack
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 23:02:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:

Description Ryan Spagnola 2017-07-17 18:24:06 UTC
Description of problem:
Getting an error when referencing external files

Version-Release number of selected component (if applicable):
5.7

How reproducible:
always

Steps to Reproduce:
1. Create an Orchestration template that references external files:

heat_template_version: newton

resources:
  a_file:
    type: https://pastebin.com/raw/hVbif6z9
 # the linked resource references get_file: https://www.google.com/robots.txt


Actual results:
Heat complains about get_file: https://www.google.com/robots.txt not in the files dict
getting the files dict from heat, the file is not there
openstack stack files list mystack
...
NO https://www.google.com/robots.txt around

Expected results:
the stack to be created

Additional info:
https://github.com/ManageIQ/manageiq/issues/15563

Comment 2 Tzu-Mainn Chen 2017-07-18 17:19:59 UTC
Taking a quick look at the related upstream Horizon issue in launchpad - https://bugs.launchpad.net/horizon/+bug/1467781 - the suggested solution there is to call heatclient python functions? I'm not sure we can easily do that, and it seems like the real solution is to have this fixed in heat... ?

Comment 18 Bronagh Sorota 2018-09-14 15:32:39 UTC
Not sure why this is assigned to me, maybe this automatically happened when pblaho left the company. Assigning back to Marek.

Comment 19 Alexander Demicev 2018-09-27 09:16:25 UTC
Hi,
I was able to create a stack from CF using this template - https://pastebin.com/tky6xyjE, it's referencing an external file. I think the feature is already in upstream.

Comment 20 Danylo Kholodov 2018-11-27 11:55:09 UTC
Verified at CFME 5.10.0.24

Comment 21 errata-xmlrpc 2019-02-07 23:02:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:0212