summaryrefslogtreecommitdiffstats
path: root/nova/cells
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2013-06-18 21:13:01 +0000
committerDan Smith <danms@us.ibm.com>2013-06-20 19:07:26 -0700
commita02766e28101381207ea7a48396a9448ca610348 (patch)
treebc4a2700d59508dfd76d1513dedad6d1cea86516 /nova/cells
parent022bd8d6c16a1a06a3996f1fa827bc17b4272af7 (diff)
downloadnova-a02766e28101381207ea7a48396a9448ca610348.tar.gz
nova-a02766e28101381207ea7a48396a9448ca610348.tar.xz
nova-a02766e28101381207ea7a48396a9448ca610348.zip
Make sure instance_type has extra_specs
Make sure that when scheduling, the instance_type used in filters contains the 'extra_specs'. This is a bit ugly, but will get cleaned up with objects. Fixes bug 1192331 Change-Id: I3614f3a858840c9561b4e618fc30f3d3ae5ac689
Diffstat (limited to 'nova/cells')
-rw-r--r--nova/cells/scheduler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/cells/scheduler.py b/nova/cells/scheduler.py
index c54b9b578..aa081a726 100644
--- a/nova/cells/scheduler.py
+++ b/nova/cells/scheduler.py
@@ -214,7 +214,8 @@ class CellsScheduler(base.Base):
instance_uuids = [inst['uuid'] for inst in
build_inst_kwargs['instances']]
instances = build_inst_kwargs['instances']
- request_spec = scheduler_utils.build_request_spec(image, instances)
+ request_spec = scheduler_utils.build_request_spec(message.ctxt,
+ image, instances)
filter_properties = copy.copy(build_inst_kwargs['filter_properties'])
filter_properties.update({'context': message.ctxt,
'scheduler': self,