Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heat client don't populate correctly the "files" parameter #15563

Closed
ioggstream opened this issue Jul 13, 2017 · 14 comments
Closed

heat client don't populate correctly the "files" parameter #15563

ioggstream opened this issue Jul 13, 2017 · 14 comments
Assignees
Labels

Comments

@ioggstream
Copy link

ioggstream commented Jul 13, 2017

Reproduce

Create an Orchestration template that references external files:

heat_template_version: newton

resources:
  a_file:
    type: https://gist.githubusercontent.com/ioggstream/55135a3c886802dedaac833ce4f87bfa/raw/b320d97756da702797d76b85b0a8c630d5589889/case_01891685.yaml

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

I expect

  • the stack to be created

Instead

  • I got an error
  • 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

The error is probably the MIQ counterpart of the horizon one https://bugs.launchpad.net/horizon/+bug/1467781

@ioggstream
Copy link
Author

@bzwei which is the miq code in charge for calling the stack?

@bzwei
Copy link
Contributor

bzwei commented Jul 14, 2017

@ioggstream
Copy link
Author

ioggstream commented Jul 14, 2017

@ioggstream
Copy link
Author

@bzwei here's a stub of file gathering. It's my first ruby code... @suuuper shouldn' t be hard to make it work for http resources too. .https://gist.github.com/ioggstream/bedea98dc53aa61b0ebd48cd1bb73486

@bzwei
Copy link
Contributor

bzwei commented Jul 17, 2017

@ioggstream Thanks for all the findings. We now have sufficient information to fix the problem, just need to find a time.

@ioggstream
Copy link
Author

@bzwei as we're on cloudforms is there an easy way to apply the patch once you release it?

@bzwei
Copy link
Contributor

bzwei commented Jul 18, 2017

@ioggstream Is this an urgent issue? We don't have the capacity to fix the problem right now, likely until September.
I also see template having get_file is an embedded template. If we scan the master template we will not find these files.

@ioggstream
Copy link
Author

ioggstream commented Jul 18, 2017

@bzwei afaik a cloudforms' case have been open on that -

This updated snippet - very simple and without proper error handling - should resolve get_file in nested templates https://gist.github.com/ioggstream/bedea98dc53aa61b0ebd48cd1bb73486

Here's the python-heatclient implementation

https://github.com/openstack/python-heatclient/blob/master/heatclient/common/template_utils.py#L103

@bzwei
Copy link
Contributor

bzwei commented Jul 27, 2017

@ioggstream Is there a link to the CloudForms' case? We also need a bugzilla RFE to track the work.

@lmiccini
Copy link

@bzwei https://bugzilla.redhat.com/show_bug.cgi?id=1471948 , case is linked to the BZ.

@ioggstream
Copy link
Author

@bzwei I'm working on that. Feedback welcome on fog/fog-openstack#317

@miq-bot
Copy link
Member

miq-bot commented Apr 23, 2018

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

@miq-bot miq-bot added the stale label Apr 23, 2018
@bzwei
Copy link
Contributor

bzwei commented Apr 23, 2018

This issue should be closed since it has been resolved by fog/fog-openstack#317.

@JPrause
Copy link
Member

JPrause commented Jan 23, 2019

@miq-bot close_issue

@miq-bot miq-bot closed this as completed Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants