This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
/
nova.conf
253 lines (218 loc) · 7.1 KB
/
nova.conf
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
## NB: Unpolished config file
## This config file was taken directly from the upstream repo, and tweaked just enough to work.
## It has not been audited to ensure that everything present is either Heat controlled or a mandatory as-is setting.
## Please submit patches for any setting that should be deleted or Heat-configurable.
## https://git.openstack.org/cgit/openstack/tripleo-image-elements
[DEFAULT]
{{#nova.verbose}}
# Print more verbose output (set logging level to INFO instead
# of default WARNING level). (boolean value)
verbose={{nova.verbose}}
{{/nova.verbose}}
{{#nova.debug}}
# Print debugging output (set logging level to DEBUG instead
# of default WARNING level). (boolean value)
debug={{nova.debug}}
{{/nova.debug}}
{{#nova.baremetal}}
# Scheduler will always pick node with less ram first. When we will have
# exact match, this will not be needed.
ram_weight_multiplier=-1.0
{{/nova.baremetal}}
s3_host={{keystone.host}}
ec2_dmz_host={{keystone.host}}
ec2_url=http://{{nova.host}}:8773/services/Cloud
{{#local-ipv4}}
my_ip={{local-ipv4}}
{{/local-ipv4}}
{{#haproxy}}
{{#stunnel.connect_host}}
osapi_compute_listen={{stunnel.connect_host}}
ec2_listen={{stunnel.connect_host}}
metadata_listen={{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
osapi_compute_listen={{local-ipv4}}
ec2_listen={{local-ipv4}}
metadata_listen={{local-ipv4}}
{{/stunnel.connect_host}}
{{/haproxy}}
{{#nova.default_ephemeral_format}}
default_ephemeral_format={{.}}
{{/nova.default_ephemeral_format}}
state_path=/mnt/state/var/lib/nova
lock_path=/mnt/state/var/lib/nova
keys_path=/mnt/state/var/lib/nova/keys
api_paste_config=/etc/nova/api-paste.ini
# Auth
auth_strategy=keystone
keystone_ec2_url=http://{{keystone.host}}:5000/v2.0/ec2tokens
# VNC configuration
{{#nova.public_ip}}
{{#stunnel.connect_host}}
novncproxy_base_url=https://{{nova.public_ip}}:6080/vnc_auto.html
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
novncproxy_base_url=http://{{nova.public_ip}}:6080/vnc_auto.html
{{/stunnel.connect_host}}
{{/nova.public_ip}}
novncproxy_port=6080
{{#haproxy}}
{{#stunnel.connect_host}}
novncproxy_host={{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
novncproxy_host={{local-ipv4}}
{{/stunnel.connect_host}}
{{/haproxy}}
vncserver_proxyclient_address={{local-ipv4}}
vncserver_listen=0.0.0.0
# Networking #
{{#nova.default_floating_pool}}
default_floating_pool={{nova.default_floating_pool}}
{{/nova.default_floating_pool}}
network_api_class=nova.network.neutronv2.api.API
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
rootwrap_config=/etc/nova/rootwrap.conf
security_group_api=neutron
firewall_driver=nova.virt.firewall.NoopFirewallDriver
# Cinder #
volume_api_class=nova.volume.cinder.API
{{#rabbit}}
rabbit_password={{password}}
rpc_backend=nova.openstack.common.rpc.impl_kombu
{{#rabbit.host}}
rabbit_host={{.}}
{{/rabbit.host}}
{{^rabbit.host}}
rabbit_hosts={{rabbit.nodes}}
rabbit_ha_queues=true
{{/rabbit.host}}
{{/rabbit}}
{{#qpid}}
qpid_hostname={{host}}
qpid_username={{username}}
qpid_password={{password}}
rpc_backend=nova.openstack.common.rpc.impl_qpid
{{/qpid}}
enabled_apis = ec2,osapi_compute,metadata,openstack_compute_api_v2
compute_driver = {{nova.compute_driver}}
{{#nova.compute_manager}}
compute_manager = {{.}}
{{/nova.compute_manager}}
{{#nova.image_cache_manager_interval}}
image_cache_manager_interval= {{nova.image_cache_manager_interval}}
{{/nova.image_cache_manager_interval}}
{{#nova.resize_fs_using_block_device}}
resize_fs_using_block_device = {{nova.resize_fs_using_block_device}}
{{/nova.resize_fs_using_block_device}}
{{#nova.resume_guests_state_on_host_boot}}
resume_guests_state_on_host_boot = {{nova.resume_guests_state_on_host_boot}}
{{/nova.resume_guests_state_on_host_boot}}
{{#nova.running_deleted_instance_action}}
running_deleted_instance_action = {{nova.running_deleted_instance_action}}
{{/nova.running_deleted_instance_action}}
{{#nova.virt_mkfs}}
virt_mkfs = {{nova.virt_mkfs}}
{{/nova.virt_mkfs}}
# nova-compute configuration for ceilometer
{{#ceilometer.compute_agent}}
instance_usage_audit=True
instance_usage_audit_period=hour
notify_on_state_change=vm_and_task_state
notification_driver=nova.openstack.common.notifier.rpc_notifier
notification_driver=ceilometer.compute.nova_notifier
{{/ceilometer.compute_agent}}
{{#nova.compute_hostname}}
# Override the service hostname - used for the seed node where no metadata
# source is supplying hostnames - see seed-stack-config's config.json.
host={{nova.compute_hostname}}
{{/nova.compute_hostname}}
{{#nova.tuning}}
ram_allocation_ratio = {{ram_allocation_ratio}}
reserved_host_memory_mb = {{reserved_host_memory_mb}}
{{/nova.tuning}}
{{#nova.scheduler_host_manager}}
scheduler_host_manager = {{.}}
{{/nova.scheduler_host_manager}}
{{^nova.scheduler_host_manager}}
# scheduler_host_manager isn't explicitly set so we set it accordingly
{{#ironic}}
scheduler_host_manager = ironic.nova.scheduler.ironic_host_manager.IronicHostManager
{{/ironic}}
{{#nova.baremetal}}
scheduler_host_manager = nova.scheduler.baremetal_host_manager.BaremetalHostManager
{{/nova.baremetal}}
{{/nova.scheduler_host_manager}}
[database]
{{#nova.db}}
connection={{nova.db}}
{{/nova.db}}
[neutron]
url=http://{{neutron.host}}:9696
auth_strategy=keystone
admin_username=neutron
admin_tenant_name=service
admin_password={{neutron.service-password}}
admin_auth_url=http://{{keystone.host}}:35357/v2.0
service_metadata_proxy={{nova.metadata-proxy}}
{{#neutron.metadata_proxy_shared_secret}}
metadata_proxy_shared_secret={{neutron.metadata_proxy_shared_secret}}
{{/neutron.metadata_proxy_shared_secret}}
[glance]
api_servers={{glance.protocol}}://{{glance.host}}:{{glance.port}}
{{#nova.baremetal}}
[baremetal]
sql_connection = {{db}}
tftp_root = /tftpboot
flavor_extra_specs = cpu_arch:{{arch}}
driver = nova.virt.baremetal.pxe.PXE
pxe_network_config=True
pxe_deploy_timeout={{pxe_deploy_timeout}}
power_manager = {{power_manager}}
{{#virtual_power}}
virtual_power_host_user={{user}}
virtual_power_host_key=/mnt/state/var/lib/nova/virtual-power-key
virtual_power_ssh_host={{ssh_host}}
virtual_power_type={{type}}
{{/virtual_power}}
{{/nova.baremetal}}
[osapi_v3]
enabled = True
[keystone_authtoken]
admin_password = {{nova.service-password}}
admin_tenant_name = service
admin_user = nova
identity_uri=http://{{keystone.host}}:35357
signing_dir = /tmp/keystone-signing-nova
auth_uri = http://{{keystone.host}}:5000/v2.0
cafile = /etc/ssl/certs/ca-certificates.crt
{{#ironic}}
[ironic]
admin_username = ironic
admin_password = {{ironic.service-password}}
admin_url = http://{{keystone.host}}:35357/v2.0
admin_tenant_name = service
{{/ironic}}
[libvirt]
{{#nova.compute_libvirt_type}}
virt_type={{nova.compute_libvirt_type}}
{{/nova.compute_libvirt_type}}
block_migration_flag=VIR_MIGRATE_LIVE,VIR_MIGRATE_TUNNELLED,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_NON_SHARED_INC,VIR_MIGRATE_UNDEFINE_SOURCE
[ssl]
ca_file = /etc/ssl/certs/ca-certificates.crt
{{#nova}}
{{#config}}
[{{{section}}}]
{{#values}}
{{#comment}}
# {{{.}}}
{{/comment}}
{{#option}}
{{{option}}}={{{value}}}
{{/option}}
{{/values}}
{{/config}}
{{/nova}}