Don't rely on compute_hosts existance
There might be scenarios when compute_hosts group is not present, but we still need to deploy nova scheduler. So we have to set default for groups['compute_hosts']. Change-Id: I18d42e902b0b3eb5494bcffb424731dfe85c74f9
This commit is contained in:
parent
f7cb4f60e7
commit
4e88bdb7da
@ -313,7 +313,7 @@ nova_ram_allocation_ratio: 1.0
|
||||
nova_ram_weight_multiplier: 5.0
|
||||
nova_reserved_host_disk_mb: 2048
|
||||
|
||||
nova_scheduler_host_subset_size: "{{ ((((groups['compute_hosts'] | length) * 0.3) | round | int, 10) | min, 1) | max }}"
|
||||
nova_scheduler_host_subset_size: "{{ ((((groups['compute_hosts'] | default([]) | length) * 0.3) | round | int, 10) | min, 1) | max }}"
|
||||
nova_scheduler_max_attempts: 5
|
||||
nova_scheduler_default_filters:
|
||||
- AvailabilityZoneFilter
|
||||
|
Loading…
x
Reference in New Issue
Block a user