whitepaper: 352/169 — wave4 MEDIUM (hadoop/hbase/nova/neutron/openstack) + fix odl-0002 dup
This commit is contained in:
parent
9934133dcf
commit
835ae73b0f
82 changed files with 5931 additions and 6 deletions
21
defects/nova/patch/nova-0001.patch
Normal file
21
defects/nova/patch/nova-0001.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
--- a/nova/scheduler/filters/affinity_filter.py
|
||||
+++ b/nova/scheduler/filters/affinity_filter.py
|
||||
@@ -143,9 +143,9 @@ class _GroupAffinityFilter(filters.BaseHostFilter):
|
||||
def host_passes(self, host_state, spec_obj):
|
||||
# Only invoke the filter if 'affinity' is configured
|
||||
- policies = (spec_obj.instance_group.policies
|
||||
- if spec_obj.instance_group else [])
|
||||
+ policies = set(spec_obj.instance_group.policies
|
||||
+ if spec_obj.instance_group else [])
|
||||
if self.policy_name not in policies:
|
||||
return True
|
||||
|
||||
- group_hosts = (spec_obj.instance_group.hosts
|
||||
- if spec_obj.instance_group else [])
|
||||
+ group_hosts = set(spec_obj.instance_group.hosts
|
||||
+ if spec_obj.instance_group else [])
|
||||
LOG.debug("Group affinity: check if %(host)s in "
|
||||
"%(configured)s", {'host': host_state.host,
|
||||
'configured': group_hosts})
|
||||
if group_hosts:
|
||||
return host_state.host in group_hosts
|
||||
Loading…
Add table
Add a link
Reference in a new issue