TemplateFiles object is not JSON serializable

Bug #1589519 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Released
High
Rabi Mishra

Bug Description

When using SessionClient we get following error for files.

2016-06-06 17:16:08.664 19003 ERROR oslo_messaging._drivers.common [req-01957d20-bf8f-4df9-9aff-bba439fe14d7 demo demo - default default] Returning exception Failed validating stack template using Heat endpoint at region "RegionOne" due to "<heat.engine.template_files.TemplateFiles object at 0x7fc1ce393390> is not JSON serializable" to caller
2016-06-06 17:16:08.666 19003 ERROR oslo_messaging._drivers.common [req-01957d20-bf8f-4df9-9aff-bba439fe14d7 demo demo - default default] ['Traceback (most recent call last):\n', ' File "/opt/stack/heat/heat/common/context.py", line 400, in wrapped\n return func(self, ctx, *args, **kwargs)\n', ' File "/opt/stack/heat/heat/engine/service.py", line 817, in create_stack\n template_id)\n', ' File "/opt/stack/heat/heat/engine/service.py", line 692, in _parse_template_and_validate_stack\n stack.validate()\n', ' File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 147, in wrapper\n return f(*args, **kwargs)\n', ' File "/opt/stack/heat/heat/engine/stack.py", line 767, in validate\n result = res.validate()\n', ' File "/opt/stack/heat/heat/engine/resources/openstack/heat/remote_stack.py", line 160, in validate\n raise exception.StackValidationFailed(message=msg)\n', 'StackValidationFailed: Failed validating stack template using Heat endpoint at region "RegionOne" due to "<heat.engine.template_files.TemplateFiles object at 0x7fc1ce393390> is not JSON serializable"\n']

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/325984

Changed in python-heatclient:
status: New → In Progress
Changed in python-heatclient:
importance: Undecided → High
Rabi Mishra (rabi)
Changed in python-heatclient:
milestone: none → 1.2.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (master)

Reviewed: https://review.openstack.org/325984
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=3f4f3772dbfc80e86b2859d3d2bbbcd5a3971fb4
Submitter: Jenkins
Branch: master

commit 3f4f3772dbfc80e86b2859d3d2bbbcd5a3971fb4
Author: rabi <email address hidden>
Date: Mon Jun 6 19:37:54 2016 +0530

    Serialize files when using SessionClient

    SessionClient can not json serialize TemplateFiles object.
    We should do them explictly.

    Change-Id: Ia67562ae9a13c0975cb5c39532c0dc413d82c4c3
    Closes-Bug: #1589519

Changed in python-heatclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-heatclient 1.3.0

This issue was fixed in the openstack/python-heatclient 1.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.