Add heal_instance_info_cache_interval to nova.conf

This attribute is not currently a part of the cookbook template.
Adding this attribute will allow operators to configure this option
which can reduce unecessary neutron requests in non OVS or Linux
Bridge deployments.

Closes-Bug:1499551

Change-Id: Ibcf6b7bb614d629926b7d1f50ac552a9d1b1e670
This commit is contained in:
Kasey Alusi 2015-09-25 08:59:59 -07:00
parent 04273acff7
commit 4d552ee2e4
3 changed files with 8 additions and 0 deletions

View File

@ -371,6 +371,7 @@ default['openstack']['compute']['config']['disk_allocation_ratio'] = 1.0
default['openstack']['compute']['config']['snapshot_image_format'] = 'qcow2'
default['openstack']['compute']['config']['allow_resize_to_same_host'] = false
default['openstack']['compute']['config']['resize_confirm_window'] = 0
default['openstack']['compute']['config']['heal_instance_info_cache_interval'] = 60
default['openstack']['compute']['config']['reserved_host_disk_mb'] = 0
default['openstack']['compute']['config']['reserved_host_memory_mb'] = 512
# `start` will cause nova-compute to error out if a VM is already running, where

View File

@ -97,6 +97,11 @@ describe 'openstack-compute::nova-common' do
end
end
it 'has default heal_instance_info_cache_interval set' do
line = 'heal_instance_info_cache_interval=60'
expect(chef_run).to render_file(file.name).with_content(/^#{line}$/)
end
it 'has default ssl options set' do
%w(ssl_only=false
cert=self.pem

View File

@ -185,6 +185,8 @@ start_guests_on_host_boot=<%= node["openstack"]["compute"]["config"]["start_gues
resume_guests_state_on_host_boot=<%= node["openstack"]["compute"]["config"]["resume_guests_state_on_host_boot"] %>
allow_resize_to_same_host=<%= node["openstack"]["compute"]["config"]["allow_resize_to_same_host"] %>
resize_confirm_window=<%= node["openstack"]["compute"]["config"]["resize_confirm_window"] %>
# (IntOpt) Number of seconds between instance network information cache updates.
heal_instance_info_cache_interval=<%= node['openstack']['compute']['config']['heal_instance_info_cache_interval'] %>
live_migration_retry_count=<%= node["openstack"]["compute"]["config"]["live_migration_retry_count"] %>
##### QUOTAS #####