Modifies ec2/cloud to be able to use Cinder

* Implements part of blueprint extract-nova-volumes
 * Pass more complete information from ec2api to volume
 * Remove old comment from test_cloud
 * Stops creating mapping on default volume/snap creation, as
   the mapping is automatically created on access

Change-Id: I55f4364940cd606b06ad39256462dc1c436e28f1
This commit is contained in:
John Griffith 2012-07-02 11:08:38 -07:00 committed by Vishvananda Ishaya
parent 712bdf1bbb
commit f0b1355561

View File

@ -2900,7 +2900,6 @@ def volume_create(context, values):
with session.begin():
volume_ref.save(session=session)
ec2_volume_create(context, volume_ref['id'])
return volume_ref
@ -3205,7 +3204,6 @@ def snapshot_create(context, values):
session = get_session()
with session.begin():
snapshot_ref.save(session=session)
ec2_snapshot_create(context, snapshot_ref['id'])
return snapshot_ref