Nova error causes StackValidationFailed error

Bug #1191009 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Lei Zhang

Bug Description

If nova returns an error looking up images during stack validation, we return a StackValidationFailed, which is a bit misleading since there's actually nothing wrong with the user template. Should probably catch this and return ServerError instead, since this is really an internal error not a validation failure.

engine.log snippet attached, the client output is:

# heat-cfn create wp22 --template-file=/home/shardy/git/heat-templates/cfn/WordPress_Single_Instance.template --parameters="InstanceType=m1.xlarge;DBUsername=${USER};DBPassword=verybadpass;KeyName=${USER}_key;LinuxDistribution=F18"
ERROR:Failed to create. Got error:
ERROR:Data supplied was not valid: <ErrorResponse><Error><Message>A bad or out-of-range value was supplied:The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-b673fd7d-be5e-40de-afed-5beb4a765fde)</Message><Code>InvalidParameterValue</Code><Type>Sender</Type></Error></ErrorResponse>
[root@t430slt heat]# vim heat/common/exception.py

Revision history for this message
Steven Hardy (shardy) wrote :
Changed in heat:
status: New → Triaged
importance: Undecided → Medium
milestone: none → havana-2
Changed in heat:
assignee: nobody → Lei Zhang (redheadflyundershadow)
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/33648

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/33648
Committed: http://github.com/openstack/heat/commit/f1ea0f2d9be21e1a013ed9990f0f86adabb2ecbd
Submitter: Jenkins
Branch: master

commit f1ea0f2d9be21e1a013ed9990f0f86adabb2ecbd
Author: Zhang Lei (Sneeze) <email address hidden>
Date: Wed Jun 26 13:39:42 2013 +0800

    Raise suitable exception when stack validation fails

    fixed Bug#1191009

    If nova returns an error looking up images during stack validation, we
    return a StackValidationFailed, but we should probably catch
    this and return ServerError instead, since this is really an internal
    error not a validation failure.

    Change-Id: Id509b2fa9f78e197cacfe44bae6c3db37cfd6179

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