Can't import ResourceGroup index to list index in get_param
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Rico Lin |
Bug Description
When creating a RandomString resource, we assume all values in the properties are available during validate(), but this is not true when you reference certain properties e.g length via get_param inside a nested stack:
https:/
This shows the problem, which fails with:
ERROR: Failed to validate: Failed to validate: resources[0]: Value '' is not an integer
ERROR heat.engine.stack [req-21a6c303-
2016-04-05 14:40:36.316 TRACE heat.engine.stack Traceback (most recent call last):
2016-04-05 14:40:36.316 TRACE heat.engine.stack File "/opt/stack/
2016-04-05 14:40:36.316 TRACE heat.engine.stack result = res.validate()
2016-04-05 14:40:36.316 TRACE heat.engine.stack File "/opt/stack/
2016-04-05 14:40:36.316 TRACE heat.engine.stack length = self.properties
2016-04-05 14:40:36.316 TRACE heat.engine.stack File "/opt/stack/
2016-04-05 14:40:36.316 TRACE heat.engine.stack return self._get_
2016-04-05 14:40:36.316 TRACE heat.engine.stack File "/opt/stack/
2016-04-05 14:40:36.316 TRACE heat.engine.stack return self.get_
2016-04-05 14:40:36.316 TRACE heat.engine.stack File "/opt/stack/
2016-04-05 14:40:36.316 TRACE heat.engine.stack raise ValueError(
2016-04-05 14:40:36.316 TRACE heat.engine.stack ValueError: Value '' is not an integer
2016-04-05 14:40:36.316 TRACE heat.engine.stack
The problem AFAICT is that random_string.py shouldn't fail in validate(), because the check for self.properties
Changed in heat: | |
assignee: | nobody → Rico Lin (rico-lin) |
milestone: | none → newton-1 |
status: | New → Triaged |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/302042
Review: https:/