unclear validation error mesage for nested stacks

Bug #1686360 reported by Rabi Mishra
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Rabi Mishra

Bug Description

Error message has 'Failed to validate' twice and there is no way to locate the resource/template.

[stack@f25-devstack exmaples]$ cat test_rsg.yaml
heat_template_version: ocata
resources:
  rsg:
    type: OS::Heat::ResourceGroup
    properties:
      count: 1
      resource_def:
        type: server.yaml
        properties:
          image: cirros-0.3.5-x86_64-disk
          flavor: m1.nano
[stack@f25-devstack exmaples]$ cat server.yaml
heat_template_version: ocata
parameters:
  image:
    type: string
    default: cirros-0.3.5-x86_64-disk
  flavor:
    type: string
    default: m1.nano
resources:
  server:
    type: OS::Nova::Server
    properties:
      image: {get_param: image}
      #flavor: {get_param: flavor}

[stack@f25-devstack exmaples]$ openstack stack create test_stack -t test_rsg.yaml
ERROR: Failed to validate: Failed to validate: resources[0]: Property flavor not assigned

Revision history for this message
Thomas Herve (therve) wrote :

That's horrible, but not new. It'd be great to fix.

Zane Bitter (zaneb)
Changed in heat:
status: New → Triaged
milestone: none → pike-2
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/466802

Changed in heat:
status: Triaged → In Progress
Rico Lin (rico-lin)
Changed in heat:
milestone: pike-2 → pike-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit fe74658ff06b76d83b5b1595fa4529d373d78cce
Author: rabi <email address hidden>
Date: Mon May 22 15:06:57 2017 +0530

    Improve StackValidationFailed exception

    We use StackValidationFailed in many different scenarios and
    the the message is at times extremely unhelpful, specifically
    when the validation error is deep in a nested stack.

    Change-Id: I0183bdf81442e62325a427b4eec5c4cd9b7cb91f
    Closes-Bug: #1686360

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 9.0.0.0b3

This issue was fixed in the openstack/heat 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.