Comment 0 for bug 1489058

Revision history for this message
Drago (dragorosson) wrote :

Given a template:

heat_template_version: 2013-05-23
resources:
  provider_resource:
    type: https://gist.githubusercontent.com/dragorosson/91e4ab99ffb600e8f7d4/raw/a5d1029371065435fc2d2ac5d13eb4a6e405d200/provider_resource.yaml

With a provider resource:

heat_template_version: 2013-05-23
resources:
  server:
    type: OS::Heat::RandomString

URLs for these templates:
https://gist.githubusercontent.com/dragorosson/2ff5f5627e0b3650982b/raw/b58069ae5d4097e067faa37d9a828baf3aefcf99/provider_template_test.template
https://gist.githubusercontent.com/dragorosson/91e4ab99ffb600e8f7d4/raw/a5d1029371065435fc2d2ac5d13eb4a6e405d200/provider_resource.yaml

If we try to validate this template, it fails:

heat template-validate -u https://gist.githubusercontent.com/dragorosson/2ff5f5627e0b3650982b/raw/b58069ae5d4097e067faa37d9a828baf3aefcf99/provider_template_test.template

ERROR: Could not fetch remote template "https://gist.githubusercontent.com/dragorosson/91e4ab99ffb600e8f7d4/raw/
a5d1029371065435fc2d2ac5d13eb4a6e405d200/provider_resource.yaml": Invalid URL scheme https

However, if we do stack-create, it succeeds:

heat stack-create -u https://gist.git
hubusercontent.com/dragorosson/2ff5f5627e0b3650982b/raw/b58069ae5d4097e067faa37d9a828baf3aefcf99/provider_templa
te_test.template test_stack

+--------------------------------------+--------------+--------------------+--------------------
| id | stack_name | stack_status | creation_time
+--------------------------------------+--------------+--------------------+--------------------
| 25b5ff8c-4834-42a4-9389-9a1c4a629461 | test_stack | CREATE_IN_PROGRESS | 2015-08-26T15:45:34
+--------------------------------------+--------------+--------------------+--------------------

...

+--------------------------------------+--------------+-----------------+---------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+--------------+-----------------+---------------------+
| 25b5ff8c-4834-42a4-9389-9a1c4a629461 | test_stack | CREATE_COMPLETE | 2015-08-26T15:45:34 |
+--------------------------------------+--------------+-----------------+---------------------+