exception trying to create volumes when there are none defined

Bug #1146742 reported by Angus Salkeld
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Angus Salkeld

Bug Description

heat create wp -f WordPress_Single_Instance_With_HA.template -P "InstanceType=m1.large;DBUsername=wp;DBPassword=verybadpassword;KeyName=heat_key;LinuxDistribution=F17"

Then in the log:

2013-03-05 23:07:54.959 31531 ERROR heat.engine.resource [-] create Instance "WikiDatabase"
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource Traceback (most recent call last):
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource File "/home/asalkeld/stack/heat/heat/engine/resource.py", line 303, in create
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource while not self.check_active():
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource File "/home/asalkeld/stack/heat/heat/engine/resources/instance.py", line 309, in check_active
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource self.attach_volumes()
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource File "/home/asalkeld/stack/heat/heat/engine/resources/instance.py", line 318, in attach_volumes
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource for vol in self.properties['Volumes']:
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource TypeError: 'NoneType' object is not iterable
2013-03-05 23:07:54.959 31531 TRACE heat.engine.resource

Angus Salkeld (asalkeld)
Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
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/23541

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/23541
Committed: http://github.com/openstack/heat/commit/d817ec2f7f077808e4f6f6e3b797079a7b03cc47
Submitter: Jenkins
Branch: master

commit d817ec2f7f077808e4f6f6e3b797079a7b03cc47
Author: Angus Salkeld <email address hidden>
Date: Tue Mar 5 23:44:54 2013 +1100

    Make sure we have a volumes property before trying to use it

    bug 1146742
    Signed-off-by: Angus Salkeld <email address hidden>
    Change-Id: I2d56af0b07f544642e0527a8300db842d2bc0268

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Steven Dake (sdake)
Changed in heat:
importance: Undecided → High
Thierry Carrez (ttx)
Changed in heat:
milestone: grizzly-rc1 → 2013.1
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.