validation error with no details
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
New
|
Undecided
|
Unassigned |
Bug Description
I have a template i'm trying to boot which fails with this error:
400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Remote error: StackValidation
Given there was no explanation but the code looks like it should have one I popped into pdb and indeed:
---
> /opt/stack/
-> logger.
(Pdb) print ex
(Pdb) print res
AccessKey "Key"
---
I suspect the AccessKey resource is raising a bad error.
And indeed, its this: venvs/heat/ local/lib/ python2. 7/site- packages/ heat/engine/ properties. py(179) validate( ) StackValidation Failed( message= msg)
> /opt/stack/
-> self[key]
((Pdb)) list
174
175 def validate(self, with_value=True):
176 for (key, prop) in self.props.items():
177 if with_value:
178 try:
179 -> self[key]
180 except ValueError as e:
181 msg = "Property error : %s" % str(e)
182 raise exception.
183
184 # are there unimplemented Properties
self[key] here raises AssertionError not ValueError (and btw the error should really capture 'self' and 'key' for debugging.