From 6795de644b8a8a1879543101d85ba90674219c8b Mon Sep 17 00:00:00 2001 From: ZhuRongze Date: Wed, 1 Aug 2012 13:23:13 +0000 Subject: Send 'create volume from snapshot' to the proper host A simple solution for bug 1008866. When creating volume from snapshot on multicluster, in volume it will check if snapshot_id is set. If snapshot_id is set and FLAGS.snapshot_same_host is true, make the call create volume directly to the volume host where the snapshot resides instead of passing it through the scheduler. So snapshot can be copy to new volume. The same as review 9761. Change-Id: Ic182eb4563b9462704c5969d5116629442df316a --- nova/tests/api/ec2/test_cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/tests') diff --git a/nova/tests/api/ec2/test_cloud.py b/nova/tests/api/ec2/test_cloud.py index ef78c007b..fe5f0c969 100644 --- a/nova/tests/api/ec2/test_cloud.py +++ b/nova/tests/api/ec2/test_cloud.py @@ -1239,7 +1239,7 @@ class CloudTestCase(test.TestCase): if 'snapshot_id' in bdm: snap = db.snapshot_create(self.context, {'id': bdm['snapshot_id'], - 'volume_id': 76543210, + 'volume_id': 01234567, 'status': "available", 'volume_size': 1}) snapshots.append(snap['id']) -- cgit