-
Notifications
You must be signed in to change notification settings - Fork 57
/
_nova.conf.tpl
154 lines (123 loc) · 6.4 KB
/
_nova.conf.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# nova.conf
[DEFAULT]
{{- range $k, $v := .Values.default }}
{{ $k }} = {{ $v }}
{{- end }}
log_config_append = /etc/nova/logging.ini
{{- include "ini_sections.logging_format" . }}
state_path = /var/lib/nova
# we patched this to be treated as force_resize_to_same_host for mitaka
# https://github.com/sapcc/nova/commit/fd9508038351d027dcbf94282ba83caed5864a97
allow_resize_to_same_host = true
# but now we also need a new patch with this for queens
always_resize_on_same_host = {{ .Values.always_resize_on_same_host | default false }}
enable_new_services = {{ .Values.enable_new_services | default .Release.IsInstall }}
service_down_time = {{ .Values.service_down_time | default 60 }}
memcache_servers = {{ .Chart.Name }}-memcached.{{ include "svc_fqdn" . }}:{{ .Values.memcached.memcached.port | default 11211 }}
default_schedule_zone = {{.Values.global.default_availability_zone}}
default_availability_zone = {{.Values.global.default_availability_zone}}
rpc_response_timeout = {{ .Values.rpc_response_timeout | default .Values.global.rpc_response_timeout | default 60 }}
sync_power_state_pool_size = {{ .Values.sync_power_state_pool_size | default 500 }}
sync_power_state_interval = {{ .Values.sync_power_state_interval | default 1200 }}
sync_power_state_unexpected_call_stop = false
prepare_empty_host_for_spawning_interval = 600
{{- if (.Values.imageVersion | hasPrefix "rocky") }}
dhcp_domain = openstack.{{ required ".Values.global.region is missing" .Values.global.region }}.{{ required ".Values.global.tld is missing" .Values.global.tld }}
{{- end }}
{{ template "utils.snippets.debug.eventlet_backdoor_ini" "nova" }}
[database]
{{- include "ini_sections.database_options_mysql" . }}
[api]
compute_link_prefix = https://{{include "nova_api_endpoint_host_public" .}}:{{.Values.global.novaApiPortPublic}}
{{- if (.Values.imageVersion | hasPrefix "rocky" | not) }}
dhcp_domain = openstack.{{ required ".Values.global.region is missing" .Values.global.region }}.{{ required ".Values.global.tld is missing" .Values.global.tld }}
{{- end }}
[quota]
{{- range $k, $v := .Values.quota }}
{{ $k }} = {{ $v }}
{{- end }}
# usage refreshes on new reservations, 0 means disabled
# number of seconds between subsequent usage refreshes
max_age = {{ .Values.usage_max_age | default 0 }}
# count of reservations until usage is refreshed
until_refresh = {{ .Values.usage_until_refresh | default 0 }}
{{- include "osprofiler" . }}
{{ include "ini_sections.oslo_messaging_rabbit" .}}
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[glance]
num_retries = 10
[cinder]
os_region_name = {{.Values.global.region}}
cross_az_attach={{.Values.cross_az_attach}}
auth_url = http://{{include "keystone_api_endpoint_host_internal" .}}:{{ .Values.global.keystone_api_port_internal | default "5000" }}/v3
auth_type = v3password
user_domain_name = {{.Values.global.keystone_service_domain | default "Default" }}
region_name = {{.Values.global.region}}
project_name = {{.Values.global.keystone_service_project | default "service" }}
project_domain_name = {{.Values.global.keystone_service_domain | default "Default" }}
http_retries = {{.Values.cinder_http_retries}}
[neutron]
service_metadata_proxy = true
auth_url = http://{{include "keystone_api_endpoint_host_internal" .}}:{{ .Values.global.keystone_api_port_internal | default "5000" }}/v3
auth_type = v3password
user_domain_name = {{.Values.global.keystone_service_domain | default "Default" }}
region_name = {{.Values.global.region}}
project_name = {{.Values.global.keystone_service_project | default "service" }}
project_domain_name = {{.Values.global.keystone_service_domain | default "Default" }}
http_retries = {{.Values.neutron_http_retries}}
timeout = {{.Values.neutron_timeout}}
[keystone_authtoken]
auth_type = v3password
auth_version = v3
auth_interface = internal
www_authenticate_uri = https://{{include "keystone_api_endpoint_host_public" .}}/v3
auth_url = {{.Values.global.keystone_api_endpoint_protocol_internal | default "http"}}://{{include "keystone_api_endpoint_host_internal" .}}:{{ .Values.global.keystone_api_port_internal | default 5000}}/v3
user_domain_name = "{{.Values.global.keystone_service_domain | default "Default" }}"
project_name = "{{.Values.global.keystone_service_project | default "service" }}"
project_domain_name = "{{.Values.global.keystone_service_domain | default "Default" }}"
region_name = {{.Values.global.region}}
memcached_servers = {{ .Chart.Name }}-memcached.{{ include "svc_fqdn" . }}:{{ .Values.memcached.memcached.port | default 11211 }}
insecure = True
token_cache_time = 600
include_service_catalog = true
service_type = compute
service_token_roles_required = True
memcache_use_advanced_pool = True
#[upgrade_levels]
#compute = auto
[oslo_messaging_notifications]
driver = noop
[oslo_middleware]
enable_proxy_headers_parsing = true
[placement]
auth_type = v3password
auth_version = v3
auth_url = http://{{include "keystone_api_endpoint_host_internal" .}}:{{ .Values.global.keystone_api_port_internal | default "5000" }}/v3
user_domain_name = "{{.Values.global.keystone_service_domain | default "Default" }}"
project_name = "{{.Values.global.keystone_service_project | default "service" }}"
project_domain_name = "{{.Values.global.keystone_service_domain | default "Default" }}"
valid_interfaces = internal
region_name = {{.Values.global.region}}
{{- include "ini_sections.cache" . }}
[barbican]
backend = barbican
auth_endpoint = {{.Values.global.keystone_api_endpoint_protocol_internal | default "http"}}://{{include "keystone_api_endpoint_host_internal" .}}:{{ .Values.global.keystone_api_port_internal | default 5000}}/v3
[service_user]
send_service_user_token = true
auth_type = v3password
auth_version = v3
auth_interface = internal
auth_url = {{.Values.global.keystone_api_endpoint_protocol_internal | default "http"}}://{{include "keystone_api_endpoint_host_internal" .}}:{{ .Values.global.keystone_api_port_internal | default 5000}}/v3
user_domain_name = "{{.Values.global.keystone_service_domain | default "Default" }}"
project_name = "{{.Values.global.keystone_service_project | default "service" }}"
project_domain_name = "{{.Values.global.keystone_service_domain | default "Default" }}"
region_name = {{.Values.global.region}}
[wsgi]
default_pool_size = {{ .Values.wsgi_default_pool_size | default .Values.global.wsgi_default_pool_size | default 100 }}
[workarounds]
enable_live_migration_to_old_hypervisor = True
[compute]
initial_cpu_allocation_ratio = 1.0
initial_ram_allocation_ratio = 1.0
initial_disk_allocation_ratio = 1.0