Bug 1257273

Summary: Heat templates fail on validation
Product: Red Hat OpenStack Reporter: Jeremy <jmelvin>
Component: openstack-heatAssignee: Steve Baker <sbaker>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: ddomingo, jmelvin, ohochman, sbaker, sclewis, scohen, shardy, yeylon, zbitter
Target Milestone: z2Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 12:20:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
heat template used none

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