Can’t generate a template based on “OS::Heat::UpdateWaitConditionHandle” or “AWS::CloudFormation::WaitConditionHandle” resource type

Bug #1341985 reported by FeihuJiang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
FeihuJiang

Bug Description

      When you use “heat resource-template OS::Heat::UpdateWaitConditionHandle” or “heat resource-template AWS::CloudFormation::WaitConditionHandle” command. It should generate a template based on these resources, but now the output just shows “ERROR: need more than 0 value unpack ”.

      When you use the API “GET/v1/{tenant_id}/resource_types/{type_name}/template”, and type_name is OS::Heat::UpdateWaitConditionHandle or AWS::CloudFormation::WaitConditionHandle, It should get the template representation for the resource type, but now just get “400 Error response: Bad request”.

FeihuJiang (jiangfeihu)
Changed in heat:
assignee: nobody → FeihuJiang (jiangfeihu)
status: New → In Progress
Revision history for this message
Steven Hardy (shardy) wrote :

When we fix this, adding a tempest test which takes the output of heat resource-type-list and proves resource-template works on them all would be a good idea :)

Revision history for this message
FeihuJiang (jiangfeihu) wrote :

To shardy, yes, your suggestion is a good idea. But The tempest test about resource type and resource-template isn't merged to master now (https://bugs.launchpad.net/heat/+bug/1336169). I think it's better to add a tempest test which is your suggestion after the tempest test (https://bugs.launchpad.net/heat/+bug/1336169) has been merged to master, or do you have any other suggestions? Thanks very much!

Revision history for this message
FeihuJiang (jiangfeihu) wrote :

Fix schema-to-template for empty schema:
https://review.openstack.org/#/c/107548/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/107548
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=09ebba154a6eb3d8e07afcf8ed560502a2ffd26d
Submitter: Jenkins
Branch: master

commit 09ebba154a6eb3d8e07afcf8ed560502a2ffd26d
Author: FeihuJiang <email address hidden>
Date: Thu Jul 17 02:48:19 2014 +0000

    Fix schema-to-template for empty schema

    if schema is {}, the
    schema_to_parameters_and_properties(schema)
    function shouldn't get an error, and return
    {}, {} for parameters and properties

    Closes-Bug: #1341985

    Change-Id: Ic206ba64811bf43080a9deebb7c3b4c19134c43d

Changed in heat:
status: In Progress → Fix Committed
Changed in heat:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: juno-2 → 2014.2
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.