non-existent paths do not raise correct exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Rabi Mishra |
Bug Description
I uploaded to the swift container a new environments/
resource_registry:
OS::TripleO:
The relative path was not correct because it should have started with "../../" and not just "../" :)
When trying to deploy the plan from the GUI the result was this error:
Failed to run action [action_
In the Mistral executor log you see this exception:
2017-10-19 13:15:45.784 1775 ERROR mistral.
ERROR: The template is not a JSON object or YAML mapping.: HTTPBadRequest: ERROR: The template is not a JSON object or YAML mapping.
Traceback (most recent call last):
File "/usr/lib/
result = action.
File "/usr/lib/
processed_data = super(GetFlatte
File "/usr/lib/
'heat_
File "/usr/lib/
resp = self.client.
File "/usr/lib/
return self.client_
File "/usr/lib/
resp, body = self.json_
File "/usr/lib/
resp = self._http_
File "/usr/lib/
raise exc.from_
HTTPBadRequest: ERROR: The template is not a JSON object or YAML mapping.
It's very hard to understand from the errors what the source of the problem. It starts with the broken relative path in enable-tls.yaml and results in the GUI complaining about controller-
It seems we ignore the http error code[1] in ProcessTemplate
'<html><h1>Not Found</h1><p>The resource could not be found.</p></html>'
[1] https:/
Simpler way to reproduce (Thanks shardy):
Working with an existing deployed overcloud, default name/plan "overcloud":
mkdir tmp
cd tmp
openstack container save overcloud
vim environments/
openstack object create overcloud environments/
vim plan-environmen
openstack object create overcloud plan-environmen
At this point we should have a plan which replicates that described by Udi
Then we run the deploy action manually via mistralclient:
echo '{"timeout": "60"}' > input.json
openstack action execution run tripleo.
(undercloud) [stack@undercloud plan_tmp]$ openstack action execution run tripleo.
{"result": "Failed to run action [action_ex_id=None, action_cls='<class 'mistral.
Changed in tripleo: | |
importance: | Undecided → High |
milestone: | none → queens-2 |
tags: | added: pike-backport-potential |
Fix proposed to branch: master /review. openstack. org/519962
Review: https:/