Bug 1257273 - Heat templates fail on validation
Summary: Heat templates fail on validation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: z2
: 7.0 (Kilo)
Assignee: Steve Baker
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-26 15:37 UTC by Jeremy
Modified: 2023-02-22 23:02 UTC (History)
9 users (show)

Fixed In Version: openstack-heat-2015.1.1-4.el7ost
Doc Type: Bug Fix
Doc Text:
Null values are now converted to empty strings. This change was done to prevent validation failures in perfectly valid template resources, which prevented them from being created in previous releases.
Clone Of:
Environment:
Last Closed: 2015-10-08 12:20:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
heat template used (2.99 KB, application/x-rar)
2015-08-26 15:37 UTC, Jeremy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1488475 0 None None None Never
Red Hat Product Errata RHBA-2015:1865 0 normal SHIPPED_LIVE openstack-heat bug fix advisory 2015-10-08 16:06:10 UTC

Description Jeremy 2015-08-26 15:37:57 UTC
Created attachment 1067321 [details]
heat template used

Description of problem:Some heat templates fail on validation


Version-Release number of selected component (if applicable):
7.0

How reproducible:
100%

Steps to Reproduce:
1.heat stack-create -f ./hot.yaml -e ./env.yaml stack01
2.
3.

Actual results:
ERROR: Failed to validate: : resources.APP-server01pair: : sequence item 0: expected string, NoneType found

Expected results:
create stack successfully

Additional info:
https://bugs.launchpad.net/heat/+bug/1488475
The bug link above suggests a workaround that fixed the issue.
Attached is the heat template used.

Comment 4 Steve Baker 2015-08-27 01:36:44 UTC
Is the problem with hot.yaml#55, which isn't valid yaml:

            eth0_otherAllowed: { LIST: [
                "ip_address": { get_param: [NET_info, Net1, cidr] },
            ] }

should probably be

            eth0_otherAllowed: { LIST: [
                {"ip_address": { get_param: [NET_info, Net1, cidr] }},
            ] }

(I just made the same comment upstream)

Comment 5 Zane Bitter 2015-09-04 19:57:00 UTC
That is valid yaml, and no that isn't the problem.

Comment 9 errata-xmlrpc 2015-10-08 12:20:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2015:1865


Note You need to log in before you can comment on or make changes to this bug.