diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2013-06-18 21:13:01 +0000 |
|---|---|---|
| committer | Dan Smith <danms@us.ibm.com> | 2013-06-20 19:07:26 -0700 |
| commit | a02766e28101381207ea7a48396a9448ca610348 (patch) | |
| tree | bc4a2700d59508dfd76d1513dedad6d1cea86516 /nova/cells | |
| parent | 022bd8d6c16a1a06a3996f1fa827bc17b4272af7 (diff) | |
| download | nova-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.py | 3 |
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, |
