Misleading error message when specifying a wrong update policy
Bug #1358512 reported by
Thomas Herve
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Peter Razumovsky | ||
Kilo |
Fix Released
|
Undecided
|
Steve Baker |
Bug Description
This is really due to our poor testing, but I realized that if you specify like in our tests "UpdatePolicy": "foo": {}, you get a validatio error "Unknown Property: foo". This is because update_policy is a Properties object, but the message should be customized to be understandable.
Changed in heat: | |
status: | New → Triaged |
Changed in heat: | |
assignee: | nobody → Razumovsky Peter (prazumovsky) |
Changed in heat: | |
status: | Triaged → In Progress |
Changed in heat: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/127150 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=3ad4614276f f460cd8d034216c 078577f148160e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ad4614276ff460 cd8d034216c0785 77f148160e
Author: Peter Razumovsky <email address hidden>
Date: Wed Oct 8 19:19:13 2014 +0400
Improve StackValidation Failed response in properties
In some cases, there is no information about resource and tionFailed msg, so this msg look like "Property name.section_ name.key_ name: error_msg", where policy' .
section, where Property error raised. This patch improves
StackValida
error : resource_
section_name is section, where Property error raised, e.g.
'update_
Change-Id: Iab2a6acdec254b 39983de420ab03f 994cff48d89
Closes-bug: #1358512