empty output validation bug

Bug #1486182 reported by Kevin Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Steve Baker
Kilo
Fix Released
Medium
Rico Lin

Bug Description

We recently upgraded to Kilo and some of our existing templates brake due to too strict validation.

https://raw.githubusercontent.com/EMSL-MSC/heat-templates/7254e6936faa8fbc562a6a7239e3927ddc0db22e/cfn/lib/private/FloatingIp_None.yaml
   ^------- is a simple example that use to work but no longer does.

The value of the output was specifically intended to be "" to return to the parent template. In horizon, it returns:
Error: ERROR: Output validation error: Each Output must contain a Value key. It should return the blank string instead.

Changed in heat:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Steve Baker (steve-stevebaker)
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Confirmed with heat master and the following launch line

heat stack-create -f FloatingIp_None.yaml -PNetworkId=a -PInstanceId=a -PIpAddress=a -PFloatingIpId=a -PPortId=a a

tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Changed in heat:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/214396
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=213bb164501cd2a3b1811f5466b3f613335b2c7c
Submitter: Jenkins
Branch: master

commit 213bb164501cd2a3b1811f5466b3f613335b2c7c
Author: Steve Baker <email address hidden>
Date: Wed Aug 19 12:19:59 2015 +1200

    Allow empty/None output values

    Currently validation fails if a template output Value is set to
    something which evaluates to False. This change makes the check
    look for the Value key instead.

    This fixes what appears to be a behaviour regression from Juno->Kilo.

    Change-Id: I0f5ae779aa46b243c66228e06fa652fb67ea06bf
    Closes-Bug: #1486182

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
Kevin Fox (kevpn) wrote :

The patch didn't apply cleanly but with a slight formatting tweak it did on kilo.

Thanks for the fix.
Kevin

Changed in heat:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Angus Salkeld (asalkeld)
tags: removed: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/225518

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

Reviewed: https://review.openstack.org/225518
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=22a404d25bb0fe8de4e0e3ee7234d5ccd2066167
Submitter: Jenkins
Branch: stable/kilo

commit 22a404d25bb0fe8de4e0e3ee7234d5ccd2066167
Author: Angus Salkeld <email address hidden>
Date: Mon Sep 21 10:04:44 2015 +1000

    Allow empty/None output values

    Currently validation fails if a template output Value is set to
    something which evaluates to False. This change makes the check
    look for the Value key instead.

    This fixes what appears to be a behaviour regression from Juno->Kilo.

    Conflicts:
     heat/engine/stack.py
     heat/tests/test_stack.py

    Change-Id: I0f5ae779aa46b243c66228e06fa652fb67ea06bf
    Closes-Bug: #1486182
    (cherry picked from commit 213bb164501cd2a3b1811f5466b3f613335b2c7c)

Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-3 → 5.0.0
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.