OS::Cinder::Volume failed when using imageRef property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Liang Chen |
Bug Description
When using "OS::Cinder:
The volume status (from cinder list) is "downloading" or "available" when create volume resource from image via heat.
But the stack status was changed to "CREATE_FAILED" before the volume status to be available.
The following error occurs in heat-engine:
=======
2013-09-09 15:23:05.026 6035 ERROR heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.026 6035 TRACE heat.engine.
2013-09-09 15:23:05.064 6035 DEBUG heat.engine.
2013-09-09 15:23:05.078 6035 DEBUG heat.engine.
2013-09-09 15:23:05.079 6035 WARNING heat.engine.service [-] Stack create failed, status FAILED
=======
The template file is:
=======
{
"AWSTemplateF
"Parameters" : {
"ImageID" : {
"Type" : "String"
}
},
"Resources" : {
"volume": {
"Type": "OS::Cinder:
"Properties": {
"size": 1,
"imageRef": { "Ref": "ImageID" }
}
}
}
}
=======
The command Line is:
=======
$ heat stack-create -f image-2-
=======
I think heat-engine have to allow "downloading" status.
The draft to modify heat/engine/
=======
def check_create_
vol.get()
if vol.status == 'available':
return True
elif vol.status == 'creating':
return False
elif vol.status == 'restoring-backup':
return False
+ elif vol.status == 'downloading':
+ return False
else:
raise exception.
=======
Changed in heat: | |
milestone: | none → havana-rc1 |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in heat: | |
assignee: | nobody → Liang Chen (cbjchen) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/46455
Review: https:/