blob: fcc52abeefb9289d934e43267816163587b7fc4d [file] [log] [blame]
Vasyl Saienkocab3a902018-07-12 13:17:17 +03001{%- from "nova/map.jinja" import compute,compute_driver_mapping with context %}
2
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003[DEFAULT]
4
5#
6# From nova.conf
7#
8compute_manager=nova.compute.manager.ComputeManager
9network_device_mtu=65000
10use_neutron = True
11security_group_api=neutron
12image_service=nova.image.glance.GlanceImageService
13
14# DEPRECATED:
15# When returning instance metadata, this is the class that is used
16# for getting vendor metadata when that class isn't specified in the individual
17# request. The value should be the full dot-separated path to the class to use.
18#
19# Possible values:
20#
21# * Any valid dot-separated class path that can be imported.
22# (string value)
23# This option is deprecated for removal since 13.0.0.
24# Its value may be silently ignored in the future.
25#vendordata_driver=nova.api.metadata.vendordata_json.JsonFileVendorData
26
27# DEPRECATED:
28# This option is used to enable or disable quota checking for tenant networks.
29#
30# Related options:
31#
32# * quota_networks
33# (boolean value)
34# This option is deprecated for removal since 14.0.0.
35# Its value may be silently ignored in the future.
36# Reason:
37# CRUD operations on tenant networks are only available when using nova-network
38# and nova-network is itself deprecated.
39#enable_network_quota=false
40
41# DEPRECATED:
42# This option controls the number of private networks that can be created per
43# project (or per tenant).
44#
45# Related options:
46#
47# * enable_network_quota
48# (integer value)
49# Minimum value: 0
50# This option is deprecated for removal since 14.0.0.
51# Its value may be silently ignored in the future.
52# Reason:
53# CRUD operations on tenant networks are only available when using nova-network
54# and nova-network is itself deprecated.
55#quota_networks=3
56
57#
58# This option specifies the name of the availability zone for the
59# internal services. Services like nova-scheduler, nova-network,
60# nova-conductor are internal services. These services will appear in
61# their own internal availability_zone.
62#
63# Possible values:
64#
65# * Any string representing an availability zone name
66# * 'internal' is the default value
67#
68# (string value)
69#internal_service_availability_zone=internal
70
71#
72# Default compute node availability_zone.
73#
74# This option determines the availability zone to be used when it is not
75# specified in the VM creation request. If this option is not set,
76# the default availability zone 'nova' is used.
77#
78# Possible values:
79#
80# * Any string representing an availability zone name
81# * 'nova' is the default value
82#
83# (string value)
Dzmitry Stremkouski2e1cd9f2019-11-13 16:21:39 +010084default_availability_zone = {{ compute.availability_zone|default('nova') }}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +010085
86# Length of generated instance admin passwords. (integer value)
87# Minimum value: 0
88#password_length=12
89
90#
91# Time period to generate instance usages for. It is possible to define optional
92# offset to given period by appending @ character followed by a number defining
93# offset.
94#
95# Possible values:
96#
97# * period, example: ``hour``, ``day``, ``month` or ``year``
98# * period with offset, example: ``month@15`` will result in monthly audits
99# starting on 15th day of month.
100# (string value)
101#instance_usage_audit_period=month
102{% if pillar.ceilometer is defined %}
103instance_usage_audit = True
104instance_usage_audit_period = hour
105{%- endif %}
106#
107# Start and use a daemon that can run the commands that need to be run with
108# root privileges. This option is usually enabled on nodes that run nova compute
109# processes.
110# (boolean value)
111#use_rootwrap_daemon=false
112
113#
114# Path to the rootwrap configuration file.
115#
116# Goal of the root wrapper is to allow a service-specific unprivileged user to
117# run a number of actions as the root user in the safest manner possible.
118# The configuration file used here must match the one defined in the sudoers
119# entry.
120# (string value)
121#rootwrap_config=/etc/nova/rootwrap.conf
122rootwrap_config=/etc/nova/rootwrap.conf
123
124# Explicitly specify the temporary working directory. (string value)
125#tempdir=<None>
126
127#
128# Determine if monkey patching should be applied.
129#
130# Related options:
131#
132# * ``monkey_patch_modules``: This must have values set for this option to
133# have any effect
134# (boolean value)
135#monkey_patch=false
136
137#
138# List of modules/decorators to monkey patch.
139#
140# This option allows you to patch a decorator for all functions in specified
141# modules.
142#
143# Possible values:
144#
145# * nova.compute.api:nova.notifications.notify_decorator
146# * nova.api.ec2.cloud:nova.notifications.notify_decorator
147# * [...]
148#
149# Related options:
150#
151# * ``monkey_patch``: This must be set to ``True`` for this option to
152# have any effect
153# (list value)
154#monkey_patch_modules=nova.compute.api:nova.notifications.notify_decorator
155
156#
157# Defines which driver to use for controlling virtualization.
158#
159# Possible values:
160#
161# * ``libvirt.LibvirtDriver``
162# * ``xenapi.XenAPIDriver``
163# * ``fake.FakeDriver``
164# * ``ironic.IronicDriver``
165# * ``vmwareapi.VMwareVCDriver``
166# * ``hyperv.HyperVDriver``
167# (string value)
168#compute_driver=<None>
169compute_driver = {{ compute.get('compute_driver', 'libvirt.LibvirtDriver') }}
170
171#
172# Allow destination machine to match source for resize. Useful when
173# testing in single-host environments. By default it is not allowed
174# to resize to the same host. Setting this option to true will add
175# the same host to the destination options.
176# (boolean value)
177#allow_resize_to_same_host=false
178allow_resize_to_same_host=true
179
180#
181# Availability zone to use when user doesn't specify one.
182#
183# This option is used by the scheduler to determine which availability
184# zone to place a new VM instance into if the user did not specify one
185# at the time of VM boot request.
186#
187# Possible values:
188#
189# * Any string representing an availability zone name
190# * Default value is None.
191# (string value)
192#default_schedule_zone=<None>
193
194#
195# Image properties that should not be inherited from the instance
196# when taking a snapshot.
197#
198# This option gives an opportunity to select which image-properties
199# should not be inherited by newly created snapshots.
200#
201# Possible values:
202#
203# * A list whose item is an image property. Usually only the image
204# properties that are only needed by base images can be included
205# here, since the snapshots that are created from the base images
206# doesn't need them.
207# * Default list: ['cache_in_nova', 'bittorrent']
208# (list value)
209#non_inheritable_image_properties=cache_in_nova,bittorrent
210
211# DEPRECATED:
212# This option is used to decide when an image should have no external
213# ramdisk or kernel. By default this is set to 'nokernel', so when an
214# image is booted with the property 'kernel_id' with the value
215# 'nokernel', Nova assumes the image doesn't require an external kernel
216# and ramdisk.
217# (string value)
218# This option is deprecated for removal since 15.0.0.
219# Its value may be silently ignored in the future.
220# Reason:
221# When an image is booted with the property 'kernel_id' with the value
222# 'nokernel', Nova assumes the image doesn't require an external kernel and
223# ramdisk. This option allows user to change the API behaviour which should not
224# be allowed and this value "nokernel" should be hard coded.
225#null_kernel=nokernel
226
227# DEPRECATED:
228# When creating multiple instances with a single request using the
229# os-multiple-create API extension, this template will be used to build
230# the display name for each instance. The benefit is that the instances
231# end up with different hostnames. Example display names when creating
232# two VM's: name-1, name-2.
233#
234# Possible values:
235#
236# * Valid keys for the template are: name, uuid, count.
237# (string value)
238# This option is deprecated for removal since 15.0.0.
239# Its value may be silently ignored in the future.
240# Reason:
241# This config changes API behaviour. All changes in API behaviour should be
242# discoverable.
243#multi_instance_display_name_template=%(name)s-%(count)d
244
245#
246# Maximum number of devices that will result in a local image being
247# created on the hypervisor node.
248#
249# A negative number means unlimited. Setting max_local_block_devices
250# to 0 means that any request that attempts to create a local disk
251# will fail. This option is meant to limit the number of local discs
252# (so root local disc that is the result of --image being used, and
253# any other ephemeral and swap disks). 0 does not mean that images
254# will be automatically converted to volumes and boot instances from
255# volumes - it just means that all requests that attempt to create a
256# local disk will fail.
257#
258# Possible values:
259#
260# * 0: Creating a local disk is not allowed.
261# * Negative number: Allows unlimited number of local discs.
262# * Positive number: Allows only these many number of local discs.
263# (Default value is 3).
264# (integer value)
265#max_local_block_devices=3
266
267#
268# A list of monitors that can be used for getting compute metrics.
269# You can use the alias/name from the setuptools entry points for
270# nova.compute.monitors.* namespaces. If no namespace is supplied,
271# the "cpu." namespace is assumed for backwards-compatibility.
272#
273# Possible values:
274#
275# * An empty list will disable the feature(Default).
276# * An example value that would enable both the CPU and NUMA memory
277# bandwidth monitors that used the virt driver variant:
278# ["cpu.virt_driver", "numa_mem_bw.virt_driver"]
279# (list value)
280#compute_monitors =
281
282#
283# The default format an ephemeral_volume will be formatted with on creation.
284#
285# Possible values:
286#
287# * ``ext2``
288# * ``ext3``
289# * ``ext4``
290# * ``xfs``
291# * ``ntfs`` (only for Windows guests)
292# (string value)
293#default_ephemeral_format=<None>
294
295#
296# Determine if instance should boot or fail on VIF plugging timeout.
297#
298# Nova sends a port update to Neutron after an instance has been scheduled,
299# providing Neutron with the necessary information to finish setup of the port.
300# Once completed, Neutron notifies Nova that it has finished setting up the
301# port, at which point Nova resumes the boot of the instance since network
302# connectivity is now supposed to be present. A timeout will occur if the reply
303# is not received after a given interval.
304#
305# This option determines what Nova does when the VIF plugging timeout event
306# happens. When enabled, the instance will error out. When disabled, the
307# instance will continue to boot on the assumption that the port is ready.
308#
309# Possible values:
310#
311# * True: Instances should fail after VIF plugging timeout
312# * False: Instances should continue booting after VIF plugging timeout
313# (boolean value)
314#vif_plugging_is_fatal=true
315vif_plugging_is_fatal=true
316
317#
318# Timeout for Neutron VIF plugging event message arrival.
319#
320# Number of seconds to wait for Neutron vif plugging events to
321# arrive before continuing or failing (see 'vif_plugging_is_fatal').
322#
323# Related options:
324#
325# * vif_plugging_is_fatal - If ``vif_plugging_timeout`` is set to zero and
326# ``vif_plugging_is_fatal`` is False, events should not be expected to
327# arrive at all.
328# (integer value)
329# Minimum value: 0
330#vif_plugging_timeout=300
331vif_plugging_timeout=300
332
333# Path to '/etc/network/interfaces' template.
334#
335# The path to a template file for the '/etc/network/interfaces'-style file,
336# which
337# will be populated by nova and subsequently used by cloudinit. This provides a
338# method to configure network connectivity in environments without a DHCP
339# server.
340#
341# The template will be rendered using Jinja2 template engine, and receive a
342# top-level key called ``interfaces``. This key will contain a list of
343# dictionaries, one for each interface.
344#
345# Refer to the cloudinit documentaion for more information:
346#
347# https://cloudinit.readthedocs.io/en/latest/topics/datasources.html
348#
349# Possible values:
350#
351# * A path to a Jinja2-formatted template for a Debian '/etc/network/interfaces'
352# file. This applies even if using a non Debian-derived guest.
353#
354# Related options:
355#
356# * ``flat_inject``: This must be set to ``True`` to ensure nova embeds network
357# configuration information in the metadata provided through the config drive.
358# (string value)
359#injected_network_template=$pybasedir/nova/virt/interfaces.template
360
361#
362# The image preallocation mode to use.
363#
364# Image preallocation allows storage for instance images to be allocated up
365# front
366# when the instance is initially provisioned. This ensures immediate feedback is
367# given if enough space isn't available. In addition, it should significantly
368# improve performance on writes to new blocks and may even improve I/O
369# performance to prewritten blocks due to reduced fragmentation.
370#
371# Possible values:
372#
373# * "none" => no storage provisioning is done up front
374# * "space" => storage is fully allocated at instance start
375# (string value)
376# Allowed values: none, space
377#preallocate_images=none
Michael Polenchuk159c2542018-06-09 15:31:51 +0400378{%- if compute.preallocate_images is defined %}
379preallocate_images = {{ compute.preallocate_images }}
380{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100381
382#
383# Enable use of copy-on-write (cow) images.
384#
385# QEMU/KVM allow the use of qcow2 as backing files. By disabling this,
386# backing files will not be used.
387# (boolean value)
388#use_cow_images=true
389{%- if compute.image is defined and compute.image.use_cow is defined %}
390use_cow_images = {{ compute.image.use_cow }}
391{%- endif %}
392
393#
394# Force conversion of backing images to raw format.
395#
396# Possible values:
397#
398# * True: Backing image files will be converted to raw image format
399# * False: Backing image files will not be converted
400#
401# Related options:
402#
403# * ``compute_driver``: Only the libvirt driver uses this option.
404# (boolean value)
405#force_raw_images=true
Oleksii Chuprynfeae06b2018-02-14 12:51:02 +0200406force_raw_images={{ compute.get('image', {}).get('force_raw', True)|lower }}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100407
408#
409# Name of the mkfs commands for ephemeral device.
410#
411# The format is <os_type>=<mkfs command>
412# (multi valued)
413#virt_mkfs =
414
415#
416# Enable resizing of filesystems via a block device.
417#
418# If enabled, attempt to resize the filesystem by accessing the image over a
419# block device. This is done by the host and may not be necessary if the image
420# contains a recent version of cloud-init. Possible mechanisms require the nbd
421# driver (for qcow and raw), or loop (for raw).
422# (boolean value)
423#resize_fs_using_block_device=false
424
425# Amount of time, in seconds, to wait for NBD device start up. (integer value)
426# Minimum value: 0
427#timeout_nbd=10
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +0200428{%- if compute.timeout_nbd is defined %}
429timeout_nbd = {{ compute.timeout_nbd }}
430{%- endif %}
431
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100432
433#
434# Location of cached images.
435#
436# This is NOT the full path - just a folder name relative to '$instances_path'.
437# For per-compute-host cached images, set to '_base_$my_ip'
438# (string value)
439#image_cache_subdirectory_name=_base
440
441# Should unused base images be removed? (boolean value)
442#remove_unused_base_images=true
443
444#
445# Unused unresized base images younger than this will not be removed.
446# (integer value)
447#remove_unused_original_minimum_age_seconds=86400
448remove_unused_original_minimum_age_seconds=86400
449
450#
451# Generic property to specify the pointer type.
452#
453# Input devices allow interaction with a graphical framebuffer. For
454# example to provide a graphic tablet for absolute cursor movement.
455#
456# If set, the 'hw_pointer_model' image property takes precedence over
457# this configuration option.
458#
459# Possible values:
460#
461# * None: Uses default behavior provided by drivers (mouse on PS2 for
462# libvirt x86)
463# * ps2mouse: Uses relative movement. Mouse connected by PS2
464# * usbtablet: Uses absolute movement. Tablet connect by USB
465#
466# Related options:
467#
468# * usbtablet must be configured with VNC enabled or SPICE enabled and SPICE
469# agent disabled. When used with libvirt the instance mode should be
470# configured as HVM.
471# (string value)
472# Allowed values: <None>, ps2mouse, usbtablet
473#pointer_model=usbtablet
474
475#
476# Defines which physical CPUs (pCPUs) can be used by instance
477# virtual CPUs (vCPUs).
478#
479# Possible values:
480#
481# * A comma-separated list of physical CPU numbers that virtual CPUs can be
482# allocated to by default. Each element should be either a single CPU number,
483# a range of CPU numbers, or a caret followed by a CPU number to be
484# excluded from a previous range. For example:
485#
486# vcpu_pin_set = "4-12,^8,15"
487# (string value)
488#vcpu_pin_set=<None>
489{%- if compute.vcpu_pin_set is defined %}
490vcpu_pin_set={{ compute.vcpu_pin_set }}
491{%- endif %}
492
493#
494# Number of huge/large memory pages to reserved per NUMA host cell.
495#
496# Possible values:
497#
498# * A list of valid key=value which reflect NUMA node ID, page size
499# (Default unit is KiB) and number of pages to be reserved.
500#
501# reserved_huge_pages = node:0,size:2048,count:64
502# reserved_huge_pages = node:1,size:1GB,count:1
503#
504# In this example we are reserving on NUMA node 0 64 pages of 2MiB
505# and on NUMA node 1 1 page of 1GiB.
506# (dict value)
507#reserved_huge_pages=<None>
508
509#
510# Amount of disk resources in MB to make them always available to host. The
511# disk usage gets reported back to the scheduler from nova-compute running
512# on the compute nodes. To prevent the disk resources from being considered
513# as available, this option can be used to reserve disk space for that host.
514#
515# Possible values:
516#
517# * Any positive integer representing amount of disk in MB to reserve
518# for the host.
519# (integer value)
520# Minimum value: 0
521#reserved_host_disk_mb=0
522
523#
524# Amount of memory in MB to reserve for the host so that it is always available
525# to host processes. The host resources usage is reported back to the scheduler
526# continuously from nova-compute running on the compute node. To prevent the
527# host
528# memory from being considered as available, this option is used to reserve
529# memory for the host.
530#
531# Possible values:
532#
533# * Any positive integer representing amount of memory in MB to reserve
534# for the host.
535# (integer value)
536# Minimum value: 0
537#reserved_host_memory_mb=512
538reserved_host_memory_mb = {{ compute.get('reserved_host_memory_mb', '512') }}
539
540#
541# This option helps you specify virtual CPU to physical CPU allocation ratio.
542#
543# From Ocata (15.0.0) this is used to influence the hosts selected by
544# the Placement API. Note that when Placement is used, the CoreFilter
545# is redundant, because the Placement API will have already filtered
546# out hosts that would have failed the CoreFilter.
547#
548# This configuration specifies ratio for CoreFilter which can be set
549# per compute node. For AggregateCoreFilter, it will fall back to this
550# configuration value if no per-aggregate setting is found.
551#
552# NOTE: This can be set per-compute, or if set to 0.0, the value
553# set on the scheduler node(s) or compute node(s) will be used
554# and defaulted to 16.0'.
555#
556# Possible values:
557#
558# * Any valid positive integer or float value
559# (floating point value)
560# Minimum value: 0
561{%- if compute.cpu_allocation_ratio is defined %}
562cpu_allocation_ratio = {{ compute.cpu_allocation_ratio }}
563{%- else %}
564#cpu_allocation_ratio=0.0
565{%- endif %}
566
567#
568# This option helps you specify virtual RAM to physical RAM
569# allocation ratio.
570#
571# From Ocata (15.0.0) this is used to influence the hosts selected by
572# the Placement API. Note that when Placement is used, the RamFilter
573# is redundant, because the Placement API will have already filtered
574# out hosts that would have failed the RamFilter.
575#
576# This configuration specifies ratio for RamFilter which can be set
577# per compute node. For AggregateRamFilter, it will fall back to this
578# configuration value if no per-aggregate setting found.
579#
580# NOTE: This can be set per-compute, or if set to 0.0, the value
581# set on the scheduler node(s) or compute node(s) will be used and
582# defaulted to 1.5.
583#
584# Possible values:
585#
586# * Any valid positive integer or float value
587# (floating point value)
588# Minimum value: 0
589{%- if compute.ram_allocation_ratio is defined %}
590ram_allocation_ratio = {{ compute.ram_allocation_ratio }}
591{%- else %}
592#ram_allocation_ratio=0.0
593{%- endif %}
594
595#
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100596# This option helps you specify virtual disk to physical disk
597# allocation ratio.
598#
599# From Ocata (15.0.0) this is used to influence the hosts selected by
600# the Placement API. Note that when Placement is used, the DiskFilter
601# is redundant, because the Placement API will have already filtered
602# out hosts that would have failed the DiskFilter.
603#
604# A ratio greater than 1.0 will result in over-subscription of the
605# available physical disk, which can be useful for more
606# efficiently packing instances created with images that do not
607# use the entire virtual disk, such as sparse or compressed
608# images. It can be set to a value between 0.0 and 1.0 in order
609# to preserve a percentage of the disk for uses other than
610# instances.
611#
612# NOTE: This can be set per-compute, or if set to 0.0, the value
613# set on the scheduler node(s) or compute node(s) will be used and
614# defaulted to 1.0'.
615#
616# Possible values:
617#
618# * Any valid positive integer or float value
619# (floating point value)
620# Minimum value: 0
Dmitry Ukovd8a62ca2019-03-05 20:51:10 +0400621{%- if compute.disk_allocation_ratio is defined %}
622disk_allocation_ratio = {{ compute.disk_allocation_ratio }}
623{%- else %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100624#disk_allocation_ratio=0.0
Dmitry Ukovd8a62ca2019-03-05 20:51:10 +0400625{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100626
627#
628# Console proxy host to be used to connect to instances on this host. It is the
629# publicly visible name for the console host.
630#
631# Possible values:
632#
633# * Current hostname (default) or any string representing hostname.
634# (string value)
635#console_host=socket.gethostname()
636
637#
638# Name of the network to be used to set access IPs for instances. If there are
639# multiple IPs to choose from, an arbitrary one will be chosen.
640#
641# Possible values:
642#
643# * None (default)
644# * Any string representing network name.
645# (string value)
646#default_access_ip_network_name=<None>
647
648#
649# Whether to batch up the application of IPTables rules during a host restart
650# and apply all at the end of the init phase.
651# (boolean value)
652#defer_iptables_apply=false
653
654#
655# Specifies where instances are stored on the hypervisor's disk.
656# It can point to locally attached storage or a directory on NFS.
657#
658# Possible values:
659#
660# * $state_path/instances where state_path is a config option that specifies
661# the top-level directory for maintaining nova's state. (default) or
662# Any string representing directory path.
663# (string value)
664#instances_path=$state_path/instances
665instances_path = {{ compute.instances_path }}
666
667#
668# This option enables periodic compute.instance.exists notifications. Each
669# compute node must be configured to generate system usage data. These
670# notifications are consumed by OpenStack Telemetry service.
671# (boolean value)
672#instance_usage_audit=false
673
674#
675# Maximum number of 1 second retries in live_migration. It specifies number
676# of retries to iptables when it complains. It happens when an user continuously
677# sends live-migration request to same host leading to concurrent request
678# to iptables.
679#
680# Possible values:
681#
682# * Any positive integer representing retry count.
683# (integer value)
684# Minimum value: 0
685#live_migration_retry_count=30
686
687#
688# This option specifies whether to start guests that were running before the
689# host rebooted. It ensures that all of the instances on a Nova compute node
690# resume their state each time the compute node boots or restarts.
691# (boolean value)
692#resume_guests_state_on_host_boot=false
693resume_guests_state_on_host_boot={{ compute.get('resume_guests_state_on_host_boot', True) }}
694
695#
696# Number of times to retry network allocation. It is required to attempt network
697# allocation retries if the virtual interface plug fails.
698#
699# Possible values:
700#
701# * Any positive integer representing retry count.
702# (integer value)
703# Minimum value: 0
704#network_allocate_retries=0
705
706#
707# Limits the maximum number of instance builds to run concurrently by
708# nova-compute. Compute service can attempt to build an infinite number of
709# instances, if asked to do so. This limit is enforced to avoid building
710# unlimited instance concurrently on a compute node. This value can be set
711# per compute node.
712#
713# Possible Values:
714#
715# * 0 : treated as unlimited.
716# * Any positive integer representing maximum concurrent builds.
717# (integer value)
718# Minimum value: 0
719#max_concurrent_builds=10
720
721#
722# Maximum number of live migrations to run concurrently. This limit is enforced
723# to avoid outbound live migrations overwhelming the host/network and causing
724# failures. It is not recommended that you change this unless you are very sure
725# that doing so is safe and stable in your environment.
726#
727# Possible values:
728#
729# * 0 : treated as unlimited.
730# * Negative value defaults to 0.
731# * Any positive integer representing maximum number of live migrations
732# to run concurrently.
733# (integer value)
734#max_concurrent_live_migrations=1
735{%- if compute.max_concurrent_live_migrations is defined %}
736max_concurrent_live_migrations = {{ compute.max_concurrent_live_migrations }}
737{%- endif %}
738
739#
740# Number of times to retry block device allocation on failures. Starting with
741# Liberty, Cinder can use image volume cache. This may help with block device
742# allocation performance. Look at the cinder image_volume_cache_enabled
743# configuration option.
744#
745# Possible values:
746#
747# * 60 (default)
748# * If value is 0, then one attempt is made.
749# * Any negative value is treated as 0.
750# * For any value > 0, total attempts are (value + 1)
751# (integer value)
752#block_device_allocate_retries=60
Stehlik Lukasa1c8d1a2018-08-29 14:50:23 +0200753block_device_allocate_retries={{ compute.get('block_device_allocate_retries', '600') }}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100754
755#
756# Number of greenthreads available for use to sync power states.
757#
758# This option can be used to reduce the number of concurrent requests
759# made to the hypervisor or system with real instance power states
760# for performance reasons, for example, with Ironic.
761#
762# Possible values:
763#
764# * Any positive integer representing greenthreads count.
765# (integer value)
766#sync_power_state_pool_size=1000
767
768#
769# Number of seconds to wait between runs of the image cache manager.
770#
771# Possible values:
772# * 0: run at the default rate.
773# * -1: disable
774# * Any other value
775# (integer value)
776# Minimum value: -1
777#image_cache_manager_interval=2400
778image_cache_manager_interval=0
779
780#
781# Interval to pull network bandwidth usage info.
782#
783# Not supported on all hypervisors. If a hypervisor doesn't support bandwidth
784# usage, it will not get the info in the usage events.
785#
786# Possible values:
787#
788# * 0: Will run at the default periodic interval.
789# * Any value < 0: Disables the option.
790# * Any positive integer in seconds.
791# (integer value)
792#bandwidth_poll_interval=600
793
794#
795# Interval to sync power states between the database and the hypervisor.
796#
797# The interval that Nova checks the actual virtual machine power state
798# and the power state that Nova has in its database. If a user powers
799# down their VM, Nova updates the API to report the VM has been
800# powered down. Should something turn on the VM unexpectedly,
801# Nova will turn the VM back off to keep the system in the expected
802# state.
803#
804# Possible values:
805#
806# * 0: Will run at the default periodic interval.
807# * Any value < 0: Disables the option.
808# * Any positive integer in seconds.
809#
810# Related options:
811#
812# * If ``handle_virt_lifecycle_events`` in workarounds_group is
813# false and this option is negative, then instances that get out
814# of sync between the hypervisor and the Nova database will have
815# to be synchronized manually.
816# (integer value)
817#sync_power_state_interval=600
818
819#
820# Interval between instance network information cache updates.
821#
822# Number of seconds after which each compute node runs the task of
823# querying Neutron for all of its instances networking information,
824# then updates the Nova db with that information. Nova will never
825# update it's cache if this option is set to 0. If we don't update the
826# cache, the metadata service and nova-api endpoints will be proxying
827# incorrect network data about the instance. So, it is not recommended
828# to set this option to 0.
829#
830# Possible values:
831#
832# * Any positive integer in seconds.
833# * Any value <=0 will disable the sync. This is not recommended.
834# (integer value)
835#heal_instance_info_cache_interval=60
836heal_instance_info_cache_interval = {{ compute.heal_instance_info_cache_interval }}
837
838#
839# Interval for reclaiming deleted instances.
840#
841# A value greater than 0 will enable SOFT_DELETE of instances.
842# This option decides whether the server to be deleted will be put into
843# the SOFT_DELETED state. If this value is greater than 0, the deleted
844# server will not be deleted immediately, instead it will be put into
845# a queue until it's too old (deleted time greater than the value of
846# reclaim_instance_interval). The server can be recovered from the
847# delete queue by using the restore action. If the deleted server remains
848# longer than the value of reclaim_instance_interval, it will be
849# deleted by a periodic task in the compute service automatically.
850#
851# Note that this option is read from both the API and compute nodes, and
852# must be set globally otherwise servers could be put into a soft deleted
853# state in the API and never actually reclaimed (deleted) on the compute
854# node.
855#
856# Possible values:
857#
858# * Any positive integer(in seconds) greater than 0 will enable
859# this option.
860# * Any value <=0 will disable the option.
861# (integer value)
862#reclaim_instance_interval=0
Machi Hoshinoe2b3cb32018-12-12 10:14:23 +0800863{%- if compute.reclaim_instance_interval is defined %}
864reclaim_instance_interval = {{ compute.reclaim_instance_interval }}
865{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100866
867#
868# Interval for gathering volume usages.
869#
870# This option updates the volume usage cache for every
871# volume_usage_poll_interval number of seconds.
872#
873# Possible values:
874#
875# * Any positive integer(in seconds) greater than 0 will enable
876# this option.
877# * Any value <=0 will disable the option.
878# (integer value)
879#volume_usage_poll_interval=0
880
881#
882# Interval for polling shelved instances to offload.
883#
884# The periodic task runs for every shelved_poll_interval number
885# of seconds and checks if there are any shelved instances. If it
886# finds a shelved instance, based on the 'shelved_offload_time' config
887# value it offloads the shelved instances. Check 'shelved_offload_time'
888# config option description for details.
889#
890# Possible values:
891#
892# * Any value <= 0: Disables the option.
893# * Any positive integer in seconds.
894#
895# Related options:
896#
897# * ``shelved_offload_time``
898# (integer value)
899#shelved_poll_interval=3600
900
901#
902# Time before a shelved instance is eligible for removal from a host.
903#
904# By default this option is set to 0 and the shelved instance will be
905# removed from the hypervisor immediately after shelve operation.
906# Otherwise, the instance will be kept for the value of
907# shelved_offload_time(in seconds) so that during the time period the
908# unshelve action will be faster, then the periodic task will remove
909# the instance from hypervisor after shelved_offload_time passes.
910#
911# Possible values:
912#
913# * 0: Instance will be immediately offloaded after being
914# shelved.
915# * Any value < 0: An instance will never offload.
916# * Any positive integer in seconds: The instance will exist for
917# the specified number of seconds before being offloaded.
918# (integer value)
919#shelved_offload_time=0
920
921#
922# Interval for retrying failed instance file deletes.
923#
924# This option depends on 'maximum_instance_delete_attempts'.
925# This option specifies how often to retry deletes whereas
926# 'maximum_instance_delete_attempts' specifies the maximum number
927# of retry attempts that can be made.
928#
929# Possible values:
930#
931# * 0: Will run at the default periodic interval.
932# * Any value < 0: Disables the option.
933# * Any positive integer in seconds.
934#
935# Related options:
936#
937# * ``maximum_instance_delete_attempts`` from instance_cleaning_opts
938# group.
939# (integer value)
940#instance_delete_interval=300
941
942#
943# Interval (in seconds) between block device allocation retries on failures.
944#
945# This option allows the user to specify the time interval between
946# consecutive retries. 'block_device_allocate_retries' option specifies
947# the maximum number of retries.
948#
949# Possible values:
950#
951# * 0: Disables the option.
952# * Any positive integer in seconds enables the option.
953#
954# Related options:
955#
956# * ``block_device_allocate_retries`` in compute_manager_opts group.
957# (integer value)
958# Minimum value: 0
959#block_device_allocate_retries_interval=3
Stehlik Lukasa1c8d1a2018-08-29 14:50:23 +0200960block_device_allocate_retries_interval={{ compute.get('block_device_allocate_retries_interval', '10') }}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +0100961
962#
963# Interval between sending the scheduler a list of current instance UUIDs to
964# verify that its view of instances is in sync with nova.
965#
966# If the CONF option 'scheduler_tracks_instance_changes' is
967# False, the sync calls will not be made. So, changing this option will
968# have no effect.
969#
970# If the out of sync situations are not very common, this interval
971# can be increased to lower the number of RPC messages being sent.
972# Likewise, if sync issues turn out to be a problem, the interval
973# can be lowered to check more frequently.
974#
975# Possible values:
976#
977# * 0: Will run at the default periodic interval.
978# * Any value < 0: Disables the option.
979# * Any positive integer in seconds.
980#
981# Related options:
982#
983# * This option has no impact if ``scheduler_tracks_instance_changes``
984# is set to False.
985# (integer value)
986#scheduler_instance_sync_interval=120
987
988#
989# Interval for updating compute resources.
990#
991# This option specifies how often the update_available_resources
992# periodic task should run. A number less than 0 means to disable the
993# task completely. Leaving this at the default of 0 will cause this to
994# run at the default periodic interval. Setting it to any positive
995# value will cause it to run at approximately that number of seconds.
996#
997# Possible values:
998#
999# * 0: Will run at the default periodic interval.
1000# * Any value < 0: Disables the option.
1001# * Any positive integer in seconds.
1002# (integer value)
1003#update_resources_interval=0
1004
1005#
1006# Time interval after which an instance is hard rebooted automatically.
1007#
1008# When doing a soft reboot, it is possible that a guest kernel is
1009# completely hung in a way that causes the soft reboot task
1010# to not ever finish. Setting this option to a time period in seconds
1011# will automatically hard reboot an instance if it has been stuck
1012# in a rebooting state longer than N seconds.
1013#
1014# Possible values:
1015#
1016# * 0: Disables the option (default).
1017# * Any positive integer in seconds: Enables the option.
1018# (integer value)
1019# Minimum value: 0
1020#reboot_timeout=0
1021
1022#
1023# Maximum time in seconds that an instance can take to build.
1024#
1025# If this timer expires, instance status will be changed to ERROR.
1026# Enabling this option will make sure an instance will not be stuck
1027# in BUILD state for a longer period.
1028#
1029# Possible values:
1030#
1031# * 0: Disables the option (default)
1032# * Any positive integer in seconds: Enables the option.
1033# (integer value)
1034# Minimum value: 0
1035#instance_build_timeout=0
1036
1037#
1038# Interval to wait before un-rescuing an instance stuck in RESCUE.
1039#
1040# Possible values:
1041#
1042# * 0: Disables the option (default)
1043# * Any positive integer in seconds: Enables the option.
1044# (integer value)
1045# Minimum value: 0
1046#rescue_timeout=0
1047
1048#
1049# Automatically confirm resizes after N seconds.
1050#
1051# Resize functionality will save the existing server before resizing.
1052# After the resize completes, user is requested to confirm the resize.
1053# The user has the opportunity to either confirm or revert all
1054# changes. Confirm resize removes the original server and changes
1055# server status from resized to active. Setting this option to a time
1056# period (in seconds) will automatically confirm the resize if the
1057# server is in resized state longer than that time.
1058#
1059# Possible values:
1060#
1061# * 0: Disables the option (default)
1062# * Any positive integer in seconds: Enables the option.
1063# (integer value)
1064# Minimum value: 0
1065#resize_confirm_window=0
1066
1067#
1068# Total time to wait in seconds for an instance toperform a clean
1069# shutdown.
1070#
1071# It determines the overall period (in seconds) a VM is allowed to
1072# perform a clean shutdown. While performing stop, rescue and shelve,
1073# rebuild operations, configuring this option gives the VM a chance
1074# to perform a controlled shutdown before the instance is powered off.
1075# The default timeout is 60 seconds.
1076#
1077# The timeout value can be overridden on a per image basis by means
1078# of os_shutdown_timeout that is an image metadata setting allowing
1079# different types of operating systems to specify how much time they
1080# need to shut down cleanly.
1081#
1082# Possible values:
1083#
1084# * Any positive integer in seconds (default value is 60).
1085# (integer value)
1086# Minimum value: 1
1087#shutdown_timeout=60
1088
1089#
1090# The compute service periodically checks for instances that have been
1091# deleted in the database but remain running on the compute node. The
1092# above option enables action to be taken when such instances are
1093# identified.
1094#
1095# Possible values:
1096#
1097# * reap: Powers down the instances and deletes them(default)
1098# * log: Logs warning message about deletion of the resource
1099# * shutdown: Powers down instances and marks them as non-
1100# bootable which can be later used for debugging/analysis
1101# * noop: Takes no action
1102#
1103# Related options:
1104#
1105# * running_deleted_instance_poll
1106# * running_deleted_instance_timeout
1107# (string value)
1108# Allowed values: noop, log, shutdown, reap
1109#running_deleted_instance_action=reap
1110
1111#
1112# Time interval in seconds to wait between runs for the clean up action.
1113# If set to 0, above check will be disabled. If "running_deleted_instance
1114# _action" is set to "log" or "reap", a value greater than 0 must be set.
1115#
1116# Possible values:
1117#
1118# * Any positive integer in seconds enables the option.
1119# * 0: Disables the option.
1120# * 1800: Default value.
1121#
1122# Related options:
1123#
1124# * running_deleted_instance_action
1125# (integer value)
1126#running_deleted_instance_poll_interval=1800
1127
1128#
1129# Time interval in seconds to wait for the instances that have
1130# been marked as deleted in database to be eligible for cleanup.
1131#
1132# Possible values:
1133#
1134# * Any positive integer in seconds(default is 0).
1135#
1136# Related options:
1137#
1138# * "running_deleted_instance_action"
1139# (integer value)
1140#running_deleted_instance_timeout=0
1141
1142#
1143# The number of times to attempt to reap an instance's files.
1144#
1145# This option specifies the maximum number of retry attempts
1146# that can be made.
1147#
1148# Possible values:
1149#
1150# * Any positive integer defines how many attempts are made.
1151# * Any value <=0 means no delete attempts occur, but you should use
1152# ``instance_delete_interval`` to disable the delete attempts.
1153#
1154# Related options:
1155# * ``instance_delete_interval`` in interval_opts group can be used to disable
1156# this option.
1157# (integer value)
1158#maximum_instance_delete_attempts=5
1159
1160# DEPRECATED:
1161# This is the message queue topic that the compute service 'listens' on. It is
1162# used when the compute service is started up to configure the queue, and
1163# whenever an RPC call to the compute service is made.
1164#
1165# Possible values:
1166#
1167# * Any string, but there is almost never any reason to ever change this value
1168# from its default of 'compute'.
1169# (string value)
1170# This option is deprecated for removal since 15.0.0.
1171# Its value may be silently ignored in the future.
1172# Reason:
1173# There is no need to let users choose the RPC topic for all services - there
1174# is little gain from this. Furthermore, it makes it really easy to break Nova
1175# by using this option.
1176#compute_topic=compute
1177
1178#
1179# Sets the scope of the check for unique instance names.
1180#
1181# The default doesn't check for unique names. If a scope for the name check is
1182# set, a launch of a new instance or an update of an existing instance with a
1183# duplicate name will result in an ''InstanceExists'' error. The uniqueness is
1184# case-insensitive. Setting this option can increase the usability for end
1185# users as they don't have to distinguish among instances with the same name
1186# by their IDs.
1187#
1188# Possible values:
1189#
1190# * '': An empty value means that no uniqueness check is done and duplicate
1191# names are possible.
1192# * "project": The instance name check is done only for instances within the
1193# same project.
1194# * "global": The instance name check is done for all instances regardless of
1195# the project.
1196# (string value)
1197# Allowed values: '', project, global
1198#osapi_compute_unique_server_name_scope =
1199
1200#
1201# Enable new services on this host automatically.
1202#
1203# When a new service (for example "nova-compute") starts up, it gets
1204# registered in the database as an enabled service. Sometimes it can be useful
1205# to register new services in disabled state and then enabled them at a later
1206# point in time. This option can set this behavior for all services per host.
1207#
1208# Possible values:
1209#
1210# * ``True``: Each new service is enabled as soon as it registers itself.
1211# * ``False``: Services must be enabled via a REST API call or with the CLI
1212# with ``nova service-enable <hostname> <binary>``, otherwise they are not
1213# ready to use.
1214# (boolean value)
1215#enable_new_services=true
1216
1217#
1218# Template string to be used to generate instance names.
1219#
1220# This template controls the creation of the database name of an instance. This
1221# is *not* the display name you enter when creating an instance (via Horizon
1222# or CLI). For a new deployment it is advisable to change the default value
1223# (which uses the database autoincrement) to another value which makes use
1224# of the attributes of an instance, like ``instance-%(uuid)s``. If you
1225# already have instances in your deployment when you change this, your
1226# deployment will break.
1227#
1228# Possible values:
1229#
1230# * A string which either uses the instance database ID (like the
1231# default)
1232# * A string with a list of named database columns, for example ``%(id)d``
1233# or ``%(uuid)s`` or ``%(hostname)s``.
1234#
1235# Related options:
1236#
1237# * not to be confused with: ``multi_instance_display_name_template``
1238# (string value)
1239#instance_name_template=instance-%08x
1240
1241#
1242# Number of times to retry live-migration before failing.
1243#
1244# Possible values:
1245#
1246# * If == -1, try until out of hosts (default)
1247# * If == 0, only try once, no retries
1248# * Integer greater than 0
1249# (integer value)
1250# Minimum value: -1
1251#migrate_max_retries=-1
1252
1253#
1254# Configuration drive format
1255#
1256# Configuration drive format that will contain metadata attached to the
1257# instance when it boots.
1258#
1259# Possible values:
1260#
1261# * iso9660: A file system image standard that is widely supported across
1262# operating systems. NOTE: Mind the libvirt bug
1263# (https://bugs.launchpad.net/nova/+bug/1246201) - If your hypervisor
1264# driver is libvirt, and you want live migrate to work without shared storage,
1265# then use VFAT.
1266# * vfat: For legacy reasons, you can configure the configuration drive to
1267# use VFAT format instead of ISO 9660.
1268#
1269# Related options:
1270#
1271# * This option is meaningful when one of the following alternatives occur:
1272# 1. force_config_drive option set to 'true'
1273# 2. the REST API call to create the instance contains an enable flag for
1274# config drive option
1275# 3. the image used to create the instance requires a config drive,
1276# this is defined by img_config_drive property for that image.
1277# * A compute node running Hyper-V hypervisor can be configured to attach
1278# configuration drive as a CD drive. To attach the configuration drive as a CD
1279# drive, set config_drive_cdrom option at hyperv section, to true.
1280# (string value)
1281# Allowed values: iso9660, vfat
1282#config_drive_format=iso9660
1283config_drive_format={{ compute.get('config_drive_format', compute.get('config_drive', {}).get('format', 'vfat')) }}
1284
1285#
1286# Force injection to take place on a config drive
1287#
1288# When this option is set to true configuration drive functionality will be
1289# forced enabled by default, otherwise user can still enable configuration
1290# drives via the REST API or image metadata properties.
1291#
1292# Possible values:
1293#
1294# * True: Force to use of configuration drive regardless the user's input in the
1295# REST API call.
1296# * False: Do not force use of configuration drive. Config drives can still be
1297# enabled via the REST API or image metadata properties.
1298#
1299# Related options:
1300#
1301# * Use the 'mkisofs_cmd' flag to set the path where you install the
1302# genisoimage program. If genisoimage is in same path as the
1303# nova-compute service, you do not need to set this flag.
1304# * To use configuration drive with Hyper-V, you must set the
1305# 'mkisofs_cmd' value to the full path to an mkisofs.exe installation.
1306# Additionally, you must set the qemu_img_cmd value in the hyperv
1307# configuration section to the full path to an qemu-img command
1308# installation.
1309# (boolean value)
1310#force_config_drive=false
1311force_config_drive={{ compute.get('config_drive', {}).get('forced', True)|lower }}
1312
1313#
1314# Name or path of the tool used for ISO image creation
1315#
1316# Use the mkisofs_cmd flag to set the path where you install the genisoimage
1317# program. If genisoimage is on the system path, you do not need to change
1318# the default value.
1319#
1320# To use configuration drive with Hyper-V, you must set the mkisofs_cmd value
1321# to the full path to an mkisofs.exe installation. Additionally, you must set
1322# the qemu_img_cmd value in the hyperv configuration section to the full path
1323# to an qemu-img command installation.
1324#
1325# Possible values:
1326#
1327# * Name of the ISO image creator program, in case it is in the same directory
1328# as the nova-compute service
1329# * Path to ISO image creator program
1330#
1331# Related options:
1332#
1333# * This option is meaningful when config drives are enabled.
1334# * To use configuration drive with Hyper-V, you must set the qemu_img_cmd
1335# value in the hyperv configuration section to the full path to an qemu-img
1336# command installation.
1337# (string value)
1338#mkisofs_cmd=genisoimage
1339
1340# DEPRECATED:
1341# nova-console-proxy is used to set up multi-tenant VM console access.
1342# This option allows pluggable driver program for the console session
1343# and represents driver to use for the console proxy.
1344#
1345# Possible values:
1346#
1347# * A string representing fully classified class name of console driver.
1348# (string value)
1349# This option is deprecated for removal since 15.0.0.
1350# Its value may be silently ignored in the future.
1351# Reason:
1352# This option no longer does anything. Previously this option had only two
1353# valid,
1354# in-tree values: nova.console.xvp.XVPConsoleProxy and
1355# nova.console.fake.FakeConsoleProxy. The latter of these was only used in tests
1356# and has since been replaced.
1357#console_driver=nova.console.xvp.XVPConsoleProxy
1358
1359# DEPRECATED:
1360# Represents the message queue topic name used by nova-console
1361# service when communicating via the AMQP server. The Nova API uses a message
1362# queue to communicate with nova-console to retrieve a console URL for that
1363# host.
1364#
1365# Possible values:
1366#
1367# * A string representing topic exchange name
1368# (string value)
1369# This option is deprecated for removal since 15.0.0.
1370# Its value may be silently ignored in the future.
1371# Reason:
1372# There is no need to let users choose the RPC topic for all services - there
1373# is little gain from this. Furthermore, it makes it really easy to break Nova
1374# by using this option.
1375#console_topic=console
1376
1377# DEPRECATED:
1378# This option allows you to change the message topic used by nova-consoleauth
1379# service when communicating via the AMQP server. Nova Console Authentication
1380# server authenticates nova consoles. Users can then access their instances
1381# through VNC clients. The Nova API service uses a message queue to
1382# communicate with nova-consoleauth to get a VNC console.
1383#
1384# Possible Values:
1385#
1386# * 'consoleauth' (default) or Any string representing topic exchange name.
1387# (string value)
1388# This option is deprecated for removal since 15.0.0.
1389# Its value may be silently ignored in the future.
1390# Reason:
1391# There is no need to let users choose the RPC topic for all services - there
1392# is little gain from this. Furthermore, it makes it really easy to break Nova
1393# by using this option.
1394#consoleauth_topic=consoleauth
1395
1396# DEPRECATED: The driver to use for database access (string value)
1397# This option is deprecated for removal since 13.0.0.
1398# Its value may be silently ignored in the future.
1399#db_driver=nova.db
1400
1401# DEPRECATED:
1402# Default flavor to use for the EC2 API only.
1403# The Nova API does not support a default flavor.
1404# (string value)
1405# This option is deprecated for removal since 14.0.0.
1406# Its value may be silently ignored in the future.
1407# Reason: The EC2 API is deprecated.
1408#default_flavor=m1.small
1409
1410#
1411# Default pool for floating IPs.
1412#
1413# This option specifies the default floating IP pool for allocating floating
1414# IPs.
1415#
1416# While allocating a floating ip, users can optionally pass in the name of the
1417# pool they want to allocate from, otherwise it will be pulled from the
1418# default pool.
1419#
1420# If this option is not set, then 'nova' is used as default floating pool.
1421#
1422# Possible values:
1423#
1424# * Any string representing a floating IP pool name
1425# (string value)
1426#default_floating_pool=nova
1427
1428# DEPRECATED:
1429# Autoassigning floating IP to VM
1430#
1431# When set to True, floating IP is auto allocated and associated
1432# to the VM upon creation.
1433#
1434# Related options:
1435#
1436# * use_neutron: this options only works with nova-network.
1437# (boolean value)
1438# This option is deprecated for removal since 15.0.0.
1439# Its value may be silently ignored in the future.
1440# Reason:
1441# nova-network is deprecated, as are any related configuration options.
1442#auto_assign_floating_ip=false
1443
1444# DEPRECATED:
1445# Full class name for the DNS Manager for floating IPs.
1446#
1447# This option specifies the class of the driver that provides functionality
1448# to manage DNS entries associated with floating IPs.
1449#
1450# When a user adds a DNS entry for a specified domain to a floating IP,
1451# nova will add a DNS entry using the specified floating DNS driver.
1452# When a floating IP is deallocated, its DNS entry will automatically be
1453# deleted.
1454#
1455# Possible values:
1456#
1457# * Full Python path to the class to be used
1458#
1459# Related options:
1460#
1461# * use_neutron: this options only works with nova-network.
1462# (string value)
1463# This option is deprecated for removal since 15.0.0.
1464# Its value may be silently ignored in the future.
1465# Reason:
1466# nova-network is deprecated, as are any related configuration options.
1467#floating_ip_dns_manager=nova.network.noop_dns_driver.NoopDNSDriver
1468
1469# DEPRECATED:
1470# Full class name for the DNS Manager for instance IPs.
1471#
1472# This option specifies the class of the driver that provides functionality
1473# to manage DNS entries for instances.
1474#
1475# On instance creation, nova will add DNS entries for the instance name and
1476# id, using the specified instance DNS driver and domain. On instance deletion,
1477# nova will remove the DNS entries.
1478#
1479# Possible values:
1480#
1481# * Full Python path to the class to be used
1482#
1483# Related options:
1484#
1485# * use_neutron: this options only works with nova-network.
1486# (string value)
1487# This option is deprecated for removal since 15.0.0.
1488# Its value may be silently ignored in the future.
1489# Reason:
1490# nova-network is deprecated, as are any related configuration options.
1491#instance_dns_manager=nova.network.noop_dns_driver.NoopDNSDriver
1492
1493# DEPRECATED:
1494# If specified, Nova checks if the availability_zone of every instance matches
1495# what the database says the availability_zone should be for the specified
1496# dns_domain.
1497#
1498# Related options:
1499#
1500# * use_neutron: this options only works with nova-network.
1501# (string value)
1502# This option is deprecated for removal since 15.0.0.
1503# Its value may be silently ignored in the future.
1504# Reason:
1505# nova-network is deprecated, as are any related configuration options.
1506#instance_dns_domain =
1507
1508#
1509# Abstracts out IPv6 address generation to pluggable backends.
1510#
1511# nova-network can be put into dual-stack mode, so that it uses
1512# both IPv4 and IPv6 addresses. In dual-stack mode, by default, instances
1513# acquire IPv6 global unicast addresses with the help of stateless address
1514# auto-configuration mechanism.
1515#
1516# Related options:
1517#
1518# * use_neutron: this option only works with nova-network.
1519# * use_ipv6: this option only works if ipv6 is enabled for nova-network.
1520# (string value)
1521# Allowed values: rfc2462, account_identifier
1522#ipv6_backend=rfc2462
1523
1524#
1525# The IP address which the host is using to connect to the management network.
1526#
1527# Possible values:
1528#
1529# * String with valid IP address. Default is IPv4 address of this host.
1530#
1531# Related options:
1532#
1533# * metadata_host
1534# * my_block_storage_ip
1535# * routing_source_ip
1536# * vpn_ip
1537# (string value)
1538#my_ip=10.89.104.70
1539{%- if compute.my_ip is defined %}
1540my_ip={{ compute.my_ip }}
1541{%- endif %}
1542
1543#
1544# The IP address which is used to connect to the block storage network.
1545#
1546# Possible values:
1547#
1548# * String with valid IP address. Default is IP address of this host.
1549#
1550# Related options:
1551#
1552# * my_ip - if my_block_storage_ip is not set, then my_ip value is used.
1553# (string value)
1554#my_block_storage_ip=$my_ip
1555
1556#
1557# Hostname, FQDN or IP address of this host. Must be valid within AMQP key.
1558#
1559# Possible values:
1560#
1561# * String with hostname, FQDN or IP address. Default is hostname of this host.
1562# (string value)
1563#host=lcy01-22
1564{%- if compute.host is defined %}
1565host={{ compute.host }}
1566{%- endif %}
1567
1568#
1569# Assign IPv6 and IPv4 addresses when creating instances.
1570#
1571# Related options:
1572#
1573# * use_neutron: this only works with nova-network.
1574# (boolean value)
1575#use_ipv6=false
1576
1577#
1578# This option is a list of full paths to one or more configuration files for
1579# dhcpbridge. In most cases the default path of '/etc/nova/nova-dhcpbridge.conf'
1580# should be sufficient, but if you have special needs for configuring
1581# dhcpbridge,
1582# you can change or add to this list.
1583#
1584# Possible values
1585#
1586# A list of strings, where each string is the full path to a dhcpbridge
1587# configuration file.
1588# (multi valued)
1589dhcpbridge_flagfile=/etc/nova/nova.conf
1590
1591#
1592# The location where the network configuration files will be kept. The default
1593# is
1594# the 'networks' directory off of the location where nova's Python module is
1595# installed.
1596#
1597# Possible values
1598#
1599# A string containing the full path to the desired configuration directory
1600# (string value)
1601#networks_path=$state_path/networks
1602
1603#
1604# This is the name of the network interface for public IP addresses. The default
1605# is 'eth0'.
1606#
1607# Possible values:
1608#
1609# Any string representing a network interface name
1610# (string value)
1611#public_interface=eth0
1612
1613#
1614# The location of the binary nova-dhcpbridge. By default it is the binary named
1615# 'nova-dhcpbridge' that is installed with all the other nova binaries.
1616#
1617# Possible values:
1618#
1619# Any string representing the full path to the binary for dhcpbridge
1620# (string value)
1621dhcpbridge=/usr/bin/nova-dhcpbridge
1622
1623#
1624# This is the public IP address of the network host. It is used when creating a
1625# SNAT rule.
1626#
1627# Possible values:
1628#
1629# Any valid IP address
1630#
1631# Related options:
1632#
1633# force_snat_range
1634# (string value)
1635#routing_source_ip=$my_ip
1636
1637#
1638# The lifetime of a DHCP lease, in seconds. The default is 86400 (one day).
1639#
1640# Possible values:
1641#
1642# Any positive integer value.
1643# (integer value)
1644# Minimum value: 1
1645#dhcp_lease_time=86400
1646
1647#
1648# Despite the singular form of the name of this option, it is actually a list of
1649# zero or more server addresses that dnsmasq will use for DNS nameservers. If
1650# this is not empty, dnsmasq will not read /etc/resolv.conf, but will only use
1651# the servers specified in this option. If the option use_network_dns_servers is
1652# True, the dns1 and dns2 servers from the network will be appended to this
1653# list,
1654# and will be used as DNS servers, too.
1655#
1656# Possible values:
1657#
1658# A list of strings, where each string is either an IP address or a FQDN.
1659#
1660# Related options:
1661#
1662# use_network_dns_servers
1663# (multi valued)
1664#dns_server =
1665
1666#
1667# When this option is set to True, the dns1 and dns2 servers for the network
1668# specified by the user on boot will be used for DNS, as well as any specified
1669# in
1670# the `dns_server` option.
1671#
1672# Related options:
1673#
1674# dns_server
1675# (boolean value)
1676#use_network_dns_servers=false
1677
1678#
1679# This option is a list of zero or more IP address ranges in your network's DMZ
1680# that should be accepted.
1681#
1682# Possible values:
1683#
1684# A list of strings, each of which should be a valid CIDR.
1685# (list value)
1686#dmz_cidr =
1687
1688#
1689# This is a list of zero or more IP ranges that traffic from the
1690# `routing_source_ip` will be SNATted to. If the list is empty, then no SNAT
1691# rules are created.
1692#
1693# Possible values:
1694#
1695# A list of strings, each of which should be a valid CIDR.
1696#
1697# Related options:
1698#
1699# routing_source_ip
1700# (multi valued)
1701#force_snat_range =
1702
1703#
1704# The path to the custom dnsmasq configuration file, if any.
1705#
1706# Possible values:
1707#
1708# The full path to the configuration file, or an empty string if there is no
1709# custom dnsmasq configuration file.
1710# (string value)
1711#dnsmasq_config_file =
1712
1713#
1714# This is the class used as the ethernet device driver for linuxnet bridge
1715# operations. The default value should be all you need for most cases, but if
1716# you
1717# wish to use a customized class, set this option to the full dot-separated
1718# import path for that class.
1719#
1720# Possible values:
1721#
1722# Any string representing a dot-separated class path that Nova can import.
1723# (string value)
1724#linuxnet_interface_driver=nova.network.linux_net.LinuxBridgeInterfaceDriver
1725
1726#
1727# The name of the Open vSwitch bridge that is used with linuxnet when connecting
1728# with Open vSwitch."
1729#
1730# Possible values:
1731#
1732# Any string representing a valid bridge name.
1733# (string value)
1734#linuxnet_ovs_integration_bridge=br-int
1735
1736#
1737# When True, when a device starts up, and upon binding floating IP addresses,
1738# arp
1739# messages will be sent to ensure that the arp caches on the compute hosts are
1740# up-to-date.
1741#
1742# Related options:
1743#
1744# send_arp_for_ha_count
1745# (boolean value)
1746#send_arp_for_ha=false
1747
1748#
1749# When arp messages are configured to be sent, they will be sent with the count
1750# set to the value of this option. Of course, if this is set to zero, no arp
1751# messages will be sent.
1752#
1753# Possible values:
1754#
1755# Any integer greater than or equal to 0
1756#
1757# Related options:
1758#
1759# send_arp_for_ha
1760# (integer value)
1761#send_arp_for_ha_count=3
1762
1763#
1764# When set to True, only the firt nic of a VM will get its default gateway from
1765# the DHCP server.
1766# (boolean value)
1767#use_single_default_gateway=false
1768
1769#
1770# One or more interfaces that bridges can forward traffic to. If any of the
1771# items
1772# in this list is the special keyword 'all', then all traffic will be forwarded.
1773#
1774# Possible values:
1775#
1776# A list of zero or more interface names, or the word 'all'.
1777# (multi valued)
1778#forward_bridge_interface=all
1779
1780#
1781# This option determines the IP address for the network metadata API server.
1782#
1783# Possible values:
1784#
1785# * Any valid IP address. The default is the address of the Nova API server.
1786#
1787# Related options:
1788#
1789# * metadata_port
1790# (string value)
1791#metadata_host=$my_ip
1792
1793#
1794# This option determines the port used for the metadata API server.
1795#
1796# Related options:
1797#
1798# * metadata_host
1799# (port value)
1800# Minimum value: 0
1801# Maximum value: 65535
1802#metadata_port=8775
1803
1804#
1805# This expression, if defined, will select any matching iptables rules and place
1806# them at the top when applying metadata changes to the rules.
1807#
1808# Possible values:
1809#
1810# * Any string representing a valid regular expression, or an empty string
1811#
1812# Related options:
1813#
1814# * iptables_bottom_regex
1815# (string value)
1816#iptables_top_regex =
1817
1818#
1819# This expression, if defined, will select any matching iptables rules and place
1820# them at the bottom when applying metadata changes to the rules.
1821#
1822# Possible values:
1823#
1824# * Any string representing a valid regular expression, or an empty string
1825#
1826# Related options:
1827#
1828# * iptables_top_regex
1829# (string value)
1830#iptables_bottom_regex =
1831
1832#
1833# By default, packets that do not pass the firewall are DROPped. In many cases,
1834# though, an operator may find it more useful to change this from DROP to
1835# REJECT,
1836# so that the user issuing those packets may have a better idea as to what's
1837# going on, or LOGDROP in order to record the blocked traffic before DROPping.
1838#
1839# Possible values:
1840#
1841# * A string representing an iptables chain. The default is DROP.
1842# (string value)
1843#iptables_drop_action=DROP
1844
1845#
1846# This option represents the period of time, in seconds, that the ovs_vsctl
1847# calls
1848# will wait for a response from the database before timing out. A setting of 0
1849# means that the utility should wait forever for a response.
1850#
1851# Possible values:
1852#
1853# * Any positive integer if a limited timeout is desired, or zero if the
1854# calls should wait forever for a response.
1855# (integer value)
1856# Minimum value: 0
1857#ovs_vsctl_timeout=120
1858
1859#
1860# This option is used mainly in testing to avoid calls to the underlying network
1861# utilities.
1862# (boolean value)
1863#fake_network=false
1864
1865#
1866# This option determines the number of times to retry ebtables commands before
1867# giving up. The minimum number of retries is 1.
1868#
1869# Possible values:
1870#
1871# * Any positive integer
1872#
1873# Related options:
1874#
1875# * ebtables_retry_interval
1876# (integer value)
1877# Minimum value: 1
1878#ebtables_exec_attempts=3
1879
1880#
1881# This option determines the time, in seconds, that the system will sleep in
1882# between ebtables retries. Note that each successive retry waits a multiple of
1883# this value, so for example, if this is set to the default of 1.0 seconds, and
1884# ebtables_exec_attempts is 4, after the first failure, the system will sleep
1885# for
1886# 1 * 1.0 seconds, after the second failure it will sleep 2 * 1.0 seconds, and
1887# after the third failure it will sleep 3 * 1.0 seconds.
1888#
1889# Possible values:
1890#
1891# * Any non-negative float or integer. Setting this to zero will result in
1892# no
1893# waiting between attempts.
1894#
1895# Related options:
1896#
1897# * ebtables_exec_attempts
1898# (floating point value)
1899#ebtables_retry_interval=1.0
1900
1901#
1902# This option determines whether the network setup information is injected into
1903# the VM before it is booted. While it was originally designed to be used only
1904# by
1905# nova-network, it is also used by the vmware and xenapi virt drivers to control
1906# whether network information is injected into a VM.
1907# (boolean value)
1908#flat_injected=false
1909
1910# DEPRECATED:
1911# This option determines the bridge used for simple network interfaces when no
1912# bridge is specified in the VM creation request.
1913#
1914# Please note that this option is only used when using nova-network instead of
1915# Neutron in your deployment.
1916#
1917# Possible values:
1918#
1919# Any string representing a valid network bridge, such as 'br100'
1920#
1921# Related options:
1922#
1923# ``use_neutron``
1924# (string value)
1925# This option is deprecated for removal since 15.0.0.
1926# Its value may be silently ignored in the future.
1927# Reason:
1928# nova-network is deprecated, as are any related configuration options.
1929#flat_network_bridge=<None>
1930
1931# DEPRECATED:
1932# This is the address of the DNS server for a simple network. If this option is
1933# not specified, the default of '8.8.4.4' is used.
1934#
1935# Please note that this option is only used when using nova-network instead of
1936# Neutron in your deployment.
1937#
1938# Possible values:
1939#
1940# Any valid IP address.
1941#
1942# Related options:
1943#
1944# ``use_neutron``
1945# (string value)
1946# This option is deprecated for removal since 15.0.0.
1947# Its value may be silently ignored in the future.
1948# Reason:
1949# nova-network is deprecated, as are any related configuration options.
1950#flat_network_dns=8.8.4.4
1951
1952# DEPRECATED:
1953# This option is the name of the virtual interface of the VM on which the bridge
1954# will be built. While it was originally designed to be used only by
1955# nova-network, it is also used by libvirt for the bridge interface name.
1956#
1957# Possible values:
1958#
1959# Any valid virtual interface name, such as 'eth0'
1960# (string value)
1961# This option is deprecated for removal since 15.0.0.
1962# Its value may be silently ignored in the future.
1963# Reason:
1964# nova-network is deprecated, as are any related configuration options.
1965#flat_interface=<None>
1966
1967# DEPRECATED:
1968# This is the VLAN number used for private networks. Note that the when creating
1969# the networks, if the specified number has already been assigned, nova-network
1970# will increment this number until it finds an available VLAN.
1971#
1972# Please note that this option is only used when using nova-network instead of
1973# Neutron in your deployment. It also will be ignored if the configuration
1974# option
1975# for `network_manager` is not set to the default of
1976# 'nova.network.manager.VlanManager'.
1977#
1978# Possible values:
1979#
1980# Any integer between 1 and 4094. Values outside of that range will raise a
1981# ValueError exception. Default = 100.
1982#
1983# Related options:
1984#
1985# ``network_manager``, ``use_neutron``
1986# (integer value)
1987# Minimum value: 1
1988# Maximum value: 4094
1989# This option is deprecated for removal since 15.0.0.
1990# Its value may be silently ignored in the future.
1991# Reason:
1992# nova-network is deprecated, as are any related configuration options.
1993#vlan_start=100
1994
1995# DEPRECATED:
1996# This option is the name of the virtual interface of the VM on which the VLAN
1997# bridge will be built. While it was originally designed to be used only by
1998# nova-network, it is also used by libvirt and xenapi for the bridge interface
1999# name.
2000#
2001# Please note that this setting will be ignored in nova-network if the
2002# configuration option for `network_manager` is not set to the default of
2003# 'nova.network.manager.VlanManager'.
2004#
2005# Possible values:
2006#
2007# Any valid virtual interface name, such as 'eth0'
2008# (string value)
2009# This option is deprecated for removal since 15.0.0.
2010# Its value may be silently ignored in the future.
2011# Reason:
2012# nova-network is deprecated, as are any related configuration options. While
2013# this option has an effect when using neutron, it incorrectly override the
2014# value
2015# provided by neutron and should therefore not be used.
2016#vlan_interface=<None>
2017
2018# DEPRECATED:
2019# This option represents the number of networks to create if not explicitly
2020# specified when the network is created. The only time this is used is if a CIDR
2021# is specified, but an explicit network_size is not. In that case, the subnets
2022# are created by diving the IP address space of the CIDR by num_networks. The
2023# resulting subnet sizes cannot be larger than the configuration option
2024# `network_size`; in that event, they are reduced to `network_size`, and a
2025# warning is logged.
2026#
2027# Please note that this option is only used when using nova-network instead of
2028# Neutron in your deployment.
2029#
2030# Possible values:
2031#
2032# Any positive integer is technically valid, although there are practical
2033# limits based upon available IP address space and virtual interfaces. The
2034# default is 1.
2035#
2036# Related options:
2037#
2038# ``use_neutron``, ``network_size``
2039# (integer value)
2040# Minimum value: 1
2041# This option is deprecated for removal since 15.0.0.
2042# Its value may be silently ignored in the future.
2043# Reason:
2044# nova-network is deprecated, as are any related configuration options.
2045#num_networks=1
2046
2047# DEPRECATED:
2048# This is the public IP address for the cloudpipe VPN servers. It defaults to
2049# the
2050# IP address of the host.
2051#
2052# Please note that this option is only used when using nova-network instead of
2053# Neutron in your deployment. It also will be ignored if the configuration
2054# option
2055# for `network_manager` is not set to the default of
2056# 'nova.network.manager.VlanManager'.
2057#
2058# Possible values:
2059#
2060# Any valid IP address. The default is $my_ip, the IP address of the VM.
2061#
2062# Related options:
2063#
2064# ``network_manager``, ``use_neutron``, ``vpn_start``
2065# (string value)
2066# This option is deprecated for removal since 15.0.0.
2067# Its value may be silently ignored in the future.
2068# Reason:
2069# nova-network is deprecated, as are any related configuration options.
2070#vpn_ip=$my_ip
2071
2072# DEPRECATED:
2073# This is the port number to use as the first VPN port for private networks.
2074#
2075# Please note that this option is only used when using nova-network instead of
2076# Neutron in your deployment. It also will be ignored if the configuration
2077# option
2078# for `network_manager` is not set to the default of
2079# 'nova.network.manager.VlanManager', or if you specify a value the 'vpn_start'
2080# parameter when creating a network.
2081#
2082# Possible values:
2083#
2084# Any integer representing a valid port number. The default is 1000.
2085#
2086# Related options:
2087#
2088# ``use_neutron``, ``vpn_ip``, ``network_manager``
2089# (port value)
2090# Minimum value: 0
2091# Maximum value: 65535
2092# This option is deprecated for removal since 15.0.0.
2093# Its value may be silently ignored in the future.
2094# Reason:
2095# nova-network is deprecated, as are any related configuration options.
2096#vpn_start=1000
2097
2098# DEPRECATED:
2099# This option determines the number of addresses in each private subnet.
2100#
2101# Please note that this option is only used when using nova-network instead of
2102# Neutron in your deployment.
2103#
2104# Possible values:
2105#
2106# Any positive integer that is less than or equal to the available network
2107# size. Note that if you are creating multiple networks, they must all fit
2108# in
2109# the available IP address space. The default is 256.
2110#
2111# Related options:
2112#
2113# ``use_neutron``, ``num_networks``
2114# (integer value)
2115# Minimum value: 1
2116# This option is deprecated for removal since 15.0.0.
2117# Its value may be silently ignored in the future.
2118# Reason:
2119# nova-network is deprecated, as are any related configuration options.
2120#network_size=256
2121
2122# DEPRECATED:
2123# This option determines the fixed IPv6 address block when creating a network.
2124#
2125# Please note that this option is only used when using nova-network instead of
2126# Neutron in your deployment.
2127#
2128# Possible values:
2129#
2130# Any valid IPv6 CIDR. The default value is "fd00::/48".
2131#
2132# Related options:
2133#
2134# ``use_neutron``
2135# (string value)
2136# This option is deprecated for removal since 15.0.0.
2137# Its value may be silently ignored in the future.
2138# Reason:
2139# nova-network is deprecated, as are any related configuration options.
2140#fixed_range_v6=fd00::/48
2141
2142# DEPRECATED:
2143# This is the default IPv4 gateway. It is used only in the testing suite.
2144#
2145# Please note that this option is only used when using nova-network instead of
2146# Neutron in your deployment.
2147#
2148# Possible values:
2149#
2150# Any valid IP address.
2151#
2152# Related options:
2153#
2154# ``use_neutron``, ``gateway_v6``
2155# (string value)
2156# This option is deprecated for removal since 15.0.0.
2157# Its value may be silently ignored in the future.
2158# Reason:
2159# nova-network is deprecated, as are any related configuration options.
2160#gateway=<None>
2161
2162# DEPRECATED:
2163# This is the default IPv6 gateway. It is used only in the testing suite.
2164#
2165# Please note that this option is only used when using nova-network instead of
2166# Neutron in your deployment.
2167#
2168# Possible values:
2169#
2170# Any valid IP address.
2171#
2172# Related options:
2173#
2174# ``use_neutron``, ``gateway``
2175# (string value)
2176# This option is deprecated for removal since 15.0.0.
2177# Its value may be silently ignored in the future.
2178# Reason:
2179# nova-network is deprecated, as are any related configuration options.
2180#gateway_v6=<None>
2181
2182# DEPRECATED:
2183# This option represents the number of IP addresses to reserve at the top of the
2184# address range for VPN clients. It also will be ignored if the configuration
2185# option for `network_manager` is not set to the default of
2186# 'nova.network.manager.VlanManager'.
2187#
2188# Possible values:
2189#
2190# Any integer, 0 or greater. The default is 0.
2191#
2192# Related options:
2193#
2194# ``use_neutron``, ``network_manager``
2195# (integer value)
2196# Minimum value: 0
2197# This option is deprecated for removal since 15.0.0.
2198# Its value may be silently ignored in the future.
2199# Reason:
2200# nova-network is deprecated, as are any related configuration options.
2201#cnt_vpn_clients=0
2202
2203# DEPRECATED:
2204# This is the number of seconds to wait before disassociating a deallocated
2205# fixed
2206# IP address. This is only used with the nova-network service, and has no effect
2207# when using neutron for networking.
2208#
2209# Possible values:
2210#
2211# Any integer, zero or greater. The default is 600 (10 minutes).
2212#
2213# Related options:
2214#
2215# ``use_neutron``
2216# (integer value)
2217# Minimum value: 0
2218# This option is deprecated for removal since 15.0.0.
2219# Its value may be silently ignored in the future.
2220# Reason:
2221# nova-network is deprecated, as are any related configuration options.
2222#fixed_ip_disassociate_timeout=600
2223
2224# DEPRECATED:
2225# This option determines how many times nova-network will attempt to create a
2226# unique MAC address before giving up and raising a
2227# `VirtualInterfaceMacAddressException` error.
2228#
2229# Possible values:
2230#
2231# Any positive integer. The default is 5.
2232#
2233# Related options:
2234#
2235# ``use_neutron``
2236# (integer value)
2237# Minimum value: 1
2238# This option is deprecated for removal since 15.0.0.
2239# Its value may be silently ignored in the future.
2240# Reason:
2241# nova-network is deprecated, as are any related configuration options.
2242#create_unique_mac_address_attempts=5
2243
2244# DEPRECATED:
2245# Determines whether unused gateway devices, both VLAN and bridge, are deleted
2246# if
2247# the network is in nova-network VLAN mode and is multi-hosted.
2248#
2249# Related options:
2250#
2251# ``use_neutron``, ``vpn_ip``, ``fake_network``
2252# (boolean value)
2253# This option is deprecated for removal since 15.0.0.
2254# Its value may be silently ignored in the future.
2255# Reason:
2256# nova-network is deprecated, as are any related configuration options.
2257#teardown_unused_network_gateway=false
2258
2259# DEPRECATED:
2260# When this option is True, a call is made to release the DHCP for the instance
2261# when that instance is terminated.
2262#
2263# Related options:
2264#
2265# ``use_neutron``
2266# (boolean value)
2267# This option is deprecated for removal since 15.0.0.
2268# Its value may be silently ignored in the future.
2269# Reason:
2270# nova-network is deprecated, as are any related configuration options.
2271force_dhcp_release=true
2272
2273# DEPRECATED:
2274# When this option is True, whenever a DNS entry must be updated, a fanout cast
2275# message is sent to all network hosts to update their DNS entries in multi-host
2276# mode.
2277#
2278# Related options:
2279#
2280# ``use_neutron``
2281# (boolean value)
2282# This option is deprecated for removal since 15.0.0.
2283# Its value may be silently ignored in the future.
2284# Reason:
2285# nova-network is deprecated, as are any related configuration options.
2286#update_dns_entries=false
2287
2288# DEPRECATED:
2289# This option determines the time, in seconds, to wait between refreshing DNS
2290# entries for the network.
2291#
2292# Possible values:
2293#
2294# Either -1 (default), or any positive integer. A negative value will
2295# disable
2296# the updates.
2297#
2298# Related options:
2299#
2300# ``use_neutron``
2301# (integer value)
2302# Minimum value: -1
2303# This option is deprecated for removal since 15.0.0.
2304# Its value may be silently ignored in the future.
2305# Reason:
2306# nova-network is deprecated, as are any related configuration options.
2307#dns_update_periodic_interval=-1
2308
2309# DEPRECATED:
2310# This option allows you to specify the domain for the DHCP server.
2311#
2312# Possible values:
2313#
2314# Any string that is a valid domain name.
2315#
2316# Related options:
2317#
2318# ``use_neutron``
2319# (string value)
2320# This option is deprecated for removal since 15.0.0.
2321# Its value may be silently ignored in the future.
2322# Reason:
2323# nova-network is deprecated, as are any related configuration options.
2324#dhcp_domain=novalocal
2325dhcp_domain={{ compute.get('dhcp_domain', 'novalocal') }}
2326
2327# DEPRECATED:
2328# This option allows you to specify the L3 management library to be used.
2329#
2330# Possible values:
2331#
2332# Any dot-separated string that represents the import path to an L3
2333# networking library.
2334#
2335# Related options:
2336#
2337# ``use_neutron``
2338# (string value)
2339# This option is deprecated for removal since 15.0.0.
2340# Its value may be silently ignored in the future.
2341# Reason:
2342# nova-network is deprecated, as are any related configuration options.
2343#l3_lib=nova.network.l3.LinuxNetL3
2344
2345# DEPRECATED:
2346# THIS VALUE SHOULD BE SET WHEN CREATING THE NETWORK.
2347#
2348# If True in multi_host mode, all compute hosts share the same dhcp address. The
2349# same IP address used for DHCP will be added on each nova-network node which is
2350# only visible to the VMs on the same host.
2351#
2352# The use of this configuration has been deprecated and may be removed in any
2353# release after Mitaka. It is recommended that instead of relying on this
2354# option,
2355# an explicit value should be passed to 'create_networks()' as a keyword
2356# argument
2357# with the name 'share_address'.
2358# (boolean value)
2359# This option is deprecated for removal since 2014.2.
2360# Its value may be silently ignored in the future.
2361#share_dhcp_address=false
2362
2363# DEPRECATED: Whether to use Neutron or Nova Network as the back end for
2364# networking. Defaults to False (indicating Nova network).Set to True to use
2365# neutron. (boolean value)
2366# This option is deprecated for removal since 15.0.0.
2367# Its value may be silently ignored in the future.
2368# Reason:
2369# nova-network is deprecated, as are any related configuration options.
2370#use_neutron=true
2371
2372#
2373# URL for LDAP server which will store DNS entries
2374#
2375# Possible values:
2376#
2377# * A valid LDAP URL representing the server
2378# (uri value)
2379#ldap_dns_url=ldap://ldap.example.com:389
2380
2381# Bind user for LDAP server (string value)
2382#ldap_dns_user=uid=admin,ou=people,dc=example,dc=org
2383
2384# Bind user's password for LDAP server (string value)
2385#ldap_dns_password=password
2386
2387#
2388# Hostmaster for LDAP DNS driver Statement of Authority
2389#
2390# Possible values:
2391#
2392# * Any valid string representing LDAP DNS hostmaster.
2393# (string value)
2394#ldap_dns_soa_hostmaster=hostmaster@example.org
2395
2396#
2397# DNS Servers for LDAP DNS driver
2398#
2399# Possible values:
2400#
2401# * A valid URL representing a DNS server
2402# (multi valued)
2403#ldap_dns_servers=dns.example.org
2404
2405#
2406# Base distinguished name for the LDAP search query
2407#
2408# This option helps to decide where to look up the host in LDAP.
2409# (string value)
2410#ldap_dns_base_dn=ou=hosts,dc=example,dc=org
2411
2412#
2413# Refresh interval (in seconds) for LDAP DNS driver Start of Authority
2414#
2415# Time interval, a secondary/slave DNS server waits before requesting for
2416# primary DNS server's current SOA record. If the records are different,
2417# secondary DNS server will request a zone transfer from primary.
2418#
2419# NOTE: Lower values would cause more traffic.
2420# (integer value)
2421#ldap_dns_soa_refresh=1800
2422
2423#
2424# Retry interval (in seconds) for LDAP DNS driver Start of Authority
2425#
2426# Time interval, a secondary/slave DNS server should wait, if an
2427# attempt to transfer zone failed during the previous refresh interval.
2428# (integer value)
2429#ldap_dns_soa_retry=3600
2430
2431#
2432# Expiry interval (in seconds) for LDAP DNS driver Start of Authority
2433#
2434# Time interval, a secondary/slave DNS server holds the information
2435# before it is no longer considered authoritative.
2436# (integer value)
2437#ldap_dns_soa_expiry=86400
2438
2439#
2440# Minimum interval (in seconds) for LDAP DNS driver Start of Authority
2441#
2442# It is Minimum time-to-live applies for all resource records in the
2443# zone file. This value is supplied to other servers how long they
2444# should keep the data in cache.
2445# (integer value)
2446#ldap_dns_soa_minimum=7200
2447
2448# DEPRECATED: The topic network nodes listen on (string value)
2449# This option is deprecated for removal since 15.0.0.
2450# Its value may be silently ignored in the future.
2451# Reason:
2452# There is no need to let users choose the RPC topic for all services - there
2453# is little gain from this. Furthermore, it makes it really easy to break Nova
2454# by using this option.
2455#network_topic=network
2456
2457# DEPRECATED:
2458# Default value for multi_host in networks.
2459#
2460# nova-network service can operate in a multi-host or single-host mode.
2461# In multi-host mode each compute node runs a copy of nova-network and the
2462# instances on that compute node use the compute node as a gateway to the
2463# Internet. Where as in single-host mode, a central server runs the nova-network
2464# service. All compute nodes forward traffic from the instances to the
2465# cloud controller which then forwards traffic to the Internet.
2466#
2467# If this options is set to true, some rpc network calls will be sent directly
2468# to host.
2469#
2470# Note that this option is only used when using nova-network instead of
2471# Neutron in your deployment.
2472#
2473# Related options:
2474#
2475# * use_neutron
2476# (boolean value)
2477# This option is deprecated for removal since 15.0.0.
2478# Its value may be silently ignored in the future.
2479# Reason:
2480# nova-network is deprecated, as are any related configuration options.
2481#multi_host=false
2482
2483# DEPRECATED:
2484# Driver to use for network creation.
2485#
2486# Network driver initializes (creates bridges and so on) only when the
2487# first VM lands on a host node. All network managers configure the
2488# network using network drivers. The driver is not tied to any particular
2489# network manager.
2490#
2491# The default Linux driver implements vlans, bridges, and iptables rules
2492# using linux utilities.
2493#
2494# Note that this option is only used when using nova-network instead
2495# of Neutron in your deployment.
2496#
2497# Related options:
2498#
2499# * use_neutron
2500# (string value)
2501# This option is deprecated for removal since 15.0.0.
2502# Its value may be silently ignored in the future.
2503# Reason:
2504# nova-network is deprecated, as are any related configuration options.
2505#network_driver=nova.network.linux_net
2506
2507#
2508# Firewall driver to use with ``nova-network`` service.
2509#
2510# This option only applies when using the ``nova-network`` service. When using
2511# another networking services, such as Neutron, this should be to set to the
2512# ``nova.virt.firewall.NoopFirewallDriver``.
2513#
2514# If unset (the default), this will default to the hypervisor-specified
2515# default driver.
2516#
2517# Possible values:
2518#
2519# * nova.virt.firewall.IptablesFirewallDriver
2520# * nova.virt.firewall.NoopFirewallDriver
2521# * nova.virt.libvirt.firewall.IptablesFirewallDriver
2522# * [...]
2523#
2524# Related options:
2525#
2526# * ``use_neutron``: This must be set to ``False`` to enable ``nova-network``
2527# networking
2528# (string value)
2529#firewall_driver=<None>
2530firewall_driver = nova.virt.firewall.NoopFirewallDriver
2531
2532#
2533# Determine whether to allow network traffic from same network.
2534#
2535# When set to true, hosts on the same subnet are not filtered and are allowed
2536# to pass all types of traffic between them. On a flat network, this allows
2537# all instances from all projects unfiltered communication. With VLAN
2538# networking, this allows access between instances within the same project.
2539#
2540# This option only applies when using the ``nova-network`` service. When using
2541# another networking services, such as Neutron, security groups or other
2542# approaches should be used.
2543#
2544# Possible values:
2545#
2546# * True: Network traffic should be allowed pass between all instances on the
2547# same network, regardless of their tenant and security policies
2548# * False: Network traffic should not be allowed pass between instances unless
2549# it is unblocked in a security group
2550#
2551# Related options:
2552#
2553# * ``use_neutron``: This must be set to ``False`` to enable ``nova-network``
2554# networking
2555# * ``firewall_driver``: This must be set to
2556# ``nova.virt.libvirt.firewall.IptablesFirewallDriver`` to ensure the
2557# libvirt firewall driver is enabled.
2558# (boolean value)
2559#allow_same_net_traffic=true
2560
2561#
2562# Filename that will be used for storing websocket frames received
2563# and sent by a proxy service (like VNC, spice, serial) running on this host.
2564# If this is not set, no recording will be done.
2565# (string value)
2566#record=<None>
2567
2568# Run as a background process. (boolean value)
2569#daemon=false
2570
2571# Disallow non-encrypted connections. (boolean value)
2572#ssl_only=false
2573
2574# Set to True if source host is addressed with IPv6. (boolean value)
2575#source_is_ipv6=false
2576
2577# Path to SSL certificate file. (string value)
2578#cert=self.pem
2579
2580# SSL key file (if separate from cert). (string value)
2581#key=<None>
2582
2583#
2584# Path to directory with content which will be served by a web server.
2585# (string value)
2586#web=/usr/share/spice-html5
2587
2588#
2589# The directory where the Nova python modules are installed.
2590#
2591# This directory is used to store template files for networking and remote
2592# console access. It is also the default path for other config options which
2593# need to persist Nova internal data. It is very unlikely that you need to
2594# change this option from its default value.
2595#
2596# Possible values:
2597#
2598# * The full path to a directory.
2599#
2600# Related options:
2601#
2602# * ``state_path``
2603# (string value)
2604#pybasedir=/build/nova-elxmSs/nova-15.0.2
2605
2606#
2607# The directory where the Nova binaries are installed.
2608#
2609# This option is only relevant if the networking capabilities from Nova are
2610# used (see services below). Nova's networking capabilities are targeted to
2611# be fully replaced by Neutron in the future. It is very unlikely that you need
2612# to change this option from its default value.
2613#
2614# Possible values:
2615#
2616# * The full path to a directory.
2617# (string value)
2618#bindir=/usr/local/bin
2619
2620#
2621# The top-level directory for maintaining Nova's state.
2622#
2623# This directory is used to store Nova's internal state. It is used by a
2624# variety of other config options which derive from this. In some scenarios
2625# (for example migrations) it makes sense to use a storage location which is
2626# shared between multiple compute hosts (for example via NFS). Unless the
2627# option ``instances_path`` gets overwritten, this directory can grow very
2628# large.
2629#
2630# Possible values:
2631#
2632# * The full path to a directory. Defaults to value provided in ``pybasedir``.
2633# (string value)
2634state_path=/var/lib/nova
2635
2636#
2637# Number of seconds indicating how frequently the state of services on a
2638# given hypervisor is reported. Nova needs to know this to determine the
2639# overall health of the deployment.
2640#
2641# Related Options:
2642#
2643# * service_down_time
2644# report_interval should be less than service_down_time. If service_down_time
2645# is less than report_interval, services will routinely be considered down,
2646# because they report in too rarely.
2647# (integer value)
2648#report_interval=10
2649report_interval = {{ compute.get('report_interval', '60') }}
2650
2651#
2652# Maximum time in seconds since last check-in for up service
2653#
2654# Each compute node periodically updates their database status based on the
2655# specified report interval. If the compute node hasn't updated the status
2656# for more than service_down_time, then the compute node is considered down.
2657#
2658# Related Options:
2659#
2660# * report_interval (service_down_time should not be less than report_interval)
2661# (integer value)
2662#service_down_time=60
2663service_down_time=90
2664
2665#
2666# Enable periodic tasks.
2667#
2668# If set to true, this option allows services to periodically run tasks
2669# on the manager.
2670#
2671# In case of running multiple schedulers or conductors you may want to run
2672# periodic tasks on only one host - in this case disable this option for all
2673# hosts but one.
2674# (boolean value)
2675#periodic_enable=true
2676
2677#
2678# Number of seconds to randomly delay when starting the periodic task
2679# scheduler to reduce stampeding.
2680#
2681# When compute workers are restarted in unison across a cluster,
2682# they all end up running the periodic tasks at the same time
2683# causing problems for the external services. To mitigate this
2684# behavior, periodic_fuzzy_delay option allows you to introduce a
2685# random initial delay when starting the periodic task scheduler.
2686#
2687# Possible Values:
2688#
2689# * Any positive integer (in seconds)
2690# * 0 : disable the random delay
2691# (integer value)
2692# Minimum value: 0
2693#periodic_fuzzy_delay=60
2694
2695# List of APIs to be enabled by default. (list value)
2696enabled_apis=osapi_compute,metadata
2697
2698#
2699# List of APIs with enabled SSL.
2700#
2701# Nova provides SSL support for the API servers. enabled_ssl_apis option
2702# allows configuring the SSL support.
2703# (list value)
2704#enabled_ssl_apis =
2705
2706#
2707# IP address on which the OpenStack API will listen.
2708#
2709# The OpenStack API service listens on this IP address for incoming
2710# requests.
2711# (string value)
2712#osapi_compute_listen=0.0.0.0
2713
2714#
2715# Port on which the OpenStack API will listen.
2716#
2717# The OpenStack API service listens on this port number for incoming
2718# requests.
2719# (port value)
2720# Minimum value: 0
2721# Maximum value: 65535
2722#osapi_compute_listen_port=8774
2723
2724#
2725# Number of workers for OpenStack API service. The default will be the number
2726# of CPUs available.
2727#
2728# OpenStack API services can be configured to run as multi-process (workers).
2729# This overcomes the problem of reduction in throughput when API request
2730# concurrency increases. OpenStack API service will run in the specified
2731# number of processes.
2732#
2733# Possible Values:
2734#
2735# * Any positive integer
2736# * None (default value)
2737# (integer value)
2738# Minimum value: 1
2739#osapi_compute_workers=<None>
2740
2741#
2742# IP address on which the metadata API will listen.
2743#
2744# The metadata API service listens on this IP address for incoming
2745# requests.
2746# (string value)
2747#metadata_listen=0.0.0.0
2748
2749#
2750# Port on which the metadata API will listen.
2751#
2752# The metadata API service listens on this port number for incoming
2753# requests.
2754# (port value)
2755# Minimum value: 0
2756# Maximum value: 65535
2757#metadata_listen_port=8775
2758
2759#
2760# Number of workers for metadata service. If not specified the number of
2761# available CPUs will be used.
2762#
2763# The metadata service can be configured to run as multi-process (workers).
2764# This overcomes the problem of reduction in throughput when API request
2765# concurrency increases. The metadata service will run in the specified
2766# number of processes.
2767#
2768# Possible Values:
2769#
2770# * Any positive integer
2771# * None (default value)
2772# (integer value)
2773# Minimum value: 1
2774#metadata_workers=<None>
2775
2776# Full class name for the Manager for network (string value)
2777# Allowed values: nova.network.manager.FlatManager, nova.network.manager.FlatDHCPManager, nova.network.manager.VlanManager
2778#network_manager=nova.network.manager.VlanManager
2779
2780#
2781# This option specifies the driver to be used for the servicegroup service.
2782#
2783# ServiceGroup API in nova enables checking status of a compute node. When a
2784# compute worker running the nova-compute daemon starts, it calls the join API
2785# to join the compute group. Services like nova scheduler can query the
2786# ServiceGroup API to check if a node is alive. Internally, the ServiceGroup
2787# client driver automatically updates the compute worker status. There are
2788# multiple backend implementations for this service: Database ServiceGroup
2789# driver
2790# and Memcache ServiceGroup driver.
2791#
2792# Possible Values:
2793#
2794# * db : Database ServiceGroup driver
2795# * mc : Memcache ServiceGroup driver
2796#
2797# Related Options:
2798#
2799# * service_down_time (maximum time since last check-in for up service)
2800# (string value)
2801# Allowed values: db, mc
2802#servicegroup_driver=db
2803
2804#
2805# From oslo.log
2806#
2807
2808# If set to true, the logging level will be set to DEBUG instead of the default
2809# INFO level. (boolean value)
2810# Note: This option can be changed without restarting.
2811#debug=false
2812debug=false
2813
2814# DEPRECATED: If set to false, the logging level will be set to WARNING instead
2815# of the default INFO level. (boolean value)
2816# This option is deprecated for removal.
2817# Its value may be silently ignored in the future.
2818#verbose=true
2819verbose=true
2820
2821# The name of a logging configuration file. This file is appended to any
2822# existing logging configuration files. For details about logging configuration
2823# files, see the Python logging module documentation. Note that when logging
2824# configuration files are used then all logging configuration is set in the
2825# configuration file and other logging configuration options are ignored (for
2826# example, logging_context_format_string). (string value)
2827# Note: This option can be changed without restarting.
2828# Deprecated group/name - [DEFAULT]/log_config
2829#log_config_append=<None>
2830
2831# Defines the format string for %%(asctime)s in log records. Default:
2832# %(default)s . This option is ignored if log_config_append is set. (string
2833# value)
2834#log_date_format=%Y-%m-%d %H:%M:%S
2835
2836# (Optional) Name of log file to send logging output to. If no default is set,
2837# logging will go to stderr as defined by use_stderr. This option is ignored if
2838# log_config_append is set. (string value)
2839# Deprecated group/name - [DEFAULT]/logfile
2840#log_file=<None>
2841
2842# (Optional) The base directory used for relative log_file paths. This option
2843# is ignored if log_config_append is set. (string value)
2844# Deprecated group/name - [DEFAULT]/logdir
2845log_dir=/var/log/nova
2846
2847# Uses logging handler designed to watch file system. When log file is moved or
2848# removed this handler will open a new log file with specified path
2849# instantaneously. It makes sense only if log_file option is specified and Linux
2850# platform is used. This option is ignored if log_config_append is set. (boolean
2851# value)
2852#watch_log_file=false
2853
2854# Use syslog for logging. Existing syslog format is DEPRECATED and will be
2855# changed later to honor RFC5424. This option is ignored if log_config_append is
2856# set. (boolean value)
2857#use_syslog=false
2858
2859# Syslog facility to receive log lines. This option is ignored if
2860# log_config_append is set. (string value)
2861#syslog_log_facility=LOG_USER
2862
2863# Log output to standard error. This option is ignored if log_config_append is
2864# set. (boolean value)
2865#use_stderr=false
2866
2867# Format string to use for log messages with context. (string value)
2868#logging_context_format_string=%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
2869
2870# Format string to use for log messages when context is undefined. (string
2871# value)
2872#logging_default_format_string=%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
2873
2874# Additional data to append to log message when logging level for the message is
2875# DEBUG. (string value)
2876#logging_debug_format_suffix=%(funcName)s %(pathname)s:%(lineno)d
2877
2878# Prefix each line of exception output with this format. (string value)
2879#logging_exception_prefix=%(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
2880
2881# Defines the format string for %(user_identity)s that is used in
2882# logging_context_format_string. (string value)
2883#logging_user_identity_format=%(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
2884
2885# List of package logging levels in logger=LEVEL pairs. This option is ignored
2886# if log_config_append is set. (list value)
2887#default_log_levels=amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN,taskflow=WARN,keystoneauth=WARN,oslo.cache=INFO,dogpile.core.dogpile=INFO
2888
2889# Enables or disables publication of error events. (boolean value)
2890#publish_errors=false
2891
2892# The format for an instance that is passed with the log message. (string value)
2893#instance_format="[instance: %(uuid)s] "
2894
2895# The format for an instance UUID that is passed with the log message. (string
2896# value)
2897#instance_uuid_format="[instance: %(uuid)s] "
2898
2899# Interval, number of seconds, of log rate limiting. (integer value)
2900#rate_limit_interval=0
2901
2902# Maximum number of logged messages per rate_limit_interval. (integer value)
2903#rate_limit_burst=0
2904
2905# Log level name used by rate limiting: CRITICAL, ERROR, INFO, WARNING, DEBUG or
2906# empty string. Logs with level greater or equal to rate_limit_except_level are
2907# not filtered. An empty string means that all levels are filtered. (string
2908# value)
2909#rate_limit_except_level=CRITICAL
2910
2911# Enables or disables fatal status of deprecations. (boolean value)
2912#fatal_deprecations=false
2913
2914#
2915# From oslo.messaging
2916#
2917
2918# Size of RPC connection pool. (integer value)
2919# Deprecated group/name - [DEFAULT]/rpc_conn_pool_size
2920#rpc_conn_pool_size=30
2921
2922# The pool size limit for connections expiration policy (integer value)
2923#conn_pool_min_size=2
2924
2925# The time-to-live in sec of idle connections in the pool (integer value)
2926#conn_pool_ttl=1200
2927
2928# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
2929# The "host" option should point or resolve to this address. (string value)
2930# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_address
2931#rpc_zmq_bind_address=*
2932
2933# MatchMaker driver. (string value)
2934# Allowed values: redis, sentinel, dummy
2935# Deprecated group/name - [DEFAULT]/rpc_zmq_matchmaker
2936#rpc_zmq_matchmaker=redis
2937
2938# Number of ZeroMQ contexts, defaults to 1. (integer value)
2939# Deprecated group/name - [DEFAULT]/rpc_zmq_contexts
2940#rpc_zmq_contexts=1
2941
2942# Maximum number of ingress messages to locally buffer per topic. Default is
2943# unlimited. (integer value)
2944# Deprecated group/name - [DEFAULT]/rpc_zmq_topic_backlog
2945#rpc_zmq_topic_backlog=<None>
2946
2947# Directory for holding IPC sockets. (string value)
2948# Deprecated group/name - [DEFAULT]/rpc_zmq_ipc_dir
2949#rpc_zmq_ipc_dir=/var/run/openstack
2950
2951# Name of this node. Must be a valid hostname, FQDN, or IP address. Must match
2952# "host" option, if running Nova. (string value)
2953# Deprecated group/name - [DEFAULT]/rpc_zmq_host
2954#rpc_zmq_host=localhost
2955
2956# Number of seconds to wait before all pending messages will be sent after
2957# closing a socket. The default value of -1 specifies an infinite linger period.
2958# The value of 0 specifies no linger period. Pending messages shall be discarded
2959# immediately when the socket is closed. Positive values specify an upper bound
2960# for the linger period. (integer value)
2961# Deprecated group/name - [DEFAULT]/rpc_cast_timeout
2962#zmq_linger=-1
2963zmq_linger=30
2964
2965# The default number of seconds that poll should wait. Poll raises timeout
2966# exception when timeout expired. (integer value)
2967# Deprecated group/name - [DEFAULT]/rpc_poll_timeout
2968#rpc_poll_timeout=1
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02002969{%- if compute.message_queue.rpc_poll_timeout is defined %}
2970rpc_poll_timeout = {{ compute.message_queue.rpc_poll_timeout }}
2971{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01002972
2973# Expiration timeout in seconds of a name service record about existing target (
2974# < 0 means no timeout). (integer value)
2975# Deprecated group/name - [DEFAULT]/zmq_target_expire
2976#zmq_target_expire=300
2977
2978# Update period in seconds of a name service record about existing target.
2979# (integer value)
2980# Deprecated group/name - [DEFAULT]/zmq_target_update
2981#zmq_target_update=180
2982
2983# Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy. (boolean
2984# value)
2985# Deprecated group/name - [DEFAULT]/use_pub_sub
2986#use_pub_sub=false
2987
2988# Use ROUTER remote proxy. (boolean value)
2989# Deprecated group/name - [DEFAULT]/use_router_proxy
2990#use_router_proxy=false
2991
2992# This option makes direct connections dynamic or static. It makes sense only
2993# with use_router_proxy=False which means to use direct connections for direct
2994# message types (ignored otherwise). (boolean value)
2995#use_dynamic_connections=false
2996
2997# How many additional connections to a host will be made for failover reasons.
2998# This option is actual only in dynamic connections mode. (integer value)
2999#zmq_failover_connections=2
3000
3001# Minimal port number for random ports range. (port value)
3002# Minimum value: 0
3003# Maximum value: 65535
3004# Deprecated group/name - [DEFAULT]/rpc_zmq_min_port
3005#rpc_zmq_min_port=49153
3006
3007# Maximal port number for random ports range. (integer value)
3008# Minimum value: 1
3009# Maximum value: 65536
3010# Deprecated group/name - [DEFAULT]/rpc_zmq_max_port
3011#rpc_zmq_max_port=65536
3012
3013# Number of retries to find free port number before fail with ZMQBindError.
3014# (integer value)
3015# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_port_retries
3016#rpc_zmq_bind_port_retries=100
3017
3018# Default serialization mechanism for serializing/deserializing
3019# outgoing/incoming messages (string value)
3020# Allowed values: json, msgpack
3021# Deprecated group/name - [DEFAULT]/rpc_zmq_serialization
3022#rpc_zmq_serialization=json
3023
3024# This option configures round-robin mode in zmq socket. True means not keeping
3025# a queue when server side disconnects. False means to keep queue and messages
3026# even if server is disconnected, when the server appears we send all
3027# accumulated messages to it. (boolean value)
3028#zmq_immediate=true
3029
3030# Enable/disable TCP keepalive (KA) mechanism. The default value of -1 (or any
3031# other negative value) means to skip any overrides and leave it to OS default;
3032# 0 and 1 (or any other positive value) mean to disable and enable the option
3033# respectively. (integer value)
3034#zmq_tcp_keepalive=-1
3035
3036# The duration between two keepalive transmissions in idle condition. The unit
3037# is platform dependent, for example, seconds in Linux, milliseconds in Windows
3038# etc. The default value of -1 (or any other negative value and 0) means to skip
3039# any overrides and leave it to OS default. (integer value)
3040#zmq_tcp_keepalive_idle=-1
3041
3042# The number of retransmissions to be carried out before declaring that remote
3043# end is not available. The default value of -1 (or any other negative value and
3044# 0) means to skip any overrides and leave it to OS default. (integer value)
3045#zmq_tcp_keepalive_cnt=-1
3046
3047# The duration between two successive keepalive retransmissions, if
3048# acknowledgement to the previous keepalive transmission is not received. The
3049# unit is platform dependent, for example, seconds in Linux, milliseconds in
3050# Windows etc. The default value of -1 (or any other negative value and 0) means
3051# to skip any overrides and leave it to OS default. (integer value)
3052#zmq_tcp_keepalive_intvl=-1
3053
3054# Maximum number of (green) threads to work concurrently. (integer value)
3055#rpc_thread_pool_size=100
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003056{%- if compute.message_queue.rpc_thread_pool_size is defined %}
3057rpc_thread_pool_size = {{ compute.message_queue.rpc_thread_pool_size }}
3058{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003059
3060# Expiration timeout in seconds of a sent/received message after which it is not
3061# tracked anymore by a client/server. (integer value)
3062#rpc_message_ttl=300
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003063{%- if compute.message_queue.rpc_message_ttl is defined %}
3064rpc_message_ttl = {{ compute.message_queue.rpc_message_ttl }}
3065{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003066
3067# Wait for message acknowledgements from receivers. This mechanism works only
3068# via proxy without PUB/SUB. (boolean value)
3069#rpc_use_acks=false
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003070{%- if compute.message_queue.rpc_use_acks is defined %}
3071rpc_use_acks = {{ compute.message_queue.rpc_use_acks }}
3072{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003073
3074# Number of seconds to wait for an ack from a cast/call. After each retry
3075# attempt this timeout is multiplied by some specified multiplier. (integer
3076# value)
3077#rpc_ack_timeout_base=15
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003078{%- if compute.message_queue.rpc_ack_timeout_base is defined %}
3079rpc_ack_timeout_base = {{ compute.message_queue.rpc_ack_timeout_base }}
3080{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003081
3082# Number to multiply base ack timeout by after each retry attempt. (integer
3083# value)
3084#rpc_ack_timeout_multiplier=2
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003085{%- if compute.message_queue.rpc_ack_timeout_multiplier is defined %}
3086rpc_ack_timeout_multiplier = {{ compute.message_queue.rpc_ack_timeout_multiplier }}
3087{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003088
3089# Default number of message sending attempts in case of any problems occurred:
3090# positive value N means at most N retries, 0 means no retries, None or -1 (or
3091# any other negative values) mean to retry forever. This option is used only if
3092# acknowledgments are enabled. (integer value)
3093#rpc_retry_attempts=3
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003094{%- if compute.message_queue.rpc_retry_attempts is defined %}
3095rpc_retry_attempts = {{ compute.message_queue.rpc_retry_attempts }}
3096{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003097
3098# List of publisher hosts SubConsumer can subscribe on. This option has higher
3099# priority then the default publishers list taken from the matchmaker. (list
3100# value)
3101#subscribe_on =
3102
3103# Size of executor thread pool. (integer value)
3104# Deprecated group/name - [DEFAULT]/rpc_thread_pool_size
3105#executor_thread_pool_size=64
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02003106executor_thread_pool_size = {{ compute.message_queue.get('executor_thread_pool_size', 70) }}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003107
3108# Seconds to wait for a response from a call. (integer value)
3109#rpc_response_timeout=60
Oleh Hryhorovacf77882018-08-20 14:56:18 +03003110{%- if compute.message_queue.rpc_response_timeout is defined %}
3111rpc_response_timeout = {{ compute.message_queue.rpc_response_timeout }}
3112{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01003113
3114{%- set rabbit_port = compute.message_queue.get('port', 5671 if compute.message_queue.get('ssl',{}).get('enabled', False) else 5672) %}
3115
3116{%- if compute.message_queue.members is defined %}
3117transport_url = rabbit://{% for member in compute.message_queue.members -%}
3118 {{ compute.message_queue.user }}:{{ compute.message_queue.password }}@{{ member.host }}:{{ member.get('port', rabbit_port) }}
3119 {%- if not loop.last -%},{%- endif -%}
3120 {%- endfor -%}
3121 /{{ compute.message_queue.virtual_host }}
3122{%- else %}
3123transport_url = rabbit://{{ compute.message_queue.user }}:{{ compute.message_queue.password }}@{{ compute.message_queue.host }}:{{ rabbit_port}}/{{ compute.message_queue.virtual_host }}
3124{%- endif %}
3125
3126# DEPRECATED: The messaging driver to use, defaults to rabbit. Other drivers
3127# include amqp and zmq. (string value)
3128# This option is deprecated for removal.
3129# Its value may be silently ignored in the future.
3130# Reason: Replaced by [DEFAULT]/transport_url
3131#rpc_backend=rabbit
3132
3133# The default exchange under which topics are scoped. May be overridden by an
3134# exchange name specified in the transport_url option. (string value)
3135#control_exchange=openstack
3136
3137#
3138# From oslo.service.periodic_task
3139#
3140
3141# Some periodic tasks can be run in a separate process. Should we run them here?
3142# (boolean value)
3143#run_external_periodic_tasks=true
3144
3145#
3146# From oslo.service.service
3147#
3148
3149# Enable eventlet backdoor. Acceptable values are 0, <port>, and <start>:<end>,
3150# where 0 results in listening on a random tcp port number; <port> results in
3151# listening on the specified port number (and not enabling backdoor if that port
3152# is in use); and <start>:<end> results in listening on the smallest unused port
3153# number within the specified range of port numbers. The chosen port is
3154# displayed in the service's log file. (string value)
3155#backdoor_port=<None>
3156
3157# Enable eventlet backdoor, using the provided path as a unix socket that can
3158# receive connections. This option is mutually exclusive with 'backdoor_port' in
3159# that only one should be provided. If both are provided then the existence of
3160# this option overrides the usage of that option. (string value)
3161#backdoor_socket=<None>
3162
3163# Enables or disables logging values of all registered options when starting a
3164# service (at DEBUG level). (boolean value)
3165#log_options=true
3166
3167# Specify a timeout after which a gracefully shutdown server will exit. Zero
3168# value means endless wait. (integer value)
3169#graceful_shutdown_timeout=60
3170
3171
3172[api]
3173#
3174# Options under this group are used to define Nova API.
3175
3176#
3177# From nova.conf
3178#
3179
3180#
3181# This determines the strategy to use for authentication: keystone or noauth2.
3182# 'noauth2' is designed for testing only, as it does no actual credential
3183# checking. 'noauth2' provides administrative credentials only if 'admin' is
3184# specified as the username.
3185# (string value)
3186# Allowed values: keystone, noauth2
3187# Deprecated group/name - [DEFAULT]/auth_strategy
3188#auth_strategy=keystone
3189auth_strategy=keystone
3190
3191#
3192# When True, the 'X-Forwarded-For' header is treated as the canonical remote
3193# address. When False (the default), the 'remote_address' header is used.
3194#
3195# You should only enable this if you have an HTML sanitizing proxy.
3196# (boolean value)
3197# Deprecated group/name - [DEFAULT]/use_forwarded_for
3198#use_forwarded_for=false
3199
3200#
3201# When gathering the existing metadata for a config drive, the EC2-style
3202# metadata is returned for all versions that don't appear in this option.
3203# As of the Liberty release, the available versions are:
3204#
3205# * 1.0
3206# * 2007-01-19
3207# * 2007-03-01
3208# * 2007-08-29
3209# * 2007-10-10
3210# * 2007-12-15
3211# * 2008-02-01
3212# * 2008-09-01
3213# * 2009-04-04
3214#
3215# The option is in the format of a single string, with each version separated
3216# by a space.
3217#
3218# Possible values:
3219#
3220# * Any string that represents zero or more versions, separated by spaces.
3221# (string value)
3222# Deprecated group/name - [DEFAULT]/config_drive_skip_versions
3223#config_drive_skip_versions=1.0 2007-01-19 2007-03-01 2007-08-29 2007-10-10 2007-12-15 2008-02-01 2008-09-01
3224
3225#
3226# A list of vendordata providers.
3227#
3228# vendordata providers are how deployers can provide metadata via configdrive
3229# and metadata that is specific to their deployment. There are currently two
3230# supported providers: StaticJSON and DynamicJSON.
3231#
3232# StaticJSON reads a JSON file configured by the flag vendordata_jsonfile_path
3233# and places the JSON from that file into vendor_data.json and
3234# vendor_data2.json.
3235#
3236# DynamicJSON is configured via the vendordata_dynamic_targets flag, which is
3237# documented separately. For each of the endpoints specified in that flag, a
3238# section is added to the vendor_data2.json.
3239#
3240# For more information on the requirements for implementing a vendordata
3241# dynamic endpoint, please see the vendordata.rst file in the nova developer
3242# reference.
3243#
3244# Possible values:
3245#
3246# * A list of vendordata providers, with StaticJSON and DynamicJSON being
3247# current options.
3248#
3249# Related options:
3250#
3251# * vendordata_dynamic_targets
3252# * vendordata_dynamic_ssl_certfile
3253# * vendordata_dynamic_connect_timeout
3254# * vendordata_dynamic_read_timeout
3255# * vendordata_dynamic_failure_fatal
3256# (list value)
3257# Deprecated group/name - [DEFAULT]/vendordata_providers
3258#vendordata_providers =
3259
3260#
3261# A list of targets for the dynamic vendordata provider. These targets are of
3262# the form <name>@<url>.
3263#
3264# The dynamic vendordata provider collects metadata by contacting external REST
3265# services and querying them for information about the instance. This behaviour
3266# is documented in the vendordata.rst file in the nova developer reference.
3267# (list value)
3268# Deprecated group/name - [DEFAULT]/vendordata_dynamic_targets
3269#vendordata_dynamic_targets =
3270
3271#
3272# Path to an optional certificate file or CA bundle to verify dynamic
3273# vendordata REST services ssl certificates against.
3274#
3275# Possible values:
3276#
3277# * An empty string, or a path to a valid certificate file
3278#
3279# Related options:
3280#
3281# * vendordata_providers
3282# * vendordata_dynamic_targets
3283# * vendordata_dynamic_connect_timeout
3284# * vendordata_dynamic_read_timeout
3285# * vendordata_dynamic_failure_fatal
3286# (string value)
3287# Deprecated group/name - [DEFAULT]/vendordata_dynamic_ssl_certfile
3288#vendordata_dynamic_ssl_certfile =
3289
3290#
3291# Maximum wait time for an external REST service to connect.
3292#
3293# Possible values:
3294#
3295# * Any integer with a value greater than three (the TCP packet retransmission
3296# timeout). Note that instance start may be blocked during this wait time,
3297# so this value should be kept small.
3298#
3299# Related options:
3300#
3301# * vendordata_providers
3302# * vendordata_dynamic_targets
3303# * vendordata_dynamic_ssl_certfile
3304# * vendordata_dynamic_read_timeout
3305# * vendordata_dynamic_failure_fatal
3306# (integer value)
3307# Minimum value: 3
3308# Deprecated group/name - [DEFAULT]/vendordata_dynamic_connect_timeout
3309#vendordata_dynamic_connect_timeout=5
3310
3311#
3312# Maximum wait time for an external REST service to return data once connected.
3313#
3314# Possible values:
3315#
3316# * Any integer. Note that instance start is blocked during this wait time,
3317# so this value should be kept small.
3318#
3319# Related options:
3320#
3321# * vendordata_providers
3322# * vendordata_dynamic_targets
3323# * vendordata_dynamic_ssl_certfile
3324# * vendordata_dynamic_connect_timeout
3325# * vendordata_dynamic_failure_fatal
3326# (integer value)
3327# Minimum value: 0
3328# Deprecated group/name - [DEFAULT]/vendordata_dynamic_read_timeout
3329#vendordata_dynamic_read_timeout=5
3330
3331#
3332# Should failures to fetch dynamic vendordata be fatal to instance boot?
3333#
3334# Related options:
3335#
3336# * vendordata_providers
3337# * vendordata_dynamic_targets
3338# * vendordata_dynamic_ssl_certfile
3339# * vendordata_dynamic_connect_timeout
3340# * vendordata_dynamic_read_timeout
3341# (boolean value)
3342#vendordata_dynamic_failure_fatal=false
3343
3344#
3345# This option is the time (in seconds) to cache metadata. When set to 0,
3346# metadata caching is disabled entirely; this is generally not recommended for
3347# performance reasons. Increasing this setting should improve response times
3348# of the metadata API when under heavy load. Higher values may increase memory
3349# usage, and result in longer times for host metadata changes to take effect.
3350# (integer value)
3351# Minimum value: 0
3352# Deprecated group/name - [DEFAULT]/metadata_cache_expiration
3353#metadata_cache_expiration=15
3354
3355#
3356# Cloud providers may store custom data in vendor data file that will then be
3357# available to the instances via the metadata service, and to the rendering of
3358# config-drive. The default class for this, JsonFileVendorData, loads this
3359# information from a JSON file, whose path is configured by this option. If
3360# there is no path set by this option, the class returns an empty dictionary.
3361#
3362# Possible values:
3363#
3364# * Any string representing the path to the data file, or an empty string
3365# (default).
3366# (string value)
3367# Deprecated group/name - [DEFAULT]/vendordata_jsonfile_path
3368#vendordata_jsonfile_path=<None>
3369
3370#
3371# As a query can potentially return many thousands of items, you can limit the
3372# maximum number of items in a single response by setting this option.
3373# (integer value)
3374# Minimum value: 0
3375# Deprecated group/name - [DEFAULT]/osapi_max_limit
3376#max_limit=1000
3377
3378#
3379# This string is prepended to the normal URL that is returned in links to the
3380# OpenStack Compute API. If it is empty (the default), the URLs are returned
3381# unchanged.
3382#
3383# Possible values:
3384#
3385# * Any string, including an empty string (the default).
3386# (string value)
3387# Deprecated group/name - [DEFAULT]/osapi_compute_link_prefix
3388#compute_link_prefix=<None>
3389
3390#
3391# This string is prepended to the normal URL that is returned in links to
3392# Glance resources. If it is empty (the default), the URLs are returned
3393# unchanged.
3394#
3395# Possible values:
3396#
3397# * Any string, including an empty string (the default).
3398# (string value)
3399# Deprecated group/name - [DEFAULT]/osapi_glance_link_prefix
3400#glance_link_prefix=<None>
3401
3402#
3403# Operators can turn off the ability for a user to take snapshots of their
3404# instances by setting this option to False. When disabled, any attempt to
3405# take a snapshot will result in a HTTP 400 response ("Bad Request").
3406# (boolean value)
3407# Deprecated group/name - [DEFAULT]/allow_instance_snapshots
3408#allow_instance_snapshots=true
3409
3410#
3411# This option is a list of all instance states for which network address
3412# information should not be returned from the API.
3413#
3414# Possible values:
3415#
3416# A list of strings, where each string is a valid VM state, as defined in
3417# nova/compute/vm_states.py. As of the Newton release, they are:
3418#
3419# * "active"
3420# * "building"
3421# * "paused"
3422# * "suspended"
3423# * "stopped"
3424# * "rescued"
3425# * "resized"
3426# * "soft-delete"
3427# * "deleted"
3428# * "error"
3429# * "shelved"
3430# * "shelved_offloaded"
3431# (list value)
3432# Deprecated group/name - [DEFAULT]/osapi_hide_server_address_states
3433#hide_server_address_states=building
3434
3435# The full path to the fping binary. (string value)
3436# Deprecated group/name - [DEFAULT]/fping_path
3437#fping_path=/usr/sbin/fping
3438
3439#
3440# When True, the TenantNetworkController will query the Neutron API to get the
3441# default networks to use.
3442#
3443# Related options:
3444#
3445# * neutron_default_tenant_id
3446# (boolean value)
3447# Deprecated group/name - [DEFAULT]/use_neutron_default_nets
3448#use_neutron_default_nets=false
3449
3450#
3451# Tenant ID for getting the default network from Neutron API (also referred in
3452# some places as the 'project ID') to use.
3453#
3454# Related options:
3455#
3456# * use_neutron_default_nets
3457# (string value)
3458# Deprecated group/name - [DEFAULT]/neutron_default_tenant_id
3459#neutron_default_tenant_id=default
3460
3461#
3462# Enables returning of the instance password by the relevant server API calls
3463# such as create, rebuild, evacuate, or rescue. If the hypervisor does not
3464# support password injection, then the password returned will not be correct,
3465# so if your hypervisor does not support password injection, set this to False.
3466# (boolean value)
3467# Deprecated group/name - [DEFAULT]/enable_instance_password
3468#enable_instance_password=true
3469
3470
3471[api_database]
3472#
3473# The *Nova API Database* is a separate database which is used for information
3474# which is used across *cells*. This database is mandatory since the Mitaka
3475# release (13.0.0).
3476
3477#
3478# From nova.conf
3479#
3480
3481# The SQLAlchemy connection string to use to connect to the database. (string
3482# value)
3483connection=sqlite:////var/lib/nova/nova.sqlite
3484
3485# If True, SQLite uses synchronous mode. (boolean value)
3486#sqlite_synchronous=true
3487
3488# The SQLAlchemy connection string to use to connect to the slave database.
3489# (string value)
3490#slave_connection=<None>
3491
3492# The SQL mode to be used for MySQL sessions. This option, including the
3493# default, overrides any server-set SQL mode. To use whatever SQL mode is set by
3494# the server configuration, set this to no value. Example: mysql_sql_mode=
3495# (string value)
3496#mysql_sql_mode=TRADITIONAL
3497
3498# Timeout before idle SQL connections are reaped. (integer value)
3499#idle_timeout=3600
3500
3501# Maximum number of SQL connections to keep open in a pool. Setting a value of 0
3502# indicates no limit. (integer value)
3503#max_pool_size=<None>
3504
3505# Maximum number of database connection retries during startup. Set to -1 to
3506# specify an infinite retry count. (integer value)
3507#max_retries=10
3508
3509# Interval between retries of opening a SQL connection. (integer value)
3510#retry_interval=10
3511
3512# If set, use this value for max_overflow with SQLAlchemy. (integer value)
3513#max_overflow=<None>
3514
3515# Verbosity of SQL debugging information: 0=None, 100=Everything. (integer
3516# value)
3517#connection_debug=0
3518
3519# Add Python stack traces to SQL as comment strings. (boolean value)
3520#connection_trace=false
3521
3522# If set, use this value for pool_timeout with SQLAlchemy. (integer value)
3523#pool_timeout=<None>
3524
3525{%- if compute.get('barbican', {}).get('enabled', False) %}
3526[barbican]
3527
3528#
3529# From nova.conf
3530#
3531
3532# Use this endpoint to connect to Barbican, for example:
3533# "http://localhost:9311/" (string value)
3534#barbican_endpoint=<None>
3535
3536# Version of the Barbican API, for example: "v1" (string value)
3537#barbican_api_version=<None>
3538
3539# Use this endpoint to connect to Keystone (string value)
3540auth_endpoint={{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.get('host', 'localhost') }}:{{ compute.identity.get('port', '5000') }}/v3
3541{%- if compute.identity.get('protocol', 'http') == 'https' %}
3542cafile={{ compute.identity.get('cacert_file', compute.cacert_file) }}
3543{%- endif %}
3544
3545# Number of seconds to wait before retrying poll for key creation completion
3546# (integer value)
3547#retry_delay=1
3548
3549# Number of times to retry poll for key creation completion (integer value)
3550#number_of_retries=60
3551{%- endif %}
3552
3553[cache]
3554
3555#
3556# From nova.conf
3557#
3558{%- if compute.cache is defined %}
3559backend = oslo_cache.memcache_pool
3560enabled = true
3561memcache_servers={%- for member in compute.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
3562{%- endif %}
3563# Prefix for building the configuration dictionary for the cache region. This
3564# should not need to be changed unless there is another dogpile.cache region
3565# with the same configuration name. (string value)
3566#config_prefix=cache.oslo
3567
3568# Default TTL, in seconds, for any cached item in the dogpile.cache region. This
3569# applies to any cached method that doesn't have an explicit cache expiration
3570# time defined for it. (integer value)
3571#expiration_time=600
3572
3573# Dogpile.cache backend module. It is recommended that Memcache or Redis
3574# (dogpile.cache.redis) be used in production deployments. For eventlet-based or
3575# highly threaded servers, Memcache with pooling (oslo_cache.memcache_pool) is
3576# recommended. For low thread servers, dogpile.cache.memcached is recommended.
3577# Test environments with a single instance of the server can use the
3578# dogpile.cache.memory backend. (string value)
3579#backend=dogpile.cache.null
3580
3581# Arguments supplied to the backend module. Specify this option once per
3582# argument to be passed to the dogpile.cache backend. Example format:
3583# "<argname>:<value>". (multi valued)
3584#backend_argument =
3585
3586# Proxy classes to import that will affect the way the dogpile.cache backend
3587# functions. See the dogpile.cache documentation on changing-backend-behavior.
3588# (list value)
3589#proxies =
3590
3591# Global toggle for caching. (boolean value)
3592#enabled=false
3593
3594# Extra debugging from the cache backend (cache keys, get/set/delete/etc calls).
3595# This is only really useful if you need to see the specific cache-backend
3596# get/set/delete calls with the keys/values. Typically this should be left set
3597# to false. (boolean value)
3598#debug_cache_backend=false
3599
3600# Memcache servers in the format of "host:port". (dogpile.cache.memcache and
3601# oslo_cache.memcache_pool backends only). (list value)
3602#memcache_servers=localhost:11211
3603
3604# Number of seconds memcached server is considered dead before it is tried
3605# again. (dogpile.cache.memcache and oslo_cache.memcache_pool backends only).
3606# (integer value)
3607#memcache_dead_retry=300
3608
3609# Timeout in seconds for every call to a server. (dogpile.cache.memcache and
3610# oslo_cache.memcache_pool backends only). (integer value)
3611#memcache_socket_timeout=3
3612
3613# Max total number of open connections to every memcached server.
3614# (oslo_cache.memcache_pool backend only). (integer value)
3615#memcache_pool_maxsize=10
3616
3617# Number of seconds a connection to memcached is held unused in the pool before
3618# it is closed. (oslo_cache.memcache_pool backend only). (integer value)
3619#memcache_pool_unused_timeout=60
3620
3621# Number of seconds that an operation will wait to get a memcache client
3622# connection. (integer value)
3623#memcache_pool_connection_get_timeout=10
3624
3625
3626[cells]
3627#
3628# Cells options allow you to use cells functionality in openstack
3629# deployment.
3630#
3631# Note that the options in this group are only for cells v1 functionality, which
3632# is considered experimental and not recommended for new deployments. Cells v1
3633# is being replaced with cells v2, which starting in the 15.0.0 Ocata release is
3634# required and all Nova deployments will be at least a cells v2 cell of one.
3635#
3636
3637#
3638# From nova.conf
3639#
3640
3641# DEPRECATED:
3642# Topic.
3643#
3644# This is the message queue topic that cells nodes listen on. It is
3645# used when the cells service is started up to configure the queue,
3646# and whenever an RPC call to the scheduler is made.
3647#
3648# Possible values:
3649#
3650# * cells: This is the recommended and the default value.
3651# (string value)
3652# This option is deprecated for removal since 15.0.0.
3653# Its value may be silently ignored in the future.
3654# Reason:
3655# Configurable RPC topics provide little value and can result in a wide variety
3656# of errors. They should not be used.
3657#topic=cells
3658
3659#
3660# Enable cell v1 functionality.
3661#
3662# Note that cells v1 is considered experimental and not recommended for new
3663# Nova deployments. Cells v1 is being replaced by cells v2 which starting in
3664# the 15.0.0 Ocata release, all Nova deployments are at least a cells v2 cell
3665# of one. Setting this option, or any other options in the [cells] group, is
3666# not required for cells v2.
3667#
3668# When this functionality is enabled, it lets you to scale an OpenStack
3669# Compute cloud in a more distributed fashion without having to use
3670# complicated technologies like database and message queue clustering.
3671# Cells are configured as a tree. The top-level cell should have a host
3672# that runs a nova-api service, but no nova-compute services. Each
3673# child cell should run all of the typical nova-* services in a regular
3674# Compute cloud except for nova-api. You can think of cells as a normal
3675# Compute deployment in that each cell has its own database server and
3676# message queue broker.
3677#
3678# Related options:
3679#
3680# * name: A unique cell name must be given when this functionality
3681# is enabled.
3682# * cell_type: Cell type should be defined for all cells.
3683# (boolean value)
3684enable=False
3685
3686#
3687# Name of the current cell.
3688#
3689# This value must be unique for each cell. Name of a cell is used as
3690# its id, leaving this option unset or setting the same name for
3691# two or more cells may cause unexpected behaviour.
3692#
3693# Related options:
3694#
3695# * enabled: This option is meaningful only when cells service
3696# is enabled
3697# (string value)
3698#name=nova
3699
3700#
3701# Cell capabilities.
3702#
3703# List of arbitrary key=value pairs defining capabilities of the
3704# current cell to be sent to the parent cells. These capabilities
3705# are intended to be used in cells scheduler filters/weighers.
3706#
3707# Possible values:
3708#
3709# * key=value pairs list for example;
3710# ``hypervisor=xenserver;kvm,os=linux;windows``
3711# (list value)
3712#capabilities=hypervisor=xenserver;kvm,os=linux;windows
3713
3714#
3715# Call timeout.
3716#
3717# Cell messaging module waits for response(s) to be put into the
3718# eventlet queue. This option defines the seconds waited for
3719# response from a call to a cell.
3720#
3721# Possible values:
3722#
3723# * An integer, corresponding to the interval time in seconds.
3724# (integer value)
3725# Minimum value: 0
3726#call_timeout=60
3727
3728#
3729# Reserve percentage
3730#
3731# Percentage of cell capacity to hold in reserve, so the minimum
3732# amount of free resource is considered to be;
3733#
3734# min_free = total * (reserve_percent / 100.0)
3735#
3736# This option affects both memory and disk utilization.
3737#
3738# The primary purpose of this reserve is to ensure some space is
3739# available for users who want to resize their instance to be larger.
3740# Note that currently once the capacity expands into this reserve
3741# space this option is ignored.
3742#
3743# Possible values:
3744#
3745# * An integer or float, corresponding to the percentage of cell capacity to
3746# be held in reserve.
3747# (floating point value)
3748#reserve_percent=10.0
3749
3750#
3751# Type of cell.
3752#
3753# When cells feature is enabled the hosts in the OpenStack Compute
3754# cloud are partitioned into groups. Cells are configured as a tree.
3755# The top-level cell's cell_type must be set to ``api``. All other
3756# cells are defined as a ``compute cell`` by default.
3757#
3758# Related option:
3759#
3760# * quota_driver: Disable quota checking for the child cells.
3761# (nova.quota.NoopQuotaDriver)
3762# (string value)
3763# Allowed values: api, compute
3764#cell_type=compute
3765
3766#
3767# Mute child interval.
3768#
3769# Number of seconds after which a lack of capability and capacity
3770# update the child cell is to be treated as a mute cell. Then the
3771# child cell will be weighed as recommend highly that it be skipped.
3772#
3773# Possible values:
3774#
3775# * An integer, corresponding to the interval time in seconds.
3776# (integer value)
3777#mute_child_interval=300
3778
3779#
3780# Bandwidth update interval.
3781#
3782# Seconds between bandwidth usage cache updates for cells.
3783#
3784# Possible values:
3785#
3786# * An integer, corresponding to the interval time in seconds.
3787# (integer value)
3788#bandwidth_update_interval=600
3789
3790#
3791# Instance update sync database limit.
3792#
3793# Number of instances to pull from the database at one time for
3794# a sync. If there are more instances to update the results will
3795# be paged through.
3796#
3797# Possible values:
3798#
3799# * An integer, corresponding to a number of instances.
3800# (integer value)
3801#instance_update_sync_database_limit=100
3802
3803#
3804# Mute weight multiplier.
3805#
3806# Multiplier used to weigh mute children. Mute children cells are
3807# recommended to be skipped so their weight is multiplied by this
3808# negative value.
3809#
3810# Possible values:
3811#
3812# * Negative numeric number
3813# (floating point value)
3814#mute_weight_multiplier=-10000.0
3815
3816#
3817# Ram weight multiplier.
3818#
3819# Multiplier used for weighing ram. Negative numbers indicate that
3820# Compute should stack VMs on one host instead of spreading out new
3821# VMs to more hosts in the cell.
3822#
3823# Possible values:
3824#
3825# * Numeric multiplier
3826# (floating point value)
3827#ram_weight_multiplier=10.0
3828
3829#
3830# Offset weight multiplier
3831#
3832# Multiplier used to weigh offset weigher. Cells with higher
3833# weight_offsets in the DB will be preferred. The weight_offset
3834# is a property of a cell stored in the database. It can be used
3835# by a deployer to have scheduling decisions favor or disfavor
3836# cells based on the setting.
3837#
3838# Possible values:
3839#
3840# * Numeric multiplier
3841# (floating point value)
3842#offset_weight_multiplier=1.0
3843
3844#
3845# Instance updated at threshold
3846#
3847# Number of seconds after an instance was updated or deleted to
3848# continue to update cells. This option lets cells manager to only
3849# attempt to sync instances that have been updated recently.
3850# i.e., a threshold of 3600 means to only update instances that
3851# have modified in the last hour.
3852#
3853# Possible values:
3854#
3855# * Threshold in seconds
3856#
3857# Related options:
3858#
3859# * This value is used with the ``instance_update_num_instances``
3860# value in a periodic task run.
3861# (integer value)
3862#instance_updated_at_threshold=3600
3863
3864#
3865# Instance update num instances
3866#
3867# On every run of the periodic task, nova cells manager will attempt to
3868# sync instance_updated_at_threshold number of instances. When the
3869# manager gets the list of instances, it shuffles them so that multiple
3870# nova-cells services do not attempt to sync the same instances in
3871# lockstep.
3872#
3873# Possible values:
3874#
3875# * Positive integer number
3876#
3877# Related options:
3878#
3879# * This value is used with the ``instance_updated_at_threshold``
3880# value in a periodic task run.
3881# (integer value)
3882#instance_update_num_instances=1
3883
3884#
3885# Maximum hop count
3886#
3887# When processing a targeted message, if the local cell is not the
3888# target, a route is defined between neighbouring cells. And the
3889# message is processed across the whole routing path. This option
3890# defines the maximum hop counts until reaching the target.
3891#
3892# Possible values:
3893#
3894# * Positive integer value
3895# (integer value)
3896#max_hop_count=10
3897
3898#
3899# Cells scheduler.
3900#
3901# The class of the driver used by the cells scheduler. This should be
3902# the full Python path to the class to be used. If nothing is specified
3903# in this option, the CellsScheduler is used.
3904# (string value)
3905#scheduler=nova.cells.scheduler.CellsScheduler
3906
3907#
3908# RPC driver queue base.
3909#
3910# When sending a message to another cell by JSON-ifying the message
3911# and making an RPC cast to 'process_message', a base queue is used.
3912# This option defines the base queue name to be used when communicating
3913# between cells. Various topics by message type will be appended to this.
3914#
3915# Possible values:
3916#
3917# * The base queue name to be used when communicating between cells.
3918# (string value)
3919#rpc_driver_queue_base=cells.intercell
3920
3921#
3922# Scheduler filter classes.
3923#
3924# Filter classes the cells scheduler should use. An entry of
3925# "nova.cells.filters.all_filters" maps to all cells filters
3926# included with nova. As of the Mitaka release the following
3927# filter classes are available:
3928#
3929# Different cell filter: A scheduler hint of 'different_cell'
3930# with a value of a full cell name may be specified to route
3931# a build away from a particular cell.
3932#
3933# Image properties filter: Image metadata named
3934# 'hypervisor_version_requires' with a version specification
3935# may be specified to ensure the build goes to a cell which
3936# has hypervisors of the required version. If either the version
3937# requirement on the image or the hypervisor capability of the
3938# cell is not present, this filter returns without filtering out
3939# the cells.
3940#
3941# Target cell filter: A scheduler hint of 'target_cell' with a
3942# value of a full cell name may be specified to route a build to
3943# a particular cell. No error handling is done as there's no way
3944# to know whether the full path is a valid.
3945#
3946# As an admin user, you can also add a filter that directs builds
3947# to a particular cell.
3948#
3949# (list value)
3950#scheduler_filter_classes=nova.cells.filters.all_filters
3951
3952#
3953# Scheduler weight classes.
3954#
3955# Weigher classes the cells scheduler should use. An entry of
3956# "nova.cells.weights.all_weighers" maps to all cell weighers
3957# included with nova. As of the Mitaka release the following
3958# weight classes are available:
3959#
3960# mute_child: Downgrades the likelihood of child cells being
3961# chosen for scheduling requests, which haven't sent capacity
3962# or capability updates in a while. Options include
3963# mute_weight_multiplier (multiplier for mute children; value
3964# should be negative).
3965#
3966# ram_by_instance_type: Select cells with the most RAM capacity
3967# for the instance type being requested. Because higher weights
3968# win, Compute returns the number of available units for the
3969# instance type requested. The ram_weight_multiplier option defaults
3970# to 10.0 that adds to the weight by a factor of 10. Use a negative
3971# number to stack VMs on one host instead of spreading out new VMs
3972# to more hosts in the cell.
3973#
3974# weight_offset: Allows modifying the database to weight a particular
3975# cell. The highest weight will be the first cell to be scheduled for
3976# launching an instance. When the weight_offset of a cell is set to 0,
3977# it is unlikely to be picked but it could be picked if other cells
3978# have a lower weight, like if they're full. And when the weight_offset
3979# is set to a very high value (for example, '999999999999999'), it is
3980# likely to be picked if another cell do not have a higher weight.
3981# (list value)
3982#scheduler_weight_classes=nova.cells.weights.all_weighers
3983
3984#
3985# Scheduler retries.
3986#
3987# How many retries when no cells are available. Specifies how many
3988# times the scheduler tries to launch a new instance when no cells
3989# are available.
3990#
3991# Possible values:
3992#
3993# * Positive integer value
3994#
3995# Related options:
3996#
3997# * This value is used with the ``scheduler_retry_delay`` value
3998# while retrying to find a suitable cell.
3999# (integer value)
4000#scheduler_retries=10
4001
4002#
4003# Scheduler retry delay.
4004#
4005# Specifies the delay (in seconds) between scheduling retries when no
4006# cell can be found to place the new instance on. When the instance
4007# could not be scheduled to a cell after ``scheduler_retries`` in
4008# combination with ``scheduler_retry_delay``, then the scheduling
4009# of the instance failed.
4010#
4011# Possible values:
4012#
4013# * Time in seconds.
4014#
4015# Related options:
4016#
4017# * This value is used with the ``scheduler_retries`` value
4018# while retrying to find a suitable cell.
4019# (integer value)
4020#scheduler_retry_delay=2
4021
4022#
4023# DB check interval.
4024#
4025# Cell state manager updates cell status for all cells from the DB
4026# only after this particular interval time is passed. Otherwise cached
4027# status are used. If this value is 0 or negative all cell status are
4028# updated from the DB whenever a state is needed.
4029#
4030# Possible values:
4031#
4032# * Interval time, in seconds.
4033#
4034# (integer value)
4035#db_check_interval=60
4036
4037#
4038# Optional cells configuration.
4039#
4040# Configuration file from which to read cells configuration. If given,
4041# overrides reading cells from the database.
4042#
4043# Cells store all inter-cell communication data, including user names
4044# and passwords, in the database. Because the cells data is not updated
4045# very frequently, use this option to specify a JSON file to store
4046# cells data. With this configuration, the database is no longer
4047# consulted when reloading the cells data. The file must have columns
4048# present in the Cell model (excluding common database fields and the
4049# id column). You must specify the queue connection information through
4050# a transport_url field, instead of username, password, and so on.
4051#
4052# The transport_url has the following form:
4053# rabbit://USERNAME:PASSWORD@HOSTNAME:PORT/VIRTUAL_HOST
4054#
4055# Possible values:
4056#
4057# The scheme can be either qpid or rabbit, the following sample shows
4058# this optional configuration:
4059#
4060# {
4061# "parent": {
4062# "name": "parent",
4063# "api_url": "http://api.example.com:8774",
4064# "transport_url": "rabbit://rabbit.example.com",
4065# "weight_offset": 0.0,
4066# "weight_scale": 1.0,
4067# "is_parent": true
4068# },
4069# "cell1": {
4070# "name": "cell1",
4071# "api_url": "http://api.example.com:8774",
4072# "transport_url": "rabbit://rabbit1.example.com",
4073# "weight_offset": 0.0,
4074# "weight_scale": 1.0,
4075# "is_parent": false
4076# },
4077# "cell2": {
4078# "name": "cell2",
4079# "api_url": "http://api.example.com:8774",
4080# "transport_url": "rabbit://rabbit2.example.com",
4081# "weight_offset": 0.0,
4082# "weight_scale": 1.0,
4083# "is_parent": false
4084# }
4085# }
4086#
4087# (string value)
4088#cells_config=<None>
4089
4090
4091[cinder]
4092
4093#
4094# From nova.conf
4095#
4096os_region_name = {{ compute.identity.region }}
4097catalog_info=volumev2:cinderv2:internalURL
4098{%- if compute.image.get('protocol', 'http') == 'https' %}
4099cafile={{ compute.identity.get('cacert_file', compute.cacert_file) }}
4100{%- endif %}
4101#
4102# Info to match when looking for cinder in the service catalog.
4103#
4104# Possible values:
4105#
4106# * Format is separated values of the form:
4107# <service_type>:<service_name>:<endpoint_type>
4108#
4109# Note: Nova does not support the Cinder v1 API since the Nova 15.0.0 Ocata
4110# release.
4111#
4112# Related options:
4113#
4114# * endpoint_template - Setting this option will override catalog_info
4115# (string value)
4116#catalog_info=volumev2:cinderv2:publicURL
4117
4118#
4119# If this option is set then it will override service catalog lookup with
4120# this template for cinder endpoint
4121#
4122# Possible values:
4123#
4124# * URL for cinder endpoint API
4125# e.g. http://localhost:8776/v2/%(project_id)s
4126#
4127# Note: Nova does not support the Cinder v1 API since the Nova 15.0.0 Ocata
4128# release.
4129#
4130# Related options:
4131#
4132# * catalog_info - If endpoint_template is not set, catalog_info will be used.
4133# (string value)
4134#endpoint_template=<None>
4135
4136#
4137# Region name of this node. This is used when picking the URL in the service
4138# catalog.
4139#
4140# Possible values:
4141#
4142# * Any string representing region name
4143# (string value)
4144#os_region_name=<None>
4145
4146#
4147# Number of times cinderclient should retry on any failed http call.
4148# 0 means connection is attempted only once. Setting it to any positive integer
4149# means that on failure connection is retried that many times e.g. setting it
4150# to 3 means total attempts to connect will be 4.
4151#
4152# Possible values:
4153#
4154# * Any integer value. 0 means connection is attempted only once
4155# (integer value)
4156# Minimum value: 0
4157#http_retries=3
4158
4159#
4160# Allow attach between instance and volume in different availability zones.
4161#
4162# If False, volumes attached to an instance must be in the same availability
4163# zone in Cinder as the instance availability zone in Nova.
4164# This also means care should be taken when booting an instance from a volume
4165# where source is not "volume" because Nova will attempt to create a volume
4166# using
4167# the same availability zone as what is assigned to the instance.
4168# If that AZ is not in Cinder (or allow_availability_zone_fallback=False in
4169# cinder.conf), the volume create request will fail and the instance will fail
4170# the build request.
4171# By default there is no availability zone restriction on volume attach.
4172# (boolean value)
4173#cross_az_attach=true
4174{%- if compute.cross_az_attach is defined %}
4175cross_az_attach={{ compute.cross_az_attach }}
4176{%- endif %}
4177
Oleh Hryhorov5e229a82019-04-26 14:11:54 +03004178auth_type = password
4179user_domain_id = {{ compute.identity.get('domain', 'default') }}
4180project_domain_id = {{ compute.identity.get('domain', 'default') }}
4181project_name = {{ compute.identity.tenant }}
4182username = {{ compute.identity.user }}
4183password = {{ compute.identity.password }}
4184auth_url={{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.host }}:35357/v3
4185os_interface = internal
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01004186
4187[cloudpipe]
4188
4189#
4190# From nova.conf
4191#
4192
4193#
4194# Image ID used when starting up a cloudpipe VPN client.
4195#
4196# An empty instance is created and configured with OpenVPN using
4197# boot_script_template. This instance would be snapshotted and stored
4198# in glance. ID of the stored image is used in 'vpn_image_id' to
4199# create cloudpipe VPN client.
4200#
4201# Possible values:
4202#
4203# * Any valid ID of a VPN image
4204# (string value)
4205# Deprecated group/name - [DEFAULT]/vpn_image_id
4206#vpn_image_id=0
4207
4208#
4209# Flavor for VPN instances.
4210#
4211# Possible values:
4212#
4213# * Any valid flavor name
4214# (string value)
4215# Deprecated group/name - [DEFAULT]/vpn_flavor
4216#vpn_flavor=m1.tiny
4217
4218#
4219# Template for cloudpipe instance boot script.
4220#
4221# Possible values:
4222#
4223# * Any valid path to a cloudpipe instance boot script template
4224#
4225# Related options:
4226#
4227# The following options are required to configure cloudpipe-managed
4228# OpenVPN server.
4229#
4230# * dmz_net
4231# * dmz_mask
4232# * cnt_vpn_clients
4233# (string value)
4234# Deprecated group/name - [DEFAULT]/boot_script_template
4235#boot_script_template=$pybasedir/nova/cloudpipe/bootscript.template
4236
4237#
4238# Network to push into OpenVPN config.
4239#
4240# Note: Above mentioned OpenVPN config can be found at
4241# /etc/openvpn/server.conf.
4242#
4243# Possible values:
4244#
4245# * Any valid IPv4/IPV6 address
4246#
4247# Related options:
4248#
4249# * boot_script_template - dmz_net is pushed into bootscript.template
4250# to configure cloudpipe-managed OpenVPN server
4251# (IP address value)
4252# Deprecated group/name - [DEFAULT]/dmz_net
4253#dmz_net=10.0.0.0
4254
4255#
4256# Netmask to push into OpenVPN config.
4257#
4258# Possible values:
4259#
4260# * Any valid IPv4/IPV6 netmask
4261#
4262# Related options:
4263#
4264# * dmz_net - dmz_net and dmz_mask is pushed into bootscript.template
4265# to configure cloudpipe-managed OpenVPN server
4266# * boot_script_template
4267# (IP address value)
4268# Deprecated group/name - [DEFAULT]/dmz_mask
4269#dmz_mask=255.255.255.0
4270
4271#
4272# Suffix to add to project name for VPN key and secgroups
4273#
4274# Possible values:
4275#
4276# * Any string value representing the VPN key suffix
4277# (string value)
4278# Deprecated group/name - [DEFAULT]/vpn_key_suffix
4279#vpn_key_suffix=-vpn
4280
4281
Vladyslav Drok25dacf52018-05-11 20:22:55 +03004282[compute]
4283
4284#
4285# From nova.conf
4286#
4287
4288#
4289# Number of consecutive failed builds that result in disabling a compute
4290# service.
4291#
4292# This option will cause nova-compute to set itself to a disabled state
4293# if a certain number of consecutive build failures occur. This will
4294# prevent the scheduler from continuing to send builds to a compute node that is
4295# consistently failing. Note that all failures qualify and count towards this
4296# score, including reschedules that may have been due to racy scheduler
4297# behavior.
4298# Since the failures must be consecutive, it is unlikely that occasional
4299# expected
4300# reschedules will actually disable a compute node.
4301#
4302# Possible values:
4303#
4304# * Any positive integer representing a build failure count.
4305# * Zero to never auto-disable.
4306# (integer value)
4307#consecutive_build_service_disable_threshold = 10
4308{%- if compute.get('compute', {}).consecutive_build_service_disable_threshold is defined %}
4309consecutive_build_service_disable_threshold = {{ compute.compute.consecutive_build_service_disable_threshold }}
4310{%- endif %}
4311
4312
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01004313[conductor]
4314#
4315# Options under this group are used to define Conductor's communication,
4316# which manager should be act as a proxy between computes and database,
4317# and finally, how many worker processes will be used.
4318
4319#
4320# From nova.conf
4321#
4322
4323# DEPRECATED:
4324# Topic exchange name on which conductor nodes listen.
4325# (string value)
4326# This option is deprecated for removal since 15.0.0.
4327# Its value may be silently ignored in the future.
4328# Reason:
4329# There is no need to let users choose the RPC topic for all services - there
4330# is little gain from this. Furthermore, it makes it really easy to break Nova
4331# by using this option.
4332#topic=conductor
4333
4334#
4335# Number of workers for OpenStack Conductor service. The default will be the
4336# number of CPUs available.
4337# (integer value)
4338#workers=<None>
4339
4340
4341[console]
4342#
4343# Options under this group allow to tune the configuration of the console proxy
4344# service.
4345#
4346# Note: in configuration of every compute is a ``console_host`` option,
4347# which allows to select the console proxy service to connect to.
4348
4349#
4350# From nova.conf
4351#
4352
4353#
4354# Adds list of allowed origins to the console websocket proxy to allow
4355# connections from other origin hostnames.
4356# Websocket proxy matches the host header with the origin header to
4357# prevent cross-site requests. This list specifies if any there are
4358# values other than host are allowed in the origin header.
4359#
4360# Possible values:
4361#
4362# * A list where each element is an allowed origin hostnames, else an empty list
4363# (list value)
4364# Deprecated group/name - [DEFAULT]/console_allowed_origins
4365#allowed_origins =
4366
4367
4368[consoleauth]
4369
4370#
4371# From nova.conf
4372#
4373
4374#
4375# The lifetime of a console auth token.
4376#
4377# A console auth token is used in authorizing console access for a user.
4378# Once the auth token time to live count has elapsed, the token is
4379# considered expired. Expired tokens are then deleted.
4380# (integer value)
4381# Minimum value: 0
4382# Deprecated group/name - [DEFAULT]/console_token_ttl
4383#token_ttl=600
sgarbuzcc02c7f2018-10-25 14:29:30 +03004384{% if compute.consoleauth_token_ttl is defined %}
4385{%- set token_ttl = compute.consoleauth_token_ttl %}
4386token_ttl = {{ token_ttl }}
4387{%- elif compute.get('consoleauth', {}).token_ttl is defined %}
4388token_ttl = {{ compute.consoleauth.token_ttl }}
4389{% endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01004390
4391
4392[cors]
4393
4394#
4395# From oslo.middleware
4396#
4397
4398# Indicate whether this resource may be shared with the domain received in the
4399# requests "origin" header. Format: "<protocol>://<host>[:<port>]", no trailing
4400# slash. Example: https://horizon.example.com (list value)
4401#allowed_origin=<None>
4402
4403# Indicate that the actual request can include user credentials (boolean value)
4404#allow_credentials=true
4405
4406# Indicate which headers are safe to expose to the API. Defaults to HTTP Simple
4407# Headers. (list value)
4408#expose_headers=X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token,X-Service-Token
4409
4410# Maximum cache age of CORS preflight requests. (integer value)
4411#max_age=3600
4412
4413# Indicate which methods can be used during the actual request. (list value)
4414#allow_methods=GET,PUT,POST,DELETE,PATCH
4415
4416# Indicate which header field names may be used during the actual request. (list
4417# value)
4418#allow_headers=X-Auth-Token,X-Openstack-Request-Id,X-Identity-Status,X-Roles,X-Service-Catalog,X-User-Id,X-Tenant-Id
4419
4420
4421[cors.subdomain]
4422
4423#
4424# From oslo.middleware
4425#
4426
4427# Indicate whether this resource may be shared with the domain received in the
4428# requests "origin" header. Format: "<protocol>://<host>[:<port>]", no trailing
4429# slash. Example: https://horizon.example.com (list value)
4430#allowed_origin=<None>
4431
4432# Indicate that the actual request can include user credentials (boolean value)
4433#allow_credentials=true
4434
4435# Indicate which headers are safe to expose to the API. Defaults to HTTP Simple
4436# Headers. (list value)
4437#expose_headers=X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token,X-Service-Token
4438
4439# Maximum cache age of CORS preflight requests. (integer value)
4440#max_age=3600
4441
4442# Indicate which methods can be used during the actual request. (list value)
4443#allow_methods=GET,PUT,POST,DELETE,PATCH
4444
4445# Indicate which header field names may be used during the actual request. (list
4446# value)
4447#allow_headers=X-Auth-Token,X-Openstack-Request-Id,X-Identity-Status,X-Roles,X-Service-Catalog,X-User-Id,X-Tenant-Id
4448
4449
4450[crypto]
4451
4452#
4453# From nova.conf
4454#
4455
4456#
4457# Filename of root CA (Certificate Authority). This is a container format
4458# and includes root certificates.
4459#
4460# Possible values:
4461#
4462# * Any file name containing root CA, cacert.pem is default
4463#
4464# Related options:
4465#
4466# * ca_path
4467# (string value)
4468# Deprecated group/name - [DEFAULT]/ca_file
4469#ca_file=cacert.pem
4470
4471#
4472# Filename of a private key.
4473#
4474# Related options:
4475#
4476# * keys_path
4477# (string value)
4478# Deprecated group/name - [DEFAULT]/key_file
4479#key_file=private/cakey.pem
4480
4481#
4482# Filename of root Certificate Revocation List (CRL). This is a list of
4483# certificates that have been revoked, and therefore, entities presenting
4484# those (revoked) certificates should no longer be trusted.
4485#
4486# Related options:
4487#
4488# * ca_path
4489# (string value)
4490# Deprecated group/name - [DEFAULT]/crl_file
4491#crl_file=crl.pem
4492
4493#
4494# Directory path where keys are located.
4495#
4496# Related options:
4497#
4498# * key_file
4499# (string value)
4500# Deprecated group/name - [DEFAULT]/keys_path
4501#keys_path=$state_path/keys
4502
4503#
4504# Directory path where root CA is located.
4505#
4506# Related options:
4507#
4508# * ca_file
4509# (string value)
4510# Deprecated group/name - [DEFAULT]/ca_path
4511#ca_path=$state_path/CA
4512
4513# Option to enable/disable use of CA for each project. (boolean value)
4514# Deprecated group/name - [DEFAULT]/use_project_ca
4515#use_project_ca=false
4516
4517#
4518# Subject for certificate for users, %s for
4519# project, user, timestamp
4520# (string value)
4521# Deprecated group/name - [DEFAULT]/user_cert_subject
4522#user_cert_subject=/C=US/ST=California/O=OpenStack/OU=NovaDev/CN=%.16s-%.16s-%s
4523
4524#
4525# Subject for certificate for projects, %s for
4526# project, timestamp
4527# (string value)
4528# Deprecated group/name - [DEFAULT]/project_cert_subject
4529#project_cert_subject=/C=US/ST=California/O=OpenStack/OU=NovaDev/CN=project-ca-%.16s-%s
4530
4531
4532[database]
4533
4534#
4535# From oslo.db
4536#
4537
4538# DEPRECATED: The file name to use with SQLite. (string value)
4539# Deprecated group/name - [DEFAULT]/sqlite_db
4540# This option is deprecated for removal.
4541# Its value may be silently ignored in the future.
4542# Reason: Should use config option connection or slave_connection to connect the
4543# database.
4544#sqlite_db=oslo.sqlite
4545
4546# If True, SQLite uses synchronous mode. (boolean value)
4547# Deprecated group/name - [DEFAULT]/sqlite_synchronous
4548#sqlite_synchronous=true
4549
4550# The back end to use for the database. (string value)
4551# Deprecated group/name - [DEFAULT]/db_backend
4552#backend=sqlalchemy
4553
4554# The SQLAlchemy connection string to use to connect to the database. (string
4555# value)
4556# Deprecated group/name - [DEFAULT]/sql_connection
4557# Deprecated group/name - [DATABASE]/sql_connection
4558# Deprecated group/name - [sql]/connection
4559#connection=<None>
4560
4561# The SQLAlchemy connection string to use to connect to the slave database.
4562# (string value)
4563#slave_connection=<None>
4564
4565# The SQL mode to be used for MySQL sessions. This option, including the
4566# default, overrides any server-set SQL mode. To use whatever SQL mode is set by
4567# the server configuration, set this to no value. Example: mysql_sql_mode=
4568# (string value)
4569#mysql_sql_mode=TRADITIONAL
4570
4571# Timeout before idle SQL connections are reaped. (integer value)
4572# Deprecated group/name - [DEFAULT]/sql_idle_timeout
4573# Deprecated group/name - [DATABASE]/sql_idle_timeout
4574# Deprecated group/name - [sql]/idle_timeout
4575#idle_timeout=3600
4576
4577# Minimum number of SQL connections to keep open in a pool. (integer value)
4578# Deprecated group/name - [DEFAULT]/sql_min_pool_size
4579# Deprecated group/name - [DATABASE]/sql_min_pool_size
4580#min_pool_size=1
4581
4582# Maximum number of SQL connections to keep open in a pool. Setting a value of 0
4583# indicates no limit. (integer value)
4584# Deprecated group/name - [DEFAULT]/sql_max_pool_size
4585# Deprecated group/name - [DATABASE]/sql_max_pool_size
4586#max_pool_size=5
4587
4588# Maximum number of database connection retries during startup. Set to -1 to
4589# specify an infinite retry count. (integer value)
4590# Deprecated group/name - [DEFAULT]/sql_max_retries
4591# Deprecated group/name - [DATABASE]/sql_max_retries
4592#max_retries=10
4593
4594# Interval between retries of opening a SQL connection. (integer value)
4595# Deprecated group/name - [DEFAULT]/sql_retry_interval
4596# Deprecated group/name - [DATABASE]/reconnect_interval
4597#retry_interval=10
4598
4599# If set, use this value for max_overflow with SQLAlchemy. (integer value)
4600# Deprecated group/name - [DEFAULT]/sql_max_overflow
4601# Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
4602#max_overflow=50
4603
4604# Verbosity of SQL debugging information: 0=None, 100=Everything. (integer
4605# value)
4606# Minimum value: 0
4607# Maximum value: 100
4608# Deprecated group/name - [DEFAULT]/sql_connection_debug
4609#connection_debug=0
4610
4611# Add Python stack traces to SQL as comment strings. (boolean value)
4612# Deprecated group/name - [DEFAULT]/sql_connection_trace
4613#connection_trace=false
4614
4615# If set, use this value for pool_timeout with SQLAlchemy. (integer value)
4616# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
4617#pool_timeout=<None>
4618
4619# Enable the experimental use of database reconnect on connection lost. (boolean
4620# value)
4621#use_db_reconnect=false
4622
4623# Seconds between retries of a database transaction. (integer value)
4624#db_retry_interval=1
4625
4626# If True, increases the interval between retries of a database operation up to
4627# db_max_retry_interval. (boolean value)
4628#db_inc_retry_interval=true
4629
4630# If db_inc_retry_interval is set, the maximum seconds between retries of a
4631# database operation. (integer value)
4632#db_max_retry_interval=10
4633
4634# Maximum retries in case of connection error or deadlock error before error is
4635# raised. Set to -1 to specify an infinite retry count. (integer value)
4636#db_max_retries=20
4637
4638#
4639# From oslo.db.concurrency
4640#
4641
4642# Enable the experimental use of thread pooling for all DB API calls (boolean
4643# value)
4644# Deprecated group/name - [DEFAULT]/dbapi_use_tpool
4645#use_tpool=false
4646
4647
4648[ephemeral_storage_encryption]
4649
4650#
4651# From nova.conf
4652#
4653
4654#
4655# Enables/disables LVM ephemeral storage encryption.
4656# (boolean value)
4657#enabled=false
4658
4659#
4660# Cipher-mode string to be used.
4661#
4662# The cipher and mode to be used to encrypt ephemeral storage. The set of
4663# cipher-mode combinations available depends on kernel support.
4664#
4665# Possible values:
4666#
4667# * Any crypto option listed in ``/proc/crypto``.
4668# (string value)
4669#cipher=aes-xts-plain64
4670
4671#
4672# Encryption key length in bits.
4673#
4674# The bit length of the encryption key to be used to encrypt ephemeral storage.
4675# In XTS mode only half of the bits are used for encryption key.
4676# (integer value)
4677# Minimum value: 1
4678#key_size=512
4679
4680
4681[filter_scheduler]
4682
4683#
4684# From nova.conf
4685#
4686
4687#
4688# Size of subset of best hosts selected by scheduler.
4689#
4690# New instances will be scheduled on a host chosen randomly from a subset of the
4691# N best hosts, where N is the value set by this option.
4692#
4693# Setting this to a value greater than 1 will reduce the chance that multiple
4694# scheduler processes handling similar requests will select the same host,
4695# creating a potential race condition. By selecting a host randomly from the N
4696# hosts that best fit the request, the chance of a conflict is reduced. However,
4697# the higher you set this value, the less optimal the chosen host may be for a
4698# given request.
4699#
4700# This option is only used by the FilterScheduler and its subclasses; if you use
4701# a different scheduler, this option has no effect.
4702#
4703# Possible values:
4704#
4705# * An integer, where the integer corresponds to the size of a host subset. Any
4706# integer is valid, although any value less than 1 will be treated as 1
4707# (integer value)
4708# Minimum value: 1
4709# Deprecated group/name - [DEFAULT]/scheduler_host_subset_size
4710#host_subset_size=1
4711
4712#
4713# The number of instances that can be actively performing IO on a host.
4714#
4715# Instances performing IO includes those in the following states: build, resize,
4716# snapshot, migrate, rescue, unshelve.
4717#
4718# This option is only used by the FilterScheduler and its subclasses; if you use
4719# a different scheduler, this option has no effect. Also note that this setting
4720# only affects scheduling if the 'io_ops_filter' filter is enabled.
4721#
4722# Possible values:
4723#
4724# * An integer, where the integer corresponds to the max number of instances
4725# that can be actively performing IO on any given host.
4726# (integer value)
4727# Deprecated group/name - [DEFAULT]/max_io_ops_per_host
4728#max_io_ops_per_host=8
4729
4730#
4731# Maximum number of instances that be active on a host.
4732#
4733# If you need to limit the number of instances on any given host, set this
4734# option
4735# to the maximum number of instances you want to allow. The num_instances_filter
4736# will reject any host that has at least as many instances as this option's
4737# value.
4738#
4739# This option is only used by the FilterScheduler and its subclasses; if you use
4740# a different scheduler, this option has no effect. Also note that this setting
4741# only affects scheduling if the 'num_instances_filter' filter is enabled.
4742#
4743# Possible values:
4744#
4745# * An integer, where the integer corresponds to the max instances that can be
4746# scheduled on a host.
4747# (integer value)
4748# Deprecated group/name - [DEFAULT]/max_instances_per_host
4749#max_instances_per_host=50
4750
4751#
4752# Enable querying of individual hosts for instance information.
4753#
4754# The scheduler may need information about the instances on a host in order to
4755# evaluate its filters and weighers. The most common need for this information
4756# is
4757# for the (anti-)affinity filters, which need to choose a host based on the
4758# instances already running on a host.
4759#
4760# If the configured filters and weighers do not need this information, disabling
4761# this option will improve performance. It may also be disabled when the
4762# tracking
4763# overhead proves too heavy, although this will cause classes requiring host
4764# usage data to query the database on each request instead.
4765#
4766# This option is only used by the FilterScheduler and its subclasses; if you use
4767# a different scheduler, this option has no effect.
4768# (boolean value)
4769# Deprecated group/name - [DEFAULT]/scheduler_tracks_instance_changes
4770#track_instance_changes=true
4771
4772#
4773# Filters that the scheduler can use.
4774#
4775# An unordered list of the filter classes the nova scheduler may apply. Only
4776# the
4777# filters specified in the 'scheduler_enabled_filters' option will be used, but
4778# any filter appearing in that option must also be included in this list.
4779#
4780# By default, this is set to all filters that are included with nova.
4781#
4782# This option is only used by the FilterScheduler and its subclasses; if you use
4783# a different scheduler, this option has no effect.
4784#
4785# Possible values:
4786#
4787# * A list of zero or more strings, where each string corresponds to the name of
4788# a filter that may be used for selecting a host
4789#
4790# Related options:
4791#
4792# * scheduler_enabled_filters
4793# (multi valued)
4794# Deprecated group/name - [DEFAULT]/scheduler_available_filters
4795#available_filters=nova.scheduler.filters.all_filters
4796
4797#
4798# Filters that the scheduler will use.
4799#
4800# An ordered list of filter class names that will be used for filtering
4801# hosts. Ignore the word 'default' in the name of this option: these filters
4802# will
4803# *always* be applied, and they will be applied in the order they are listed so
4804# place your most restrictive filters first to make the filtering process more
4805# efficient.
4806#
4807# This option is only used by the FilterScheduler and its subclasses; if you use
4808# a different scheduler, this option has no effect.
4809#
4810# Possible values:
4811#
4812# * A list of zero or more strings, where each string corresponds to the name of
4813# a filter to be used for selecting a host
4814#
4815# Related options:
4816#
4817# * All of the filters in this option *must* be present in the
4818# 'scheduler_available_filters' option, or a SchedulerHostFilterNotFound
4819# exception will be raised.
4820# (list value)
4821# Deprecated group/name - [DEFAULT]/scheduler_default_filters
4822#enabled_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter
4823
4824#
4825# Filters used for filtering baremetal hosts.
4826#
4827# Filters are applied in order, so place your most restrictive filters first to
4828# make the filtering process more efficient.
4829#
4830# This option is only used by the FilterScheduler and its subclasses; if you use
4831# a different scheduler, this option has no effect.
4832#
4833# Possible values:
4834#
4835# * A list of zero or more strings, where each string corresponds to the name of
4836# a filter to be used for selecting a baremetal host
4837#
4838# Related options:
4839#
4840# * If the 'scheduler_use_baremetal_filters' option is False, this option has
4841# no effect.
4842# (list value)
4843# Deprecated group/name - [DEFAULT]/baremetal_scheduler_default_filters
4844#baremetal_enabled_filters=RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ExactRamFilter,ExactDiskFilter,ExactCoreFilter
4845
4846#
4847# Enable baremetal filters.
4848#
4849# Set this to True to tell the nova scheduler that it should use the filters
4850# specified in the 'baremetal_scheduler_enabled_filters' option. If you are not
4851# scheduling baremetal nodes, leave this at the default setting of False.
4852#
4853# This option is only used by the FilterScheduler and its subclasses; if you use
4854# a different scheduler, this option has no effect.
4855#
4856# Related options:
4857#
4858# * If this option is set to True, then the filters specified in the
4859# 'baremetal_scheduler_enabled_filters' are used instead of the filters
4860# specified in 'scheduler_enabled_filters'.
4861# (boolean value)
4862# Deprecated group/name - [DEFAULT]/scheduler_use_baremetal_filters
4863#use_baremetal_filters=false
4864
4865#
4866# Weighers that the scheduler will use.
4867#
4868# Only hosts which pass the filters are weighed. The weight for any host starts
4869# at 0, and the weighers order these hosts by adding to or subtracting from the
4870# weight assigned by the previous weigher. Weights may become negative. An
4871# instance will be scheduled to one of the N most-weighted hosts, where N is
4872# 'scheduler_host_subset_size'.
4873#
4874# By default, this is set to all weighers that are included with Nova.
4875#
4876# This option is only used by the FilterScheduler and its subclasses; if you use
4877# a different scheduler, this option has no effect.
4878#
4879# Possible values:
4880#
4881# * A list of zero or more strings, where each string corresponds to the name of
4882# a weigher that will be used for selecting a host
4883# (list value)
4884# Deprecated group/name - [DEFAULT]/scheduler_weight_classes
4885#weight_classes=nova.scheduler.weights.all_weighers
4886
4887#
4888# Ram weight multipler ratio.
4889#
4890# This option determines how hosts with more or less available RAM are weighed.
4891# A
4892# positive value will result in the scheduler preferring hosts with more
4893# available RAM, and a negative number will result in the scheduler preferring
4894# hosts with less available RAM. Another way to look at it is that positive
4895# values for this option will tend to spread instances across many hosts, while
4896# negative values will tend to fill up (stack) hosts as much as possible before
4897# scheduling to a less-used host. The absolute value, whether positive or
4898# negative, controls how strong the RAM weigher is relative to other weighers.
4899#
4900# This option is only used by the FilterScheduler and its subclasses; if you use
4901# a different scheduler, this option has no effect. Also note that this setting
4902# only affects scheduling if the 'ram' weigher is enabled.
4903#
4904# Possible values:
4905#
4906# * An integer or float value, where the value corresponds to the multipler
4907# ratio for this weigher.
4908# (floating point value)
4909# Deprecated group/name - [DEFAULT]/ram_weight_multiplier
4910#ram_weight_multiplier=1.0
4911
4912#
4913# Disk weight multipler ratio.
4914#
4915# Multiplier used for weighing free disk space. Negative numbers mean to
4916# stack vs spread.
4917#
4918# This option is only used by the FilterScheduler and its subclasses; if you use
4919# a different scheduler, this option has no effect. Also note that this setting
4920# only affects scheduling if the 'ram' weigher is enabled.
4921#
4922# Possible values:
4923#
4924# * An integer or float value, where the value corresponds to the multipler
4925# ratio for this weigher.
4926# (floating point value)
4927# Deprecated group/name - [DEFAULT]/disk_weight_multiplier
4928#disk_weight_multiplier=1.0
4929
4930#
4931# IO operations weight multipler ratio.
4932#
4933# This option determines how hosts with differing workloads are weighed.
4934# Negative
4935# values, such as the default, will result in the scheduler preferring hosts
4936# with
4937# lighter workloads whereas positive values will prefer hosts with heavier
4938# workloads. Another way to look at it is that positive values for this option
4939# will tend to schedule instances onto hosts that are already busy, while
4940# negative values will tend to distribute the workload across more hosts. The
4941# absolute value, whether positive or negative, controls how strong the io_ops
4942# weigher is relative to other weighers.
4943#
4944# This option is only used by the FilterScheduler and its subclasses; if you use
4945# a different scheduler, this option has no effect. Also note that this setting
4946# only affects scheduling if the 'io_ops' weigher is enabled.
4947#
4948# Possible values:
4949#
4950# * An integer or float value, where the value corresponds to the multipler
4951# ratio for this weigher.
4952# (floating point value)
4953# Deprecated group/name - [DEFAULT]/io_ops_weight_multiplier
4954#io_ops_weight_multiplier=-1.0
4955
4956#
4957# Multiplier used for weighing hosts for group soft-affinity.
4958#
4959# Possible values:
4960#
4961# * An integer or float value, where the value corresponds to weight multiplier
4962# for hosts with group soft affinity. Only a positive value are meaningful, as
4963# negative values would make this behave as a soft anti-affinity weigher.
4964# (floating point value)
4965# Deprecated group/name - [DEFAULT]/soft_affinity_weight_multiplier
4966#soft_affinity_weight_multiplier=1.0
4967
4968#
4969# Multiplier used for weighing hosts for group soft-anti-affinity.
4970#
4971# Possible values:
4972#
4973# * An integer or float value, where the value corresponds to weight multiplier
4974# for hosts with group soft anti-affinity. Only a positive value are
4975# meaningful, as negative values would make this behave as a soft affinity
4976# weigher.
4977# (floating point value)
4978# Deprecated group/name - [DEFAULT]/soft_anti_affinity_weight_multiplier
4979#soft_anti_affinity_weight_multiplier=1.0
4980
4981#
4982# List of UUIDs for images that can only be run on certain hosts.
4983#
4984# If there is a need to restrict some images to only run on certain designated
4985# hosts, list those image UUIDs here.
4986#
4987# This option is only used by the FilterScheduler and its subclasses; if you use
4988# a different scheduler, this option has no effect. Also note that this setting
4989# only affects scheduling if the 'IsolatedHostsFilter' filter is enabled.
4990#
4991# Possible values:
4992#
4993# * A list of UUID strings, where each string corresponds to the UUID of an
4994# image
4995#
4996# Related options:
4997#
4998# * scheduler/isolated_hosts
4999# * scheduler/restrict_isolated_hosts_to_isolated_images
5000# (list value)
5001# Deprecated group/name - [DEFAULT]/isolated_images
5002#isolated_images =
5003
5004#
5005# List of hosts that can only run certain images.
5006#
5007# If there is a need to restrict some images to only run on certain designated
5008# hosts, list those host names here.
5009#
5010# This option is only used by the FilterScheduler and its subclasses; if you use
5011# a different scheduler, this option has no effect. Also note that this setting
5012# only affects scheduling if the 'IsolatedHostsFilter' filter is enabled.
5013#
5014# Possible values:
5015#
5016# * A list of strings, where each string corresponds to the name of a host
5017#
5018# Related options:
5019#
5020# * scheduler/isolated_images
5021# * scheduler/restrict_isolated_hosts_to_isolated_images
5022# (list value)
5023# Deprecated group/name - [DEFAULT]/isolated_hosts
5024#isolated_hosts =
5025
5026#
5027# Prevent non-isolated images from being built on isolated hosts.
5028#
5029# This option is only used by the FilterScheduler and its subclasses; if you use
5030# a different scheduler, this option has no effect. Also note that this setting
5031# only affects scheduling if the 'IsolatedHostsFilter' filter is enabled. Even
5032# then, this option doesn't affect the behavior of requests for isolated images,
5033# which will *always* be restricted to isolated hosts.
5034#
5035# Related options:
5036#
5037# * scheduler/isolated_images
5038# * scheduler/isolated_hosts
5039# (boolean value)
5040# Deprecated group/name - [DEFAULT]/restrict_isolated_hosts_to_isolated_images
5041#restrict_isolated_hosts_to_isolated_images=true
5042
5043#
5044# Image property namespace for use in the host aggregate.
5045#
5046# Images and hosts can be configured so that certain images can only be
5047# scheduled
5048# to hosts in a particular aggregate. This is done with metadata values set on
5049# the host aggregate that are identified by beginning with the value of this
5050# option. If the host is part of an aggregate with such a metadata key, the
5051# image
5052# in the request spec must have the value of that metadata in its properties in
5053# order for the scheduler to consider the host as acceptable.
5054#
5055# This option is only used by the FilterScheduler and its subclasses; if you use
5056# a different scheduler, this option has no effect. Also note that this setting
5057# only affects scheduling if the 'aggregate_image_properties_isolation' filter
5058# is
5059# enabled.
5060#
5061# Possible values:
5062#
5063# * A string, where the string corresponds to an image property namespace
5064#
5065# Related options:
5066#
5067# * aggregate_image_properties_isolation_separator
5068# (string value)
5069# Deprecated group/name - [DEFAULT]/aggregate_image_properties_isolation_namespace
5070#aggregate_image_properties_isolation_namespace=<None>
5071
5072#
5073# Separator character(s) for image property namespace and name.
5074#
5075# When using the aggregate_image_properties_isolation filter, the relevant
5076# metadata keys are prefixed with the namespace defined in the
5077# aggregate_image_properties_isolation_namespace configuration option plus a
5078# separator. This option defines the separator to be used.
5079#
5080# This option is only used by the FilterScheduler and its subclasses; if you use
5081# a different scheduler, this option has no effect. Also note that this setting
5082# only affects scheduling if the 'aggregate_image_properties_isolation' filter
5083# is enabled.
5084#
5085# Possible values:
5086#
5087# * A string, where the string corresponds to an image property namespace
5088# separator character
5089#
5090# Related options:
5091#
5092# * aggregate_image_properties_isolation_namespace
5093# (string value)
5094# Deprecated group/name - [DEFAULT]/aggregate_image_properties_isolation_separator
5095#aggregate_image_properties_isolation_separator=.
5096
5097
5098[glance]
5099# Configuration options for the Image service
5100
5101#
5102# From nova.conf
5103#
5104
5105#
5106# List of glance api servers endpoints available to nova.
5107#
5108# https is used for ssl-based glance api servers.
5109#
5110# Possible values:
5111#
5112# * A list of any fully qualified url of the form
5113# "scheme://hostname:port[/path]"
5114# (i.e. "http://10.0.1.0:9292" or "https://my.glance.server/image").
5115# (list value)
5116#api_servers=<None>
5117{%- if compute.image is defined %}
5118api_servers = {{ compute.image.get('protocol', 'http') }}://{{ compute.image.host }}:{{ compute.image.get('port', 9292) }}
5119{% endif %}
5120
5121#
5122# Enable insecure SSL (https) requests to glance.
5123#
5124# This setting can be used to turn off verification of the glance server
5125# certificate against the certificate authorities.
5126# (boolean value)
5127#api_insecure=false
5128
5129#
5130# Enable glance operation retries.
5131#
5132# Specifies the number of retries when uploading / downloading
5133# an image to / from glance. 0 means no retries.
5134# (integer value)
5135# Minimum value: 0
5136#num_retries=0
5137
5138#
5139# List of url schemes that can be directly accessed.
5140#
5141# This option specifies a list of url schemes that can be downloaded
5142# directly via the direct_url. This direct_URL can be fetched from
5143# Image metadata which can be used by nova to get the
5144# image more efficiently. nova-compute could benefit from this by
5145# invoking a copy when it has access to the same file system as glance.
5146#
5147# Possible values:
5148#
5149# * [file], Empty list (default)
5150# (list value)
5151#allowed_direct_url_schemes =
5152
5153#
5154# Enable image signature verification.
5155#
5156# nova uses the image signature metadata from glance and verifies the signature
5157# of a signed image while downloading that image. If the image signature cannot
5158# be verified or if the image signature metadata is either incomplete or
5159# unavailable, then nova will not boot the image and instead will place the
5160# instance into an error state. This provides end users with stronger assurances
5161# of the integrity of the image data they are using to create servers.
5162#
5163# Related options:
5164#
5165# * The options in the `key_manager` group, as the key_manager is used
5166# for the signature validation.
5167# (boolean value)
Vladyslav Drok539e9932018-08-15 19:17:46 +03005168{%- if compute.get('image', {}).verify_glance_signatures is defined %}
5169verify_glance_signatures={{ compute.image.verify_glance_signatures }}
5170{%- elif compute.get('barbican', {}).get('enabled', False) %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01005171verify_glance_signatures=true
5172{%- else %}
5173#verify_glance_signatures=false
5174{%- endif %}
5175
5176# Enable or disable debug logging with glanceclient. (boolean value)
5177#debug=false
5178
5179
5180[guestfs]
5181#
5182# libguestfs is a set of tools for accessing and modifying virtual
5183# machine (VM) disk images. You can use this for viewing and editing
5184# files inside guests, scripting changes to VMs, monitoring disk
5185# used/free statistics, creating guests, P2V, V2V, performing backups,
5186# cloning VMs, building VMs, formatting disks and resizing disks.
5187
5188#
5189# From nova.conf
5190#
5191
5192#
5193# Enable/disables guestfs logging.
5194#
5195# This configures guestfs to debug messages and push them to Openstack
5196# logging system. When set to True, it traces libguestfs API calls and
5197# enable verbose debug messages. In order to use the above feature,
5198# "libguestfs" package must be installed.
5199#
5200# Related options:
5201# Since libguestfs access and modifies VM's managed by libvirt, below options
5202# should be set to give access to those VM's.
5203# * libvirt.inject_key
5204# * libvirt.inject_partition
5205# * libvirt.inject_password
5206# (boolean value)
5207#debug=false
5208
5209
5210[healthcheck]
5211
5212#
5213# From oslo.middleware
5214#
5215
5216# DEPRECATED: The path to respond to healtcheck requests on. (string value)
5217# This option is deprecated for removal.
5218# Its value may be silently ignored in the future.
5219#path=/healthcheck
5220
5221# Show more detailed information as part of the response (boolean value)
5222#detailed=false
5223
5224# Additional backends that can perform health checks and report that information
5225# back as part of a request. (list value)
5226#backends =
5227
5228# Check the presence of a file to determine if an application is running on a
5229# port. Used by DisableByFileHealthcheck plugin. (string value)
5230#disable_by_file_path=<None>
5231
5232# Check the presence of a file based on a port to determine if an application is
5233# running on a port. Expects a "port:path" list of strings. Used by
5234# DisableByFilesPortsHealthcheck plugin. (list value)
5235#disable_by_file_paths =
5236
5237
5238[hyperv]
5239#
5240# The hyperv feature allows you to configure the Hyper-V hypervisor
5241# driver to be used within an OpenStack deployment.
5242
5243#
5244# From nova.conf
5245#
5246
5247#
5248# Dynamic memory ratio
5249#
5250# Enables dynamic memory allocation (ballooning) when set to a value
5251# greater than 1. The value expresses the ratio between the total RAM
5252# assigned to an instance and its startup RAM amount. For example a
5253# ratio of 2.0 for an instance with 1024MB of RAM implies 512MB of
5254# RAM allocated at startup.
5255#
5256# Possible values:
5257#
5258# * 1.0: Disables dynamic memory allocation (Default).
5259# * Float values greater than 1.0: Enables allocation of total implied
5260# RAM divided by this value for startup.
5261# (floating point value)
5262#dynamic_memory_ratio=1.0
5263
5264#
5265# Enable instance metrics collection
5266#
5267# Enables metrics collections for an instance by using Hyper-V's
5268# metric APIs. Collected data can by retrieved by other apps and
5269# services, e.g.: Ceilometer.
5270# (boolean value)
5271#enable_instance_metrics_collection=false
5272
5273#
5274# Instances path share
5275#
5276# The name of a Windows share mapped to the "instances_path" dir
5277# and used by the resize feature to copy files to the target host.
5278# If left blank, an administrative share (hidden network share) will
5279# be used, looking for the same "instances_path" used locally.
5280#
5281# Possible values:
5282#
5283# * "": An administrative share will be used (Default).
5284# * Name of a Windows share.
5285#
5286# Related options:
5287#
5288# * "instances_path": The directory which will be used if this option
5289# here is left blank.
5290# (string value)
5291#instances_path_share =
5292
5293#
5294# Limit CPU features
5295#
5296# This flag is needed to support live migration to hosts with
5297# different CPU features and checked during instance creation
5298# in order to limit the CPU features used by the instance.
5299# (boolean value)
5300#limit_cpu_features=false
5301
5302#
5303# Mounted disk query retry count
5304#
5305# The number of times to retry checking for a mounted disk.
5306# The query runs until the device can be found or the retry
5307# count is reached.
5308#
5309# Possible values:
5310#
5311# * Positive integer values. Values greater than 1 is recommended
5312# (Default: 10).
5313#
5314# Related options:
5315#
5316# * Time interval between disk mount retries is declared with
5317# "mounted_disk_query_retry_interval" option.
5318# (integer value)
5319# Minimum value: 0
5320#mounted_disk_query_retry_count=10
5321
5322#
5323# Mounted disk query retry interval
5324#
5325# Interval between checks for a mounted disk, in seconds.
5326#
5327# Possible values:
5328#
5329# * Time in seconds (Default: 5).
5330#
5331# Related options:
5332#
5333# * This option is meaningful when the mounted_disk_query_retry_count
5334# is greater than 1.
5335# * The retry loop runs with mounted_disk_query_retry_count and
5336# mounted_disk_query_retry_interval configuration options.
5337# (integer value)
5338# Minimum value: 0
5339#mounted_disk_query_retry_interval=5
5340
5341#
5342# Power state check timeframe
5343#
5344# The timeframe to be checked for instance power state changes.
5345# This option is used to fetch the state of the instance from Hyper-V
5346# through the WMI interface, within the specified timeframe.
5347#
5348# Possible values:
5349#
5350# * Timeframe in seconds (Default: 60).
5351# (integer value)
5352# Minimum value: 0
5353#power_state_check_timeframe=60
5354
5355#
5356# Power state event polling interval
5357#
5358# Instance power state change event polling frequency. Sets the
5359# listener interval for power state events to the given value.
5360# This option enhances the internal lifecycle notifications of
5361# instances that reboot themselves. It is unlikely that an operator
5362# has to change this value.
5363#
5364# Possible values:
5365#
5366# * Time in seconds (Default: 2).
5367# (integer value)
5368# Minimum value: 0
5369#power_state_event_polling_interval=2
5370
5371#
5372# qemu-img command
5373#
5374# qemu-img is required for some of the image related operations
5375# like converting between different image types. You can get it
5376# from here: (http://qemu.weilnetz.de/) or you can install the
5377# Cloudbase OpenStack Hyper-V Compute Driver
5378# (https://cloudbase.it/openstack-hyperv-driver/) which automatically
5379# sets the proper path for this config option. You can either give the
5380# full path of qemu-img.exe or set its path in the PATH environment
5381# variable and leave this option to the default value.
5382#
5383# Possible values:
5384#
5385# * Name of the qemu-img executable, in case it is in the same
5386# directory as the nova-compute service or its path is in the
5387# PATH environment variable (Default).
5388# * Path of qemu-img command (DRIVELETTER:\PATH\TO\QEMU-IMG\COMMAND).
5389#
5390# Related options:
5391#
5392# * If the config_drive_cdrom option is False, qemu-img will be used to
5393# convert the ISO to a VHD, otherwise the configuration drive will
5394# remain an ISO. To use configuration drive with Hyper-V, you must
5395# set the mkisofs_cmd value to the full path to an mkisofs.exe
5396# installation.
5397# (string value)
5398#qemu_img_cmd=qemu-img.exe
5399
5400#
5401# External virtual switch name
5402#
5403# The Hyper-V Virtual Switch is a software-based layer-2 Ethernet
5404# network switch that is available with the installation of the
5405# Hyper-V server role. The switch includes programmatically managed
5406# and extensible capabilities to connect virtual machines to both
5407# virtual networks and the physical network. In addition, Hyper-V
5408# Virtual Switch provides policy enforcement for security, isolation,
5409# and service levels. The vSwitch represented by this config option
5410# must be an external one (not internal or private).
5411#
5412# Possible values:
5413#
5414# * If not provided, the first of a list of available vswitches
5415# is used. This list is queried using WQL.
5416# * Virtual switch name.
5417# (string value)
5418#vswitch_name=<None>
5419
5420#
5421# Wait soft reboot seconds
5422#
5423# Number of seconds to wait for instance to shut down after soft
5424# reboot request is made. We fall back to hard reboot if instance
5425# does not shutdown within this window.
5426#
5427# Possible values:
5428#
5429# * Time in seconds (Default: 60).
5430# (integer value)
5431# Minimum value: 0
5432#wait_soft_reboot_seconds=60
5433
5434#
5435# Configuration drive cdrom
5436#
5437# OpenStack can be configured to write instance metadata to
5438# a configuration drive, which is then attached to the
5439# instance before it boots. The configuration drive can be
5440# attached as a disk drive (default) or as a CD drive.
5441#
5442# Possible values:
5443#
5444# * True: Attach the configuration drive image as a CD drive.
5445# * False: Attach the configuration drive image as a disk drive (Default).
5446#
5447# Related options:
5448#
5449# * This option is meaningful with force_config_drive option set to 'True'
5450# or when the REST API call to create an instance will have
5451# '--config-drive=True' flag.
5452# * config_drive_format option must be set to 'iso9660' in order to use
5453# CD drive as the configuration drive image.
5454# * To use configuration drive with Hyper-V, you must set the
5455# mkisofs_cmd value to the full path to an mkisofs.exe installation.
5456# Additionally, you must set the qemu_img_cmd value to the full path
5457# to an qemu-img command installation.
5458# * You can configure the Compute service to always create a configuration
5459# drive by setting the force_config_drive option to 'True'.
5460# (boolean value)
5461#config_drive_cdrom=false
5462config_drive_cdrom={{ compute.get('config_drive', {}).get('cdrom', False)|lower }}
5463
5464#
5465# Configuration drive inject password
5466#
5467# Enables setting the admin password in the configuration drive image.
5468#
5469# Related options:
5470#
5471# * This option is meaningful when used with other options that enable
5472# configuration drive usage with Hyper-V, such as force_config_drive.
5473# * Currently, the only accepted config_drive_format is 'iso9660'.
5474# (boolean value)
5475#config_drive_inject_password=false
5476config_drive_inject_password={{ compute.get('config_drive', {}).get('inject_password', False)|lower }}
5477
5478#
5479# Volume attach retry count
5480#
5481# The number of times to retry attaching a volume. Volume attachment
5482# is retried until success or the given retry count is reached.
5483#
5484# Possible values:
5485#
5486# * Positive integer values (Default: 10).
5487#
5488# Related options:
5489#
5490# * Time interval between attachment attempts is declared with
5491# volume_attach_retry_interval option.
5492# (integer value)
5493# Minimum value: 0
5494#volume_attach_retry_count=10
5495
5496#
5497# Volume attach retry interval
5498#
5499# Interval between volume attachment attempts, in seconds.
5500#
5501# Possible values:
5502#
5503# * Time in seconds (Default: 5).
5504#
5505# Related options:
5506#
5507# * This options is meaningful when volume_attach_retry_count
5508# is greater than 1.
5509# * The retry loop runs with volume_attach_retry_count and
5510# volume_attach_retry_interval configuration options.
5511# (integer value)
5512# Minimum value: 0
5513#volume_attach_retry_interval=5
5514
5515#
5516# Enable RemoteFX feature
5517#
5518# This requires at least one DirectX 11 capable graphics adapter for
5519# Windows / Hyper-V Server 2012 R2 or newer and RDS-Virtualization
5520# feature has to be enabled.
5521#
5522# Instances with RemoteFX can be requested with the following flavor
5523# extra specs:
5524#
5525# **os:resolution**. Guest VM screen resolution size. Acceptable values::
5526#
5527# 1024x768, 1280x1024, 1600x1200, 1920x1200, 2560x1600, 3840x2160
5528#
5529# ``3840x2160`` is only available on Windows / Hyper-V Server 2016.
5530#
5531# **os:monitors**. Guest VM number of monitors. Acceptable values::
5532#
5533# [1, 4] - Windows / Hyper-V Server 2012 R2
5534# [1, 8] - Windows / Hyper-V Server 2016
5535#
5536# **os:vram**. Guest VM VRAM amount. Only available on
5537# Windows / Hyper-V Server 2016. Acceptable values::
5538#
5539# 64, 128, 256, 512, 1024
5540# (boolean value)
5541#enable_remotefx=false
5542
5543#
5544# Use multipath connections when attaching iSCSI or FC disks.
5545#
5546# This requires the Multipath IO Windows feature to be enabled. MPIO must be
5547# configured to claim such devices.
5548# (boolean value)
5549#use_multipath_io=false
5550
5551#
5552# List of iSCSI initiators that will be used for estabilishing iSCSI sessions.
5553#
5554# If none are specified, the Microsoft iSCSI initiator service will choose the
5555# initiator.
5556# (list value)
5557#iscsi_initiator_list =
5558
5559
5560[image_file_url]
5561
5562#
5563# From nova.conf
5564#
5565
5566# DEPRECATED:
5567# List of file systems that are configured in this file in the
5568# image_file_url:<list entry name> sections
5569# (list value)
5570# This option is deprecated for removal since 14.0.0.
5571# Its value may be silently ignored in the future.
5572# Reason:
5573# The feature to download images from glance via filesystem is not used and will
5574# be removed in the future.
5575#filesystems =
5576
5577
5578{% if compute.ironic is defined -%}
5579[ironic]
5580#
5581# Configuration options for Ironic driver (Bare Metal).
5582# If using the Ironic driver following options must be set:
5583# * auth_type
5584# * auth_url
5585# * project_name
5586# * username
5587# * password
5588# * project_domain_id or project_domain_name
5589# * user_domain_id or user_domain_name
5590
5591#
5592# From nova.conf
5593#
5594
5595# URL override for the Ironic API endpoint. (string value)
5596api_endpoint={{ compute.ironic.get('protocol', 'http') }}://{{ compute.ironic.host }}:{{ compute.ironic.port }}
5597
5598#
5599# The number of times to retry when a request conflicts.
5600# If set to 0, only try once, no retries.
5601#
5602# Related options:
5603#
5604# * api_retry_interval
5605# (integer value)
5606# Minimum value: 0
5607#api_max_retries=60
5608
5609#
5610# The number of seconds to wait before retrying the request.
5611#
5612# Related options:
5613#
5614# * api_max_retries
5615# (integer value)
5616# Minimum value: 0
5617#api_retry_interval=2
5618
5619# Timeout (seconds) to wait for node serial console state changed. Set to 0 to
5620# disable timeout. (integer value)
5621# Minimum value: 0
5622#serial_console_state_timeout=10
5623
5624# PEM encoded Certificate Authority to use when verifying HTTPs connections.
5625# (string value)
5626{%- if compute.ironic.get('protocol', 'http') == 'https' %}
5627cafile={{ compute.identity.get('cacert_file', compute.cacert_file) }}
5628{%- endif %}
5629
5630# PEM encoded client certificate key file (string value)
5631#keyfile=<None>
5632
5633# Verify HTTPS connections. (boolean value)
5634#insecure=false
5635
5636# Timeout value for http requests (integer value)
5637#timeout=<None>
5638
5639# Authentication type to load (string value)
5640# Deprecated group/name - [ironic]/auth_plugin
5641auth_type={{ compute.ironic.auth_type }}
5642
5643# Config Section from which to load plugin specific options (string value)
5644#auth_section=<None>
5645
5646# Authentication URL (string value)
5647auth_url={{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.host }}:{{ compute.identity.port }}/v3
5648
5649# Domain ID to scope to (string value)
5650#domain_id=<None>
5651
5652# Domain name to scope to (string value)
5653#domain_name=<None>
5654
5655# Project ID to scope to (string value)
5656#project_id=<None>
5657
5658# Project name to scope to (string value)
5659project_name={{ compute.identity.tenant }}
5660
5661# Domain ID containing project (string value)
5662#project_domain_id=<None>
5663
5664# Domain name containing project (string value)
5665project_domain_name={{ compute.ironic.project_domain_name }}
5666
5667# Trust ID (string value)
5668#trust_id=<None>
5669
5670# User ID (string value)
5671#user_id=<None>
5672
5673# Username (string value)
5674# Deprecated group/name - [ironic]/user-name
5675username={{ compute.ironic.user }}
5676
5677# User's domain id (string value)
5678#user_domain_id=<None>
5679
5680# User's domain name (string value)
5681user_domain_name={{ compute.ironic.user_domain_name }}
5682
5683# User's password (string value)
5684password={{ compute.ironic.password }}
5685{%- endif %}
5686
5687
5688[key_manager]
5689
5690#
5691# From nova.conf
5692#
5693
5694#
5695# Fixed key returned by key manager, specified in hex.
5696#
5697# Possible values:
5698#
5699# * Empty string or a key in hex value
5700# (string value)
5701# Deprecated group/name - [keymgr]/fixed_key
5702#fixed_key=<None>
5703
5704# The full class name of the key manager API class (string value)
5705{%- if compute.get('barbican', {}).get('enabled', False) %}
5706api_class=castellan.key_manager.barbican_key_manager.BarbicanKeyManager
5707{%- endif %}
5708
5709# The type of authentication credential to create. Possible values are 'token',
5710# 'password', 'keystone_token', and 'keystone_password'. Required if no context
5711# is passed to the credential factory. (string value)
5712#auth_type=<None>
5713
5714# Token for authentication. Required for 'token' and 'keystone_token' auth_type
5715# if no context is passed to the credential factory. (string value)
5716#token=<None>
5717
5718# Username for authentication. Required for 'password' auth_type. Optional for
5719# the 'keystone_password' auth_type. (string value)
5720#username=<None>
5721
5722# Password for authentication. Required for 'password' and 'keystone_password'
5723# auth_type. (string value)
5724#password=<None>
5725
5726# User ID for authentication. Optional for 'keystone_token' and
5727# 'keystone_password' auth_type. (string value)
5728#user_id=<None>
5729
5730# User's domain ID for authentication. Optional for 'keystone_token' and
5731# 'keystone_password' auth_type. (string value)
5732#user_domain_id=<None>
5733
5734# User's domain name for authentication. Optional for 'keystone_token' and
5735# 'keystone_password' auth_type. (string value)
5736#user_domain_name=<None>
5737
5738# Trust ID for trust scoping. Optional for 'keystone_token' and
5739# 'keystone_password' auth_type. (string value)
5740#trust_id=<None>
5741
5742# Domain ID for domain scoping. Optional for 'keystone_token' and
5743# 'keystone_password' auth_type. (string value)
5744#domain_id=<None>
5745
5746# Domain name for domain scoping. Optional for 'keystone_token' and
5747# 'keystone_password' auth_type. (string value)
5748#domain_name=<None>
5749
5750# Project ID for project scoping. Optional for 'keystone_token' and
5751# 'keystone_password' auth_type. (string value)
5752#project_id=<None>
5753
5754# Project name for project scoping. Optional for 'keystone_token' and
5755# 'keystone_password' auth_type. (string value)
5756#project_name=<None>
5757
5758# Project's domain ID for project. Optional for 'keystone_token' and
5759# 'keystone_password' auth_type. (string value)
5760#project_domain_id=<None>
5761
5762# Project's domain name for project. Optional for 'keystone_token' and
5763# 'keystone_password' auth_type. (string value)
5764#project_domain_name=<None>
5765
5766# Allow fetching a new token if the current one is going to expire. Optional for
5767# 'keystone_token' and 'keystone_password' auth_type. (boolean value)
5768#reauthenticate=true
5769
5770
5771[keystone_authtoken]
5772
5773#
5774# From keystonemiddleware.auth_token
5775#
5776signing_dirname=/tmp/keystone-signing-nova
5777revocation_cache_time = 10
5778auth_type = password
5779user_domain_id = {{ compute.identity.get('domain', 'default') }}
5780project_domain_id = {{ compute.identity.get('domain', 'default') }}
5781project_name = {{ compute.identity.tenant }}
5782username = {{ compute.identity.user }}
5783password = {{ compute.identity.password }}
5784auth_uri={{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.host }}:5000
5785auth_url={{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.host }}:35357
5786{%- if compute.identity.get('protocol', 'http') == 'https' %}
5787cafile={{ compute.identity.get('cacert_file', compute.cacert_file) }}
5788{%- endif %}
5789{%- if compute.cache is defined %}
5790memcached_servers={%- for member in compute.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
Oleksandr Bryndziibb8abfe2018-09-28 22:21:43 +00005791 {%- if compute.cache.get('security', {}).get('enabled', False) %}
5792memcache_security_strategy = {{ compute.cache.security.get('strategy', 'ENCRYPT') }}
5793 {%- if compute.cache.security.secret_key is not defined or not compute.cache.security.secret_key %}
5794 {%- do salt.test.exception('compute.cache.security.secret_key is not defined: Please add secret_key') %}
5795 {%- else %}
5796memcache_secret_key = {{ compute.cache.security.secret_key }}
5797 {%- endif %}
5798 {%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01005799{%- endif %}
5800# Complete "public" Identity API endpoint. This endpoint should not be an
5801# "admin" endpoint, as it should be accessible by all end users. Unauthenticated
5802# clients are redirected to this endpoint to authenticate. Although this
5803# endpoint should ideally be unversioned, client support in the wild varies.
5804# If you're using a versioned v2 endpoint here, then this should *not* be the
5805# same endpoint the service user utilizes for validating tokens, because normal
5806# end users may not be able to reach that endpoint. (string value)
5807#auth_uri=<None>
5808
5809# API version of the admin Identity API endpoint. (string value)
5810#auth_version=<None>
5811
5812# Do not handle authorization requests within the middleware, but delegate the
5813# authorization decision to downstream WSGI components. (boolean value)
5814#delay_auth_decision=false
5815
5816# Request timeout value for communicating with Identity API server. (integer
5817# value)
5818#http_connect_timeout=<None>
5819
5820# How many times are we trying to reconnect when communicating with Identity API
5821# Server. (integer value)
5822#http_request_max_retries=3
5823
5824# Request environment key where the Swift cache object is stored. When
5825# auth_token middleware is deployed with a Swift cache, use this option to have
5826# the middleware share a caching backend with swift. Otherwise, use the
5827# ``memcached_servers`` option instead. (string value)
5828#cache=<None>
5829
5830# Required if identity server requires client certificate (string value)
5831#certfile=<None>
5832
5833# Required if identity server requires client certificate (string value)
5834#keyfile=<None>
5835
5836# A PEM encoded Certificate Authority to use when verifying HTTPs connections.
5837# Defaults to system CAs. (string value)
5838#cafile=<None>
5839
5840# Verify HTTPS connections. (boolean value)
5841#insecure=false
5842
5843# The region in which the identity server can be found. (string value)
5844#region_name=<None>
5845
5846# DEPRECATED: Directory used to cache files related to PKI tokens. This option
5847# has been deprecated in the Ocata release and will be removed in the P release.
5848# (string value)
5849# This option is deprecated for removal since Ocata.
5850# Its value may be silently ignored in the future.
5851# Reason: PKI token format is no longer supported.
5852#signing_dir=<None>
5853
5854# Optionally specify a list of memcached server(s) to use for caching. If left
5855# undefined, tokens will instead be cached in-process. (list value)
5856# Deprecated group/name - [keystone_authtoken]/memcache_servers
5857#memcached_servers=<None>
5858
5859# In order to prevent excessive effort spent validating tokens, the middleware
5860# caches previously-seen tokens for a configurable duration (in seconds). Set to
5861# -1 to disable caching completely. (integer value)
5862#token_cache_time=300
5863
5864# DEPRECATED: Determines the frequency at which the list of revoked tokens is
5865# retrieved from the Identity service (in seconds). A high number of revocation
5866# events combined with a low cache duration may significantly reduce
5867# performance. Only valid for PKI tokens. This option has been deprecated in the
5868# Ocata release and will be removed in the P release. (integer value)
5869# This option is deprecated for removal since Ocata.
5870# Its value may be silently ignored in the future.
5871# Reason: PKI token format is no longer supported.
5872#revocation_cache_time=10
5873
5874# (Optional) If defined, indicate whether token data should be authenticated or
5875# authenticated and encrypted. If MAC, token data is authenticated (with HMAC)
5876# in the cache. If ENCRYPT, token data is encrypted and authenticated in the
5877# cache. If the value is not one of these options or empty, auth_token will
5878# raise an exception on initialization. (string value)
5879# Allowed values: None, MAC, ENCRYPT
5880#memcache_security_strategy=None
5881
5882# (Optional, mandatory if memcache_security_strategy is defined) This string is
5883# used for key derivation. (string value)
5884#memcache_secret_key=<None>
5885
5886# (Optional) Number of seconds memcached server is considered dead before it is
5887# tried again. (integer value)
5888#memcache_pool_dead_retry=300
5889
5890# (Optional) Maximum total number of open connections to every memcached server.
5891# (integer value)
5892#memcache_pool_maxsize=10
5893
5894# (Optional) Socket timeout in seconds for communicating with a memcached
5895# server. (integer value)
5896#memcache_pool_socket_timeout=3
5897
5898# (Optional) Number of seconds a connection to memcached is held unused in the
5899# pool before it is closed. (integer value)
5900#memcache_pool_unused_timeout=60
5901
5902# (Optional) Number of seconds that an operation will wait to get a memcached
5903# client connection from the pool. (integer value)
5904#memcache_pool_conn_get_timeout=10
5905
5906# (Optional) Use the advanced (eventlet safe) memcached client pool. The
5907# advanced pool will only work under python 2.x. (boolean value)
5908#memcache_use_advanced_pool=false
5909
5910# (Optional) Indicate whether to set the X-Service-Catalog header. If False,
5911# middleware will not ask for service catalog on token validation and will not
5912# set the X-Service-Catalog header. (boolean value)
5913#include_service_catalog=true
5914
5915# Used to control the use and type of token binding. Can be set to: "disabled"
5916# to not check token binding. "permissive" (default) to validate binding
5917# information if the bind type is of a form known to the server and ignore it if
5918# not. "strict" like "permissive" but if the bind type is unknown the token will
5919# be rejected. "required" any form of token binding is needed to be allowed.
5920# Finally the name of a binding method that must be present in tokens. (string
5921# value)
5922#enforce_token_bind=permissive
5923
5924# DEPRECATED: If true, the revocation list will be checked for cached tokens.
5925# This requires that PKI tokens are configured on the identity server. (boolean
5926# value)
5927# This option is deprecated for removal since Ocata.
5928# Its value may be silently ignored in the future.
5929# Reason: PKI token format is no longer supported.
5930#check_revocations_for_cached=false
5931
5932# DEPRECATED: Hash algorithms to use for hashing PKI tokens. This may be a
5933# single algorithm or multiple. The algorithms are those supported by Python
5934# standard hashlib.new(). The hashes will be tried in the order given, so put
5935# the preferred one first for performance. The result of the first hash will be
5936# stored in the cache. This will typically be set to multiple values only while
5937# migrating from a less secure algorithm to a more secure one. Once all the old
5938# tokens are expired this option should be set to a single value for better
5939# performance. (list value)
5940# This option is deprecated for removal since Ocata.
5941# Its value may be silently ignored in the future.
5942# Reason: PKI token format is no longer supported.
5943#hash_algorithms=md5
5944
5945# A choice of roles that must be present in a service token. Service tokens are
5946# allowed to request that an expired token can be used and so this check should
5947# tightly control that only actual services should be sending this token. Roles
5948# here are applied as an ANY check so any role in this list must be present. For
5949# backwards compatibility reasons this currently only affects the allow_expired
5950# check. (list value)
5951#service_token_roles=service
Ivan Berezovskiy924e1722019-08-28 20:07:58 +04005952{%- if compute.service_token_roles is defined %}
5953service_token_roles = {{ compute.service_token_roles }}
5954{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01005955
5956# For backwards compatibility reasons we must let valid service tokens pass that
5957# don't pass the service_token_roles check as valid. Setting this true will
5958# become the default in a future release and should be enabled if possible.
5959# (boolean value)
5960#service_token_roles_required=false
Ivan Berezovskiy924e1722019-08-28 20:07:58 +04005961{%- if compute.service_token_roles_required is defined %}
5962service_token_roles_required = {{ compute.service_token_roles_required }}
5963{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01005964
5965# Prefix to prepend at the beginning of the path. Deprecated, use identity_uri.
5966# (string value)
5967#auth_admin_prefix =
5968
5969# Host providing the admin Identity API endpoint. Deprecated, use identity_uri.
5970# (string value)
5971#auth_host=127.0.0.1
5972
5973# Port of the admin Identity API endpoint. Deprecated, use identity_uri.
5974# (integer value)
5975#auth_port=35357
5976
5977# Protocol of the admin Identity API endpoint. Deprecated, use identity_uri.
5978# (string value)
5979# Allowed values: http, https
5980#auth_protocol=https
5981
5982# Complete admin Identity API endpoint. This should specify the unversioned root
5983# endpoint e.g. https://localhost:35357/ (string value)
5984#identity_uri=<None>
5985
5986# This option is deprecated and may be removed in a future release. Single
5987# shared secret with the Keystone configuration used for bootstrapping a
5988# Keystone installation, or otherwise bypassing the normal authentication
5989# process. This option should not be used, use `admin_user` and `admin_password`
5990# instead. (string value)
5991#admin_token=<None>
5992
5993# Service username. (string value)
5994#admin_user=<None>
5995
5996# Service user password. (string value)
5997#admin_password=<None>
5998
5999# Service tenant name. (string value)
6000#admin_tenant_name=admin
6001
6002# Authentication type to load (string value)
6003# Deprecated group/name - [keystone_authtoken]/auth_plugin
6004#auth_type=<None>
6005
6006# Config Section from which to load plugin specific options (string value)
6007#auth_section=<None>
6008
6009
6010[libvirt]
6011#
6012# Libvirt options allows cloud administrator to configure related
6013# libvirt hypervisor driver to be used within an OpenStack deployment.
6014#
6015# Almost all of the libvirt config options are influence by ``virt_type`` config
6016# which describes the virtualization type (or so called domain type) libvirt
6017# should use for specific features such as live migration, snapshot.
6018
6019#
6020# From nova.conf
6021#
Dzmitry Stremkouski7da9bf12018-04-25 22:30:37 +02006022cpu_mode = {{ compute.cpu_mode }}
Alexei Lugovoi1023ea02018-03-27 12:16:42 +02006023{%- if compute.libvirt.virt_type is defined %}
6024virt_type = {{ compute.libvirt.virt_type }}
6025{%- else %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006026virt_type = kvm
Alexei Lugovoi1023ea02018-03-27 12:16:42 +02006027{%- endif%}
Oleksandr Shyshko3a75a3b2018-04-26 14:57:50 +03006028
6029inject_partition={{ compute.libvirt.inject_partition }}
6030{%- if compute.libvirt.get('inject_partition', '-2')|string == '-2' %}
6031inject_password=False
6032{%- else %}
6033inject_password={{ compute.libvirt.inject_password }}
6034{%- endif %}
6035
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006036disk_cachemodes="{{ compute.get('disk_cachemodes', 'network=writeback,block=none') }}"
6037block_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_NON_SHARED_INC
6038live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST
6039inject_key=True
6040vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
6041
Andrey Volkovd1e69c32018-05-16 13:12:59 +03006042{%- if compute.get('ceph', {}).get('ephemeral', False) %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006043images_type=rbd
6044images_rbd_pool={{ compute.ceph.rbd_pool }}
6045images_rbd_ceph_conf=/etc/ceph/ceph.conf
6046rbd_user={{ compute.ceph.rbd_user }}
6047rbd_secret_uuid={{ compute.ceph.secret_uuid }}
6048inject_password=false
6049inject_key=false
Andrey Volkovd1e69c32018-05-16 13:12:59 +03006050{%- elif compute.get('lvm', {}).get('ephemeral', False) %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006051images_type=lvm
6052images_volume_group={{ compute.lvm.images_volume_group }}
6053{%- if compute.lvm.volume_clear is defined %}
6054volume_clear={{ compute.lvm.volume_clear }}
6055{%- endif %}
6056{%- if compute.lvm.volume_clear_size is defined %}
6057volume_clear_size={{ compute.lvm.volume_clear_size }}
6058{%- endif %}
Pavlo Shchelokovskyyc7d54842019-07-05 17:20:10 +03006059{%- if compute.lvm.volume_clear_ionice_level is defined %}
6060volume_clear_ionice_level={{compute.lvm.volume_clear_ionice_level}}
6061{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006062{%- endif %}
6063
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006064# The ID of the image to boot from to rescue data from a corrupted instance.
6065#
6066# If the rescue REST API operation doesn't provide an ID of an image to
6067# use, the image which is referenced by this ID is used. If this
6068# option is not set, the image from the instance is used.
6069#
6070# Possible values:
6071#
6072# * An ID of an image or nothing. If it points to an *Amazon Machine
6073# Image* (AMI), consider to set the config options ``rescue_kernel_id``
6074# and ``rescue_ramdisk_id`` too. If nothing is set, the image of the instance
6075# is used.
6076#
6077# Related options:
6078#
6079# * ``rescue_kernel_id``: If the chosen rescue image allows the separate
6080# definition of its kernel disk, the value of this option is used,
6081# if specified. This is the case when *Amazon*'s AMI/AKI/ARI image
6082# format is used for the rescue image.
6083# * ``rescue_ramdisk_id``: If the chosen rescue image allows the separate
6084# definition of its RAM disk, the value of this option is used if,
6085# specified. This is the case when *Amazon*'s AMI/AKI/ARI image
6086# format is used for the rescue image.
6087# (string value)
6088#rescue_image_id=<None>
6089
6090#
6091# The ID of the kernel (AKI) image to use with the rescue image.
6092#
6093# If the chosen rescue image allows the separate definition of its kernel
6094# disk, the value of this option is used, if specified. This is the case
6095# when *Amazon*'s AMI/AKI/ARI image format is used for the rescue image.
6096#
6097# Possible values:
6098#
6099# * An ID of an kernel image or nothing. If nothing is specified, the kernel
6100# disk from the instance is used if it was launched with one.
6101#
6102# Related options:
6103#
6104# * ``rescue_image_id``: If that option points to an image in *Amazon*'s
6105# AMI/AKI/ARI image format, it's useful to use ``rescue_kernel_id`` too.
6106# (string value)
6107#rescue_kernel_id=<None>
6108
6109#
6110# The ID of the RAM disk (ARI) image to use with the rescue image.
6111#
6112# If the chosen rescue image allows the separate definition of its RAM
6113# disk, the value of this option is used, if specified. This is the case
6114# when *Amazon*'s AMI/AKI/ARI image format is used for the rescue image.
6115#
6116# Possible values:
6117#
6118# * An ID of a RAM disk image or nothing. If nothing is specified, the RAM
6119# disk from the instance is used if it was launched with one.
6120#
6121# Related options:
6122#
6123# * ``rescue_image_id``: If that option points to an image in *Amazon*'s
6124# AMI/AKI/ARI image format, it's useful to use ``rescue_ramdisk_id`` too.
6125# (string value)
6126#rescue_ramdisk_id=<None>
6127
6128#
6129# Describes the virtualization type (or so called domain type) libvirt should
6130# use.
6131#
6132# The choice of this type must match the underlying virtualization strategy
6133# you have chosen for this host.
6134#
6135# Possible values:
6136#
6137# * See the predefined set of case-sensitive values.
6138#
6139# Related options:
6140#
6141# * ``connection_uri``: depends on this
6142# * ``disk_prefix``: depends on this
6143# * ``cpu_mode``: depends on this
6144# * ``cpu_model``: depends on this
6145# (string value)
6146# Allowed values: kvm, lxc, qemu, uml, xen, parallels
6147#virt_type=kvm
6148
6149#
6150# Overrides the default libvirt URI of the chosen virtualization type.
6151#
6152# If set, Nova will use this URI to connect to libvirt.
6153#
6154# Possible values:
6155#
6156# * An URI like ``qemu:///system`` or ``xen+ssh://oirase/`` for example.
6157# This is only necessary if the URI differs to the commonly known URIs
6158# for the chosen virtualization type.
6159#
6160# Related options:
6161#
6162# * ``virt_type``: Influences what is used as default value here.
6163# (string value)
6164#connection_uri =
Oleksandr Shyshkof09a8712018-09-26 19:22:12 +03006165{%- if compute.get('libvirt', {}).uri is defined %}
6166connection_uri={{ compute.libvirt.uri }}
6167{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006168
6169#
6170# Allow the injection of an admin password for instance only at ``create`` and
6171# ``rebuild`` process.
6172#
6173# There is no agent needed within the image to do this. If *libguestfs* is
6174# available on the host, it will be used. Otherwise *nbd* is used. The file
6175# system of the image will be mounted and the admin password, which is provided
6176# in the REST API call will be injected as password for the root user. If no
6177# root user is available, the instance won't be launched and an error is thrown.
6178# Be aware that the injection is *not* possible when the instance gets launched
6179# from a volume.
6180#
6181# Possible values:
6182#
6183# * True: Allows the injection.
6184# * False (default): Disallows the injection. Any via the REST API provided
6185# admin password will be silently ignored.
6186#
6187# Related options:
6188#
6189# * ``inject_partition``: That option will decide about the discovery and usage
6190# of the file system. It also can disable the injection at all.
6191# (boolean value)
6192#inject_password=false
6193
6194#
6195# Allow the injection of an SSH key at boot time.
6196#
6197# There is no agent needed within the image to do this. If *libguestfs* is
6198# available on the host, it will be used. Otherwise *nbd* is used. The file
6199# system of the image will be mounted and the SSH key, which is provided
6200# in the REST API call will be injected as SSH key for the root user and
6201# appended to the ``authorized_keys`` of that user. The SELinux context will
6202# be set if necessary. Be aware that the injection is *not* possible when the
6203# instance gets launched from a volume.
6204#
6205# This config option will enable directly modifying the instance disk and does
6206# not affect what cloud-init may do using data from config_drive option or the
6207# metadata service.
6208#
6209# Related options:
6210#
6211# * ``inject_partition``: That option will decide about the discovery and usage
6212# of the file system. It also can disable the injection at all.
6213# (boolean value)
6214#inject_key=false
6215
6216#
6217# Determines the way how the file system is chosen to inject data into it.
6218#
6219# *libguestfs* will be used a first solution to inject data. If that's not
6220# available on the host, the image will be locally mounted on the host as a
6221# fallback solution. If libguestfs is not able to determine the root partition
6222# (because there are more or less than one root partition) or cannot mount the
6223# file system it will result in an error and the instance won't be boot.
6224#
6225# Possible values:
6226#
6227# * -2 => disable the injection of data.
6228# * -1 => find the root partition with the file system to mount with libguestfs
6229# * 0 => The image is not partitioned
6230# * >0 => The number of the partition to use for the injection
6231#
6232# Related options:
6233#
6234# * ``inject_key``: If this option allows the injection of a SSH key it depends
6235# on value greater or equal to -1 for ``inject_partition``.
6236# * ``inject_password``: If this option allows the injection of an admin
6237# password
6238# it depends on value greater or equal to -1 for ``inject_partition``.
6239# * ``guestfs`` You can enable the debug log level of libguestfs with this
6240# config option. A more verbose output will help in debugging issues.
6241# * ``virt_type``: If you use ``lxc`` as virt_type it will be treated as a
6242# single partition image
6243# (integer value)
6244# Minimum value: -2
6245#inject_partition=-2
6246
6247# DEPRECATED:
6248# Enable a mouse cursor within a graphical VNC or SPICE sessions.
6249#
6250# This will only be taken into account if the VM is fully virtualized and VNC
6251# and/or SPICE is enabled. If the node doesn't support a graphical framebuffer,
6252# then it is valid to set this to False.
6253#
6254# Related options:
6255# * ``[vnc]enabled``: If VNC is enabled, ``use_usb_tablet`` will have an effect.
6256# * ``[spice]enabled`` + ``[spice].agent_enabled``: If SPICE is enabled and the
6257# spice agent is disabled, the config value of ``use_usb_tablet`` will have
6258# an effect.
6259# (boolean value)
6260# This option is deprecated for removal since 14.0.0.
6261# Its value may be silently ignored in the future.
6262# Reason: This option is being replaced by the 'pointer_model' option.
6263#use_usb_tablet=true
6264
6265#
6266# The IP address or hostname to be used as the target for live migration
6267# traffic.
6268#
6269# If this option is set to None, the hostname of the migration target compute
6270# node will be used.
6271#
6272# This option is useful in environments where the live-migration traffic can
6273# impact the network plane significantly. A separate network for live-migration
6274# traffic can then use this config option and avoids the impact on the
6275# management network.
6276#
6277# Possible values:
6278#
6279# * A valid IP address or hostname, else None.
6280# (string value)
6281#live_migration_inbound_addr=<None>
6282{%- if compute.libvirt.migration_inbound_addr is defined %}
6283live_migration_inbound_addr = {{ compute.libvirt.migration_inbound_addr }}
6284{%- endif %}
6285
6286# DEPRECATED:
6287# Live migration target URI to use.
6288#
6289# Override the default libvirt live migration target URI (which is dependent
6290# on virt_type). Any included "%s" is replaced with the migration target
6291# hostname.
6292#
6293# If this option is set to None (which is the default), Nova will automatically
6294# generate the `live_migration_uri` value based on only 3 supported `virt_type`
6295# in following list:
6296# * 'kvm': 'qemu+tcp://%s/system'
6297# * 'qemu': 'qemu+tcp://%s/system'
6298# * 'xen': 'xenmigr://%s/system'
6299#
6300# Related options:
6301# * ``live_migration_inbound_addr``: If ``live_migration_inbound_addr`` value
6302# is not None, the ip/hostname address of target compute node is used instead
6303# of ``live_migration_uri`` as the uri for live migration.
6304# * ``live_migration_scheme``: If ``live_migration_uri`` is not set, the scheme
6305# used for live migration is taken from ``live_migration_scheme`` instead.
6306# (string value)
6307# This option is deprecated for removal since 15.0.0.
6308# Its value may be silently ignored in the future.
6309# Reason:
6310# live_migration_uri is deprecated for removal in favor of two other options
6311# that
6312# allow to change live migration scheme and target URI:
6313# ``live_migration_scheme``
6314# and ``live_migration_inbound_addr`` respectively.
6315#live_migration_uri=<None>
6316
6317#
6318# Schema used for live migration.
6319#
6320# Override the default libvirt live migration scheme (which is dependant on
6321# virt_type). If this option is set to None, nova will automatically choose a
6322# sensible default based on the hypervisor. It is not recommended that you
6323# change
6324# this unless you are very sure that hypervisor supports a particular scheme.
6325#
6326# Related options:
6327# * ``virt_type``: This option is meaningful only when ``virt_type`` is set to
6328# `kvm` or `qemu`.
6329# * ``live_migration_uri``: If ``live_migration_uri`` value is not None, the
6330# scheme used for live migration is taken from ``live_migration_uri`` instead.
6331# (string value)
6332#live_migration_scheme=<None>
6333
Oleksandr Shyshkof09a8712018-09-26 19:22:12 +03006334{%- if compute.libvirt.tls.get('enabled', False) %}
6335live_migration_scheme="tls"
6336{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006337#
6338# Enable tunnelled migration.
6339#
6340# This option enables the tunnelled migration feature, where migration data is
6341# transported over the libvirtd connection. If enabled, we use the
6342# VIR_MIGRATE_TUNNELLED migration flag, avoiding the need to configure
6343# the network to allow direct hypervisor to hypervisor communication.
6344# If False, use the native transport. If not set, Nova will choose a
6345# sensible default based on, for example the availability of native
6346# encryption support in the hypervisor. Enable this option will definitely
6347# impact performance massively.
6348#
6349# Note that this option is NOT compatible with use of block migration.
6350#
6351# Possible values:
6352#
6353# * Supersedes and (if set) overrides the deprecated 'live_migration_flag' and
6354# 'block_migration_flag' to enable tunneled migration.
6355# (boolean value)
6356#live_migration_tunnelled=false
6357{%- if compute.libvirt.live_migration_tunnelled is defined %}
6358live_migration_tunnelled = {{ compute.libvirt.live_migration_tunnelled }}
6359{%- endif %}
6360
6361#
6362# Maximum bandwidth(in MiB/s) to be used during migration.
6363#
6364# If set to 0, the hypervisor will choose a suitable default. Some hypervisors
6365# do not support this feature and will return an error if bandwidth is not 0.
6366# Please refer to the libvirt documentation for further details.
6367# (integer value)
6368#live_migration_bandwidth=0
6369
6370#
6371# Maximum permitted downtime, in milliseconds, for live migration
6372# switchover.
6373#
6374# Will be rounded up to a minimum of 100ms. You can increase this value
6375# if you want to allow live-migrations to complete faster, or avoid
6376# live-migration timeout errors by allowing the guest to be paused for
6377# longer during the live-migration switch over.
6378#
6379# Related options:
6380#
6381# * live_migration_completion_timeout
6382# (integer value)
6383#live_migration_downtime=500
6384
6385#
6386# Number of incremental steps to reach max downtime value.
6387#
6388# Will be rounded up to a minimum of 3 steps.
6389# (integer value)
6390#live_migration_downtime_steps=10
6391
6392#
6393# Time to wait, in seconds, between each step increase of the migration
6394# downtime.
6395#
6396# Minimum delay is 10 seconds. Value is per GiB of guest RAM + disk to be
6397# transferred, with lower bound of a minimum of 2 GiB per device.
6398# (integer value)
6399#live_migration_downtime_delay=75
6400
6401#
6402# Time to wait, in seconds, for migration to successfully complete transferring
6403# data before aborting the operation.
6404#
6405# Value is per GiB of guest RAM + disk to be transferred, with lower bound of
6406# a minimum of 2 GiB. Should usually be larger than downtime delay * downtime
6407# steps. Set to 0 to disable timeouts.
6408#
6409# Related options:
6410#
6411# * live_migration_downtime
6412# * live_migration_downtime_steps
6413# * live_migration_downtime_delay
6414# (integer value)
6415# Note: This option can be changed without restarting.
6416#live_migration_completion_timeout=800
6417
6418# DEPRECATED:
6419# Time to wait, in seconds, for migration to make forward progress in
6420# transferring data before aborting the operation.
6421#
6422# Set to 0 to disable timeouts.
6423#
6424# This is deprecated, and now disabled by default because we have found serious
6425# bugs in this feature that caused false live-migration timeout failures. This
6426# feature will be removed or replaced in a future release.
6427# (integer value)
6428# Note: This option can be changed without restarting.
6429# This option is deprecated for removal.
6430# Its value may be silently ignored in the future.
6431# Reason: Serious bugs found in this feature.
6432#live_migration_progress_timeout=0
6433
6434#
6435# This option allows nova to switch an on-going live migration to post-copy
6436# mode, i.e., switch the active VM to the one on the destination node before the
6437# migration is complete, therefore ensuring an upper bound on the memory that
6438# needs to be transferred. Post-copy requires libvirt>=1.3.3 and QEMU>=2.5.0.
6439#
6440# When permitted, post-copy mode will be automatically activated if a
6441# live-migration memory copy iteration does not make percentage increase of at
6442# least 10% over the last iteration.
6443#
6444# The live-migration force complete API also uses post-copy when permitted. If
6445# post-copy mode is not available, force complete falls back to pausing the VM
6446# to ensure the live-migration operation will complete.
6447#
6448# When using post-copy mode, if the source and destination hosts loose network
6449# connectivity, the VM being live-migrated will need to be rebooted. For more
6450# details, please see the Administration guide.
6451#
6452# Related options:
6453#
6454# * live_migration_permit_auto_converge
6455# (boolean value)
6456#live_migration_permit_post_copy=false
6457
6458#
6459# This option allows nova to start live migration with auto converge on.
6460#
6461# Auto converge throttles down CPU if a progress of on-going live migration
6462# is slow. Auto converge will only be used if this flag is set to True and
6463# post copy is not permitted or post copy is unavailable due to the version
6464# of libvirt and QEMU in use. Auto converge requires libvirt>=1.2.3 and
6465# QEMU>=1.6.0.
6466#
6467# Related options:
6468#
6469# * live_migration_permit_post_copy
6470# (boolean value)
6471#live_migration_permit_auto_converge=false
Sergio Lystopad9d31cba2018-05-15 11:29:11 +03006472{%- if compute.libvirt.live_migration_permit_auto_converge is defined %}
6473live_migration_permit_auto_converge={{ compute.libvirt.live_migration_permit_auto_converge|lower }}
6474{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006475
6476#
6477# Determine the snapshot image format when sending to the image service.
6478#
6479# If set, this decides what format is used when sending the snapshot to the
6480# image service.
6481# If not set, defaults to same type as source image.
6482#
6483# Possible values:
6484#
6485# * ``raw``: RAW disk format
6486# * ``qcow2``: KVM default disk format
6487# * ``vmdk``: VMWare default disk format
6488# * ``vdi``: VirtualBox default disk format
6489# * If not set, defaults to same type as source image.
6490# (string value)
6491# Allowed values: raw, qcow2, vmdk, vdi
6492#snapshot_image_format=<None>
6493
6494#
6495# Override the default disk prefix for the devices attached to an instance.
6496#
6497# If set, this is used to identify a free disk device name for a bus.
6498#
6499# Possible values:
6500#
6501# * Any prefix which will result in a valid disk device name like 'sda' or 'hda'
6502# for example. This is only necessary if the device names differ to the
6503# commonly known device name prefixes for a virtualization type such as: sd,
6504# xvd, uvd, vd.
6505#
6506# Related options:
6507#
6508# * ``virt_type``: Influences which device type is used, which determines
6509# the default disk prefix.
6510# (string value)
6511#disk_prefix=<None>
6512
6513# Number of seconds to wait for instance to shut down after soft reboot request
6514# is made. We fall back to hard reboot if instance does not shutdown within this
6515# window. (integer value)
6516#wait_soft_reboot_seconds=120
6517
6518#
6519# Is used to set the CPU mode an instance should have.
6520#
6521# If virt_type="kvm|qemu", it will default to "host-model", otherwise it will
6522# default to "none".
6523#
6524# Possible values:
6525#
6526# * ``host-model``: Clones the host CPU feature flags.
6527# * ``host-passthrough``: Use the host CPU model exactly;
6528# * ``custom``: Use a named CPU model;
6529# * ``none``: Not set any CPU model.
6530#
6531# Related options:
6532#
6533# * ``cpu_model``: If ``custom`` is used for ``cpu_mode``, set this config
6534# option too, otherwise this would result in an error and the instance won't
6535# be launched.
6536# (string value)
6537# Allowed values: host-model, host-passthrough, custom, none
6538#cpu_mode=<None>
6539
6540#
6541# Set the name of the libvirt CPU model the instance should use.
6542#
6543# Possible values:
6544#
6545# * The names listed in /usr/share/libvirt/cpu_map.xml
6546#
6547# Related options:
6548#
6549# * ``cpu_mode``: Don't set this when ``cpu_mode`` is NOT set to ``custom``.
6550# This would result in an error and the instance won't be launched.
6551# * ``virt_type``: Only the virtualization types ``kvm`` and ``qemu`` use this.
6552# (string value)
Dzmitry Stremkouski7da9bf12018-04-25 22:30:37 +02006553{%- if compute.get('libvirt', {}).cpu_model is defined and compute.cpu_mode == 'custom' %}
Vasyl Saienkod138f782018-04-19 17:29:08 +03006554cpu_model = {{ compute.libvirt.cpu_model }}
6555{%- else %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006556#cpu_model=<None>
Vasyl Saienkod138f782018-04-19 17:29:08 +03006557{%- endif %}
6558
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006559
6560# Location where libvirt driver will store snapshots before uploading them to
6561# image service (string value)
6562#snapshots_directory=$instances_path/snapshots
6563
6564# Location where the Xen hvmloader is kept (string value)
6565#xen_hvmloader_path=/usr/lib/xen/boot/hvmloader
6566
6567# Specific cachemodes to use for different disk types e.g:
6568# file=directsync,block=none (list value)
6569#disk_cachemodes =
6570
6571# A path to a device that will be used as source of entropy on the host.
6572# Permitted options are: /dev/random or /dev/hwrng (string value)
6573#rng_dev_path=<None>
Oleksandr Pidrepnyief9fd782019-03-04 19:18:19 +02006574{%- if compute.get('libvirt', {}).rng_dev_path is defined %}
6575rng_dev_path={{ compute.libvirt.rng_dev_path }}
6576{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006577
6578# For qemu or KVM guests, set this option to specify a default machine type per
6579# host architecture. You can find a list of supported machine types in your
6580# environment by checking the output of the "virsh capabilities"command. The
6581# format of the value for this config option is host-arch=machine-type. For
6582# example: x86_64=machinetype1,armv7l=machinetype2 (list value)
6583#hw_machine_type=<None>
6584
6585# The data source used to the populate the host "serial" UUID exposed to guest
6586# in the virtual BIOS. (string value)
6587# Allowed values: none, os, hardware, auto
6588#sysinfo_serial=auto
6589
6590# A number of seconds to memory usage statistics period. Zero or negative value
6591# mean to disable memory usage statistics. (integer value)
6592#mem_stats_period_seconds=10
6593
6594# List of uid targets and ranges.Syntax is guest-uid:host-uid:countMaximum of 5
6595# allowed. (list value)
6596#uid_maps =
6597
6598# List of guid targets and ranges.Syntax is guest-gid:host-gid:countMaximum of 5
6599# allowed. (list value)
6600#gid_maps =
6601
6602# In a realtime host context vCPUs for guest will run in that scheduling
6603# priority. Priority depends on the host kernel (usually 1-99) (integer value)
6604#realtime_scheduler_priority=1
6605
6606#
6607# This is a performance event list which could be used as monitor. These events
6608# will be passed to libvirt domain xml while creating a new instances.
6609# Then event statistics data can be collected from libvirt. The minimum
6610# libvirt version is 2.0.0. For more information about `Performance monitoring
6611# events`, refer https://libvirt.org/formatdomain.html#elementsPerf .
6612#
6613# Possible values:
6614# * A string list. For example: ``enabled_perf_events = cmt, mbml, mbmt``
6615# The supported events list can be found in
6616# https://libvirt.org/html/libvirt-libvirt-domain.html ,
6617# which you may need to search key words ``VIR_PERF_PARAM_*``
6618# (list value)
6619#enabled_perf_events =
6620
6621#
6622# VM Images format.
6623#
6624# If default is specified, then use_cow_images flag is used instead of this
6625# one.
6626#
6627# Related options:
6628#
6629# * virt.use_cow_images
6630# * images_volume_group
6631# (string value)
6632# Allowed values: raw, flat, qcow2, lvm, rbd, ploop, default
6633#images_type=default
6634
6635#
6636# LVM Volume Group that is used for VM images, when you specify images_type=lvm
6637#
6638# Related options:
6639#
6640# * images_type
6641# (string value)
6642#images_volume_group=<None>
6643
6644#
6645# Create sparse logical volumes (with virtualsize) if this flag is set to True.
6646# (boolean value)
6647#sparse_logical_volumes=false
6648
6649# The RADOS pool in which rbd volumes are stored (string value)
6650#images_rbd_pool=rbd
6651
6652# Path to the ceph configuration file to use (string value)
6653#images_rbd_ceph_conf =
6654
6655#
6656# Discard option for nova managed disks.
6657#
6658# Requires:
6659#
6660# * Libvirt >= 1.0.6
6661# * Qemu >= 1.5 (raw format)
6662# * Qemu >= 1.6 (qcow2 format)
6663# (string value)
6664# Allowed values: ignore, unmap
6665#hw_disk_discard=<None>
6666{%- if compute.libvirt.hw_disk_discard is defined %}
6667hw_disk_discard={{ compute.libvirt.hw_disk_discard }}
6668{%- endif %}
6669
6670# DEPRECATED: Allows image information files to be stored in non-standard
6671# locations (string value)
6672# This option is deprecated for removal since 14.0.0.
6673# Its value may be silently ignored in the future.
6674# Reason: Image info files are no longer used by the image cache
6675#image_info_filename_pattern=$instances_path/$image_cache_subdirectory_name/%(image)s.info
6676
6677# Unused resized base images younger than this will not be removed (integer
6678# value)
6679#remove_unused_resized_minimum_age_seconds=3600
6680
6681# DEPRECATED: Write a checksum for files in _base to disk (boolean value)
6682# This option is deprecated for removal since 14.0.0.
6683# Its value may be silently ignored in the future.
6684# Reason: The image cache no longer periodically calculates checksums of stored
6685# images. Data integrity can be checked at the block or filesystem level.
6686#checksum_base_images=false
6687
6688# DEPRECATED: How frequently to checksum base images (integer value)
6689# This option is deprecated for removal since 14.0.0.
6690# Its value may be silently ignored in the future.
6691# Reason: The image cache no longer periodically calculates checksums of stored
6692# images. Data integrity can be checked at the block or filesystem level.
6693#checksum_interval_seconds=3600
6694
6695#
6696# Method used to wipe ephemeral disks when they are deleted. Only takes effect
6697# if LVM is set as backing storage.
6698#
6699# Possible values:
6700#
6701# * none - do not wipe deleted volumes
6702# * zero - overwrite volumes with zeroes
6703# * shred - overwrite volume repeatedly
6704#
6705# Related options:
6706#
6707# * images_type - must be set to ``lvm``
6708# * volume_clear_size
6709# (string value)
6710# Allowed values: none, zero, shred
6711#volume_clear=zero
6712
6713#
6714# Size of area in MiB, counting from the beginning of the allocated volume,
6715# that will be cleared using method set in ``volume_clear`` option.
6716#
6717# Possible values:
6718#
6719# * 0 - clear whole volume
6720# * >0 - clear specified amount of MiB
6721#
6722# Related options:
6723#
6724# * images_type - must be set to ``lvm``
6725# * volume_clear - must be set and the value must be different than ``none``
6726# for this option to have any impact
6727# (integer value)
6728# Minimum value: 0
6729#volume_clear_size=0
6730
6731#
Pavlo Shchelokovskyyc7d54842019-07-05 17:20:10 +03006732# What I/O schedule class and priority level should be used when clearing
6733# a volume. Only takes effect if ``volume_clear`` option is set to ``zero`` or
6734# ``shred``. For more info about classes and priorities, check ``man ionice``.
6735#
6736# Possible values:
6737#
6738# * idle - use the Idle scheduling class. This option impacts system performance
6739# the least with a downside of increased time for volume clearance
6740# * from 0 to 7 - use the Best-effort scheduling class and set the priority level
6741# to the specified number
6742#
6743# If not set - do not set I/O scheduling class explicitly. Usually, it's the most
6744# aggressive option in terms of system performance impact.
6745#
6746# Related options:
6747#
6748# * images_type - must be set to ``lvm``
6749# * volume_clear - must be set and the value must be different than ``none``
6750# for this option to have any impact
6751# (string value)
6752# Possible values:
6753# 'idle', '0', '1', '2', '3', '4', '5', '6', '7'
6754#volume_clear_ionice_level=None
6755
6756#
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006757# Enable snapshot compression for ``qcow2`` images.
6758#
6759# Note: you can set ``snapshot_image_format`` to ``qcow2`` to force all
6760# snapshots to be in ``qcow2`` format, independently from their original image
6761# type.
6762#
6763# Related options:
6764#
6765# * snapshot_image_format
6766# (boolean value)
6767#snapshot_compression=false
6768
6769# Use virtio for bridge interfaces with KVM/QEMU (boolean value)
6770#use_virtio_for_bridges=true
6771
6772#
6773# Protocols listed here will be accessed directly from QEMU.
6774#
6775# If gluster is present in qemu_allowed_storage_drivers, glusterfs's backend
6776# will
6777# pass a disk configuration to QEMU. This allows QEMU to access the volume using
6778# libgfapi rather than mounting GlusterFS via fuse.
6779#
6780# Possible values:
6781#
6782# * [gluster]
6783# (list value)
6784#qemu_allowed_storage_drivers =
6785
6786#
6787# Use multipath connection of the iSCSI or FC volume
6788#
6789# Volumes can be connected in the LibVirt as multipath devices. This will
6790# provide high availability and fault tolerance.
6791# (boolean value)
6792# Deprecated group/name - [libvirt]/iscsi_use_multipath
6793#volume_use_multipath=false
Oleh Hryhorov08482aa2018-11-19 14:07:47 +02006794{%- if compute.libvirt.volume_use_multipath is defined %}
6795volume_use_multipath={{ compute.libvirt.volume_use_multipath }}
6796{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006797
6798#
6799# Number of times to rediscover AoE target to find volume.
6800#
6801# Nova provides support for block storage attaching to hosts via AOE (ATA over
6802# Ethernet). This option allows the user to specify the maximum number of retry
6803# attempts that can be made to discover the AoE device.
6804# (integer value)
6805#num_aoe_discover_tries=3
6806
6807#
6808# Absolute path to the directory where the glusterfs volume is mounted on the
6809# compute node.
6810# (string value)
6811#glusterfs_mount_point_base=$state_path/mnt
6812
6813#
6814# Number of times to scan iSCSI target to find volume.
6815# (integer value)
6816#num_iscsi_scan_tries=5
6817
6818#
6819# The iSCSI transport iface to use to connect to target in case offload support
6820# is desired.
6821#
6822# Default format is of the form <transport_name>.<hwaddress> where
6823# <transport_name> is one of (be2iscsi, bnx2i, cxgb3i, cxgb4i, qla4xxx, ocs) and
6824# <hwaddress> is the MAC address of the interface and can be generated via the
6825# iscsiadm -m iface command. Do not confuse the iscsi_iface parameter to be
6826# provided here with the actual transport name.
6827# (string value)
6828# Deprecated group/name - [libvirt]/iscsi_transport
6829#iscsi_iface=<None>
6830
6831#
6832# Number of times to scan iSER target to find volume.
6833#
6834# iSER is a server network protocol that extends iSCSI protocol to use Remote
6835# Direct Memory Access (RDMA). This option allows the user to specify the
6836# maximum
6837# number of scan attempts that can be made to find iSER volume.
6838# (integer value)
6839#num_iser_scan_tries=5
6840
6841#
6842# Use multipath connection of the iSER volume.
6843#
6844# iSER volumes can be connected as multipath devices. This will provide high
6845# availability and fault tolerance.
6846# (boolean value)
6847#iser_use_multipath=false
6848
6849#
6850# The RADOS client name for accessing rbd(RADOS Block Devices) volumes.
6851#
6852# Libvirt will refer to this user when connecting and authenticating with
6853# the Ceph RBD server.
6854# (string value)
6855#rbd_user=<None>
6856
6857#
6858# The libvirt UUID of the secret for the rbd_user volumes.
6859# (string value)
6860#rbd_secret_uuid=<None>
6861
6862#
6863# Directory where the NFS volume is mounted on the compute node.
6864# The default is 'mnt' directory of the location where nova's Python module
6865# is installed.
6866#
6867# NFS provides shared storage for the OpenStack Block Storage service.
6868#
6869# Possible values:
6870#
6871# * A string representing absolute path of mount point.
6872# (string value)
6873#nfs_mount_point_base=$state_path/mnt
6874
6875#
6876# Mount options passed to the NFS client. See section of the nfs man page
6877# for details.
6878#
6879# Mount options controls the way the filesystem is mounted and how the
6880# NFS client behaves when accessing files on this mount point.
6881#
6882# Possible values:
6883#
6884# * Any string representing mount options separated by commas.
6885# * Example string: vers=3,lookupcache=pos
6886# (string value)
Martin Polreichb8f389f2018-08-29 10:48:45 +02006887{%- if compute.nfs_mount_options is defined %}
6888nfs_mount_options="{{ compute.nfs_mount_options }}"
6889{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01006890
6891#
6892# Directory where the Quobyte volume is mounted on the compute node.
6893#
6894# Nova supports Quobyte volume driver that enables storing Block Storage
6895# service volumes on a Quobyte storage back end. This Option sepcifies the
6896# path of the directory where Quobyte volume is mounted.
6897#
6898# Possible values:
6899#
6900# * A string representing absolute path of mount point.
6901# (string value)
6902#quobyte_mount_point_base=$state_path/mnt
6903
6904# Path to a Quobyte Client configuration file. (string value)
6905#quobyte_client_cfg=<None>
6906
6907#
6908# Path or URL to Scality SOFS(Scale-Out File Server) configuration file.
6909#
6910# The Scality SOFS provides OpenStack users the option of storing their
6911# data on a high capacity, replicated, highly available Scality Ring object
6912# storage cluster.
6913# (string value)
6914#scality_sofs_config=<None>
6915
6916#
6917# Base dir where Scality SOFS shall be mounted.
6918#
6919# The Scality volume driver in Nova mounts SOFS and lets the hypervisor access
6920# the volumes.
6921#
6922# Possible values:
6923#
6924# * $state_path/scality where state_path is a config option that specifies
6925# the top-level directory for maintaining nova's state or Any string
6926# containing the full directory path.
6927# (string value)
6928#scality_sofs_mount_point=$state_path/scality
6929
6930#
6931# Directory where the SMBFS shares are mounted on the compute node.
6932# (string value)
6933#smbfs_mount_point_base=$state_path/mnt
6934
6935#
6936# Mount options passed to the SMBFS client.
6937#
6938# Provide SMBFS options as a single string containing all parameters.
6939# See mount.cifs man page for details. Note that the libvirt-qemu ``uid``
6940# and ``gid`` must be specified.
6941# (string value)
6942#smbfs_mount_options =
6943
6944#
6945# libvirt's transport method for remote file operations.
6946#
6947# Because libvirt cannot use RPC to copy files over network to/from other
6948# compute nodes, other method must be used for:
6949#
6950# * creating directory on remote host
6951# * creating file on remote host
6952# * removing file from remote host
6953# * copying file to remote host
6954# (string value)
6955# Allowed values: ssh, rsync
6956#remote_filesystem_transport=ssh
6957
6958#
6959# Directory where the Virtuozzo Storage clusters are mounted on the compute
6960# node.
6961#
6962# This option defines non-standard mountpoint for Vzstorage cluster.
6963#
6964# Related options:
6965#
6966# * vzstorage_mount_* group of parameters
6967# (string value)
6968#vzstorage_mount_point_base=$state_path/mnt
6969
6970#
6971# Mount owner user name.
6972#
6973# This option defines the owner user of Vzstorage cluster mountpoint.
6974#
6975# Related options:
6976#
6977# * vzstorage_mount_* group of parameters
6978# (string value)
6979#vzstorage_mount_user=stack
6980
6981#
6982# Mount owner group name.
6983#
6984# This option defines the owner group of Vzstorage cluster mountpoint.
6985#
6986# Related options:
6987#
6988# * vzstorage_mount_* group of parameters
6989# (string value)
6990#vzstorage_mount_group=qemu
6991
6992#
6993# Mount access mode.
6994#
6995# This option defines the access bits of Vzstorage cluster mountpoint,
6996# in the format similar to one of chmod(1) utility, like this: 0770.
6997# It consists of one to four digits ranging from 0 to 7, with missing
6998# lead digits assumed to be 0's.
6999#
7000# Related options:
7001#
7002# * vzstorage_mount_* group of parameters
7003# (string value)
7004#vzstorage_mount_perms=0770
7005
7006#
7007# Path to vzstorage client log.
7008#
7009# This option defines the log of cluster operations,
7010# it should include "%(cluster_name)s" template to separate
7011# logs from multiple shares.
7012#
7013# Related options:
7014#
7015# * vzstorage_mount_opts may include more detailed logging options.
7016# (string value)
7017#vzstorage_log_path=/var/log/pstorage/%(cluster_name)s/nova.log.gz
7018
7019#
7020# Path to the SSD cache file.
7021#
7022# You can attach an SSD drive to a client and configure the drive to store
7023# a local cache of frequently accessed data. By having a local cache on a
7024# client's SSD drive, you can increase the overall cluster performance by
7025# up to 10 and more times.
7026# WARNING! There is a lot of SSD models which are not server grade and
7027# may loose arbitrary set of data changes on power loss.
7028# Such SSDs should not be used in Vstorage and are dangerous as may lead
7029# to data corruptions and inconsistencies. Please consult with the manual
7030# on which SSD models are known to be safe or verify it using
7031# vstorage-hwflush-check(1) utility.
7032#
7033# This option defines the path which should include "%(cluster_name)s"
7034# template to separate caches from multiple shares.
7035#
7036# Related options:
7037#
7038# * vzstorage_mount_opts may include more detailed cache options.
7039# (string value)
7040#vzstorage_cache_path=<None>
7041
7042#
7043# Extra mount options for pstorage-mount
7044#
7045# For full description of them, see
7046# https://static.openvz.org/vz-man/man1/pstorage-mount.1.gz.html
7047# Format is a python string representation of arguments list, like:
7048# "['-v', '-R', '500']"
7049# Shouldn't include -c, -l, -C, -u, -g and -m as those have
7050# explicit vzstorage_* options.
7051#
7052# Related options:
7053#
7054# * All other vzstorage_* options
7055# (list value)
7056#vzstorage_mount_opts =
7057
7058
7059[matchmaker_redis]
7060
7061#
7062# From oslo.messaging
7063#
7064
7065# DEPRECATED: Host to locate redis. (string value)
7066# This option is deprecated for removal.
7067# Its value may be silently ignored in the future.
7068# Reason: Replaced by [DEFAULT]/transport_url
7069#host=127.0.0.1
7070
7071# DEPRECATED: Use this port to connect to redis host. (port value)
7072# Minimum value: 0
7073# Maximum value: 65535
7074# This option is deprecated for removal.
7075# Its value may be silently ignored in the future.
7076# Reason: Replaced by [DEFAULT]/transport_url
7077#port=6379
7078
7079# DEPRECATED: Password for Redis server (optional). (string value)
7080# This option is deprecated for removal.
7081# Its value may be silently ignored in the future.
7082# Reason: Replaced by [DEFAULT]/transport_url
7083#password =
7084
7085# DEPRECATED: List of Redis Sentinel hosts (fault tolerance mode), e.g.,
7086# [host:port, host1:port ... ] (list value)
7087# This option is deprecated for removal.
7088# Its value may be silently ignored in the future.
7089# Reason: Replaced by [DEFAULT]/transport_url
7090#sentinel_hosts =
7091
7092# Redis replica set name. (string value)
7093#sentinel_group_name=oslo-messaging-zeromq
7094
7095# Time in ms to wait between connection attempts. (integer value)
7096#wait_timeout=2000
7097
7098# Time in ms to wait before the transaction is killed. (integer value)
7099#check_timeout=20000
7100
7101# Timeout in ms on blocking socket operations. (integer value)
7102#socket_timeout=10000
7103
7104
7105[metrics]
7106#
7107# Configuration options for metrics
7108#
7109# Options under this group allow to adjust how values assigned to metrics are
7110# calculated.
7111
7112#
7113# From nova.conf
7114#
7115
7116#
7117# When using metrics to weight the suitability of a host, you can use this
7118# option
7119# to change how the calculated weight influences the weight assigned to a host
7120# as
7121# follows:
7122#
7123# * >1.0: increases the effect of the metric on overall weight
7124# * 1.0: no change to the calculated weight
7125# * >0.0,<1.0: reduces the effect of the metric on overall weight
7126# * 0.0: the metric value is ignored, and the value of the
7127# 'weight_of_unavailable' option is returned instead
7128# * >-1.0,<0.0: the effect is reduced and reversed
7129# * -1.0: the effect is reversed
7130# * <-1.0: the effect is increased proportionally and reversed
7131#
7132# This option is only used by the FilterScheduler and its subclasses; if you use
7133# a different scheduler, this option has no effect.
7134#
7135# Possible values:
7136#
7137# * An integer or float value, where the value corresponds to the multipler
7138# ratio for this weigher.
7139#
7140# Related options:
7141#
7142# * weight_of_unavailable
7143# (floating point value)
7144#weight_multiplier=1.0
7145
7146#
7147# This setting specifies the metrics to be weighed and the relative ratios for
7148# each metric. This should be a single string value, consisting of a series of
7149# one or more 'name=ratio' pairs, separated by commas, where 'name' is the name
7150# of the metric to be weighed, and 'ratio' is the relative weight for that
7151# metric.
7152#
7153# Note that if the ratio is set to 0, the metric value is ignored, and instead
7154# the weight will be set to the value of the 'weight_of_unavailable' option.
7155#
7156# As an example, let's consider the case where this option is set to:
7157#
7158# ``name1=1.0, name2=-1.3``
7159#
7160# The final weight will be:
7161#
7162# ``(name1.value * 1.0) + (name2.value * -1.3)``
7163#
7164# This option is only used by the FilterScheduler and its subclasses; if you use
7165# a different scheduler, this option has no effect.
7166#
7167# Possible values:
7168#
7169# * A list of zero or more key/value pairs separated by commas, where the key is
7170# a string representing the name of a metric and the value is a numeric weight
7171# for that metric. If any value is set to 0, the value is ignored and the
7172# weight will be set to the value of the 'weight_of_unavailable' option.
7173#
7174# Related options:
7175#
7176# * weight_of_unavailable
7177# (list value)
7178#weight_setting =
7179
7180#
7181# This setting determines how any unavailable metrics are treated. If this
7182# option
7183# is set to True, any hosts for which a metric is unavailable will raise an
7184# exception, so it is recommended to also use the MetricFilter to filter out
7185# those hosts before weighing.
7186#
7187# This option is only used by the FilterScheduler and its subclasses; if you use
7188# a different scheduler, this option has no effect.
7189#
7190# Possible values:
7191#
7192# * True or False, where False ensures any metric being unavailable for a host
7193# will set the host weight to 'weight_of_unavailable'.
7194#
7195# Related options:
7196#
7197# * weight_of_unavailable
7198# (boolean value)
7199#required=true
7200
7201#
7202# When any of the following conditions are met, this value will be used in place
7203# of any actual metric value:
7204#
7205# * One of the metrics named in 'weight_setting' is not available for a host,
7206# and the value of 'required' is False
7207# * The ratio specified for a metric in 'weight_setting' is 0
7208# * The 'weight_multiplier' option is set to 0
7209#
7210# This option is only used by the FilterScheduler and its subclasses; if you use
7211# a different scheduler, this option has no effect.
7212#
7213# Possible values:
7214#
7215# * An integer or float value, where the value corresponds to the multipler
7216# ratio for this weigher.
7217#
7218# Related options:
7219#
7220# * weight_setting
7221# * required
7222# * weight_multiplier
7223# (floating point value)
7224#weight_of_unavailable=-10000.0
7225
7226
7227[mks]
7228#
7229# Nova compute node uses WebMKS, a desktop sharing protocol to provide
7230# instance console access to VM's created by VMware hypervisors.
7231#
7232# Related options:
7233# Following options must be set to provide console access.
7234# * mksproxy_base_url
7235# * enabled
7236
7237#
7238# From nova.conf
7239#
7240
7241#
7242# Location of MKS web console proxy
7243#
7244# The URL in the response points to a WebMKS proxy which
7245# starts proxying between client and corresponding vCenter
7246# server where instance runs. In order to use the web based
7247# console access, WebMKS proxy should be installed and configured
7248#
7249# Possible values:
7250#
7251# * Must be a valid URL of the form:``http://host:port/``
7252# (string value)
7253#mksproxy_base_url=http://127.0.0.1:6090/
7254
7255#
7256# Enables graphical console access for virtual machines.
7257# (boolean value)
7258#enabled=false
7259
7260
7261[neutron]
7262#
7263# Configuration options for neutron (network connectivity as a service).
7264
7265#
7266# From nova.conf
7267#
7268username={{ compute.network.user }}
7269password={{ compute.network.password }}
7270project_name={{ compute.identity.tenant }}
7271auth_url = {{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.host }}:{{ compute.identity.port }}/v3
7272url={{ compute.network.get('protocol', 'http') }}://{{ compute.network.host }}:{{ compute.network.port }}
7273{%- if compute.network.get('protocol', 'http') == 'https' %}
7274cafile={{ compute.network.get('cacert_file', compute.cacert_file) }}
7275{%- endif %}
7276region_name= {{ compute.network.region }}
7277extension_sync_interval={{ compute.network.get('extension_sync_interval', '600') }}
7278auth_type = v3password
7279project_domain_name = Default
7280user_domain_name = Default
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007281#
7282# This option specifies the URL for connecting to Neutron.
7283#
7284# Possible values:
7285#
7286# * Any valid URL that points to the Neutron API service is appropriate here.
7287# This typically matches the URL returned for the 'network' service type
7288# from the Keystone service catalog.
7289# (uri value)
7290#url=http://127.0.0.1:9696
7291
7292#
7293# Region name for connecting to Neutron in admin context.
7294#
7295# This option is used in multi-region setups. If there are two Neutron
7296# servers running in two regions in two different machines, then two
7297# services need to be created in Keystone with two different regions and
7298# associate corresponding endpoints to those services. When requests are made
7299# to Keystone, the Keystone service uses the region_name to determine the
7300# region the request is coming from.
7301# (string value)
7302#region_name=RegionOne
7303
7304#
7305# Specifies the name of an integration bridge interface used by OpenvSwitch.
7306# This option is used only if Neutron does not specify the OVS bridge name.
7307#
7308# Possible values:
7309#
7310# * Any string representing OVS bridge name.
7311# (string value)
7312#ovs_bridge=br-int
7313
7314#
7315# Integer value representing the number of seconds to wait before querying
7316# Neutron for extensions. After this number of seconds the next time Nova
7317# needs to create a resource in Neutron it will requery Neutron for the
7318# extensions that it has loaded. Setting value to 0 will refresh the
7319# extensions with no wait.
7320# (integer value)
7321# Minimum value: 0
7322#extension_sync_interval=600
7323
7324#
7325# When set to True, this option indicates that Neutron will be used to proxy
7326# metadata requests and resolve instance ids. Otherwise, the instance ID must be
7327# passed to the metadata request in the 'X-Instance-ID' header.
7328#
7329# Related options:
7330#
7331# * metadata_proxy_shared_secret
7332# (boolean value)
7333#service_metadata_proxy=false
7334
7335#
7336# This option holds the shared secret string used to validate proxy requests to
7337# Neutron metadata requests. In order to be used, the
7338# 'X-Metadata-Provider-Signature' header must be supplied in the request.
7339#
7340# Related options:
7341#
7342# * service_metadata_proxy
7343# (string value)
7344#metadata_proxy_shared_secret =
7345
7346# PEM encoded Certificate Authority to use when verifying HTTPs connections.
7347# (string value)
7348#cafile=<None>
7349
7350# PEM encoded client certificate cert file (string value)
7351#certfile=<None>
7352
7353# PEM encoded client certificate key file (string value)
7354#keyfile=<None>
7355
7356# Verify HTTPS connections. (boolean value)
7357#insecure=false
7358
7359# Timeout value for http requests (integer value)
7360#timeout=<None>
7361timeout = 300
7362
7363# Authentication type to load (string value)
7364# Deprecated group/name - [neutron]/auth_plugin
7365#auth_type=<None>
7366
7367# Config Section from which to load plugin specific options (string value)
7368#auth_section=<None>
7369
7370# Authentication URL (string value)
7371#auth_url=<None>
7372
7373# Domain ID to scope to (string value)
7374#domain_id=<None>
7375
7376# Domain name to scope to (string value)
7377#domain_name=<None>
7378
7379# Project ID to scope to (string value)
7380#project_id=<None>
7381
7382# Project name to scope to (string value)
7383#project_name=<None>
7384
7385# Domain ID containing project (string value)
7386#project_domain_id=<None>
7387
7388# Domain name containing project (string value)
7389#project_domain_name=<None>
7390
7391# Trust ID (string value)
7392#trust_id=<None>
7393
7394# Optional domain ID to use with v3 and v2 parameters. It will be used for both
7395# the user and project domain in v3 and ignored in v2 authentication. (string
7396# value)
7397#default_domain_id=<None>
7398
7399# Optional domain name to use with v3 API and v2 parameters. It will be used for
7400# both the user and project domain in v3 and ignored in v2 authentication.
7401# (string value)
7402#default_domain_name=<None>
7403
7404# User ID (string value)
7405#user_id=<None>
7406
7407# Username (string value)
7408# Deprecated group/name - [neutron]/user-name
7409#username=<None>
7410
7411# User's domain id (string value)
7412#user_domain_id=<None>
7413
7414# User's domain name (string value)
7415#user_domain_name=<None>
7416
7417# User's password (string value)
7418#password=<None>
7419
7420# Tenant ID (string value)
7421#tenant_id=<None>
7422
7423# Tenant Name (string value)
7424#tenant_name=<None>
7425
7426
7427[notifications]
7428#
7429# Most of the actions in Nova which manipulate the system state generate
7430# notifications which are posted to the messaging component (e.g. RabbitMQ) and
7431# can be consumed by any service outside the Openstack. More technical details
7432# at http://docs.openstack.org/developer/nova/notifications.html
7433
7434#
7435# From nova.conf
7436#
7437
7438#
7439# If set, send compute.instance.update notifications on instance state
7440# changes.
7441#
7442# Please refer to https://wiki.openstack.org/wiki/SystemUsageData for
7443# additional information on notifications.
7444#
7445# Possible values:
7446#
7447# * None - no notifications
7448# * "vm_state" - notifications on VM state changes
7449# * "vm_and_task_state" - notifications on VM and task state changes
7450# (string value)
7451# Allowed values: <None>, vm_state, vm_and_task_state
7452# Deprecated group/name - [DEFAULT]/notify_on_state_change
7453#notify_on_state_change=<None>
7454{%- if compute.get('notification', {}).notify_on is defined %}
7455{%- for key, value in compute.notification.notify_on.iteritems() %}
7456notify_on_{{ key }} = {{ value }}
7457{%- endfor %}
7458{%- elif pillar.ceilometer is defined %}
7459notify_on_state_change = vm_and_task_state
7460{%- endif %}
7461
7462#
7463# If enabled, send api.fault notifications on caught exceptions in the
7464# API service.
7465# (boolean value)
7466# Deprecated group/name - [DEFAULT]/notify_api_faults
7467#notify_on_api_faults=false
7468notify_on_api_faults=false
7469
7470# Default notification level for outgoing notifications. (string value)
7471# Allowed values: DEBUG, INFO, WARN, ERROR, CRITICAL
7472# Deprecated group/name - [DEFAULT]/default_notification_level
7473#default_level=INFO
7474
7475#
7476# Default publisher_id for outgoing notifications. If you consider routing
7477# notifications using different publisher, change this value accordingly.
7478#
7479# Possible values:
7480#
7481# * Defaults to the IPv4 address of this host, but it can be any valid
7482# oslo.messaging publisher_id
7483#
7484# Related options:
7485#
7486# * my_ip - IP address of this host
7487# (string value)
7488# Deprecated group/name - [DEFAULT]/default_publisher_id
7489#default_publisher_id=$my_ip
7490
7491#
7492# Specifies which notification format shall be used by nova.
7493#
7494# The default value is fine for most deployments and rarely needs to be changed.
7495# This value can be set to 'versioned' once the infrastructure moves closer to
7496# consuming the newer format of notifications. After this occurs, this option
7497# will be removed (possibly in the "P" release).
7498#
7499# Possible values:
7500# * unversioned: Only the legacy unversioned notifications are emitted.
7501# * versioned: Only the new versioned notifications are emitted.
7502# * both: Both the legacy unversioned and the new versioned notifications are
7503# emitted. (Default)
7504#
7505# The list of versioned notifications is visible in
7506# http://docs.openstack.org/developer/nova/notifications.html
7507# (string value)
7508# Allowed values: unversioned, versioned, both
7509# Deprecated group/name - [DEFAULT]/notification_format
7510#notification_format=both
7511
7512
7513[osapi_v21]
7514
7515#
7516# From nova.conf
7517#
7518
7519# DEPRECATED:
7520# This option is a list of all of the v2.1 API extensions to never load.
7521#
7522# Possible values:
7523#
7524# * A list of strings, each being the alias of an extension that you do not
7525# wish to load.
7526#
7527# Related options:
7528#
7529# * enabled
7530# * extensions_whitelist
7531# (list value)
7532# This option is deprecated for removal since 12.0.0.
7533# Its value may be silently ignored in the future.
7534# Reason:
7535# API extensions are now part of the standard API. API extensions should be
7536# disabled using policy, rather than via these configuration options.
7537#extensions_blacklist =
7538
7539# DEPRECATED:
7540# This is a list of extensions. If it is empty, then *all* extensions except
7541# those specified in the extensions_blacklist option will be loaded. If it is
7542# not
7543# empty, then only those extensions in this list will be loaded, provided that
7544# they are also not in the extensions_blacklist option.
7545#
7546# Possible values:
7547#
7548# * A list of strings, each being the alias of an extension that you wish to
7549# load, or an empty list, which indicates that all extensions are to be run.
7550#
7551# Related options:
7552#
7553# * enabled
7554# * extensions_blacklist
7555# (list value)
7556# This option is deprecated for removal since 12.0.0.
7557# Its value may be silently ignored in the future.
7558# Reason:
7559# API extensions are now part of the standard API. API extensions should be
7560# disabled using policy, rather than via these configuration options.
7561#extensions_whitelist =
7562
7563# DEPRECATED:
7564# This option is a string representing a regular expression (regex) that matches
7565# the project_id as contained in URLs. If not set, it will match normal UUIDs
7566# created by keystone.
7567#
7568# Possible values:
7569#
7570# * A string representing any legal regular expression
7571# (string value)
7572# This option is deprecated for removal since 13.0.0.
7573# Its value may be silently ignored in the future.
7574# Reason:
7575# Recent versions of nova constrain project IDs to hexadecimal characters and
7576# dashes. If your installation uses IDs outside of this range, you should use
7577# this option to provide your own regex and give you time to migrate offending
7578# projects to valid IDs before the next release.
7579#project_id_regex=<None>
7580
7581
7582[oslo_concurrency]
7583
7584#
7585# From oslo.concurrency
7586#
7587
7588# Enables or disables inter-process locks. (boolean value)
7589# Deprecated group/name - [DEFAULT]/disable_process_locking
7590#disable_process_locking=false
7591
7592# Directory to use for lock files. For security, the specified directory should
7593# only be writable by the user running the processes that need locking. Defaults
7594# to environment variable OSLO_LOCK_PATH. If OSLO_LOCK_PATH is not set in the
7595# environment, use the Python tempfile.gettempdir function to find a suitable
7596# location. If external locks are used, a lock path must be set. (string value)
7597# Deprecated group/name - [DEFAULT]/lock_path
7598lock_path = /var/lib/nova/tmp
7599
7600
7601[oslo_messaging_amqp]
7602
7603#
7604# From oslo.messaging
7605#
7606
7607# Name for the AMQP container. must be globally unique. Defaults to a generated
7608# UUID (string value)
7609# Deprecated group/name - [amqp1]/container_name
7610#container_name=<None>
7611
7612# Timeout for inactive connections (in seconds) (integer value)
7613# Deprecated group/name - [amqp1]/idle_timeout
7614#idle_timeout=0
7615
7616# Debug: dump AMQP frames to stdout (boolean value)
7617# Deprecated group/name - [amqp1]/trace
7618#trace=false
7619
7620# CA certificate PEM file used to verify the server's certificate (string value)
7621# Deprecated group/name - [amqp1]/ssl_ca_file
7622#ssl_ca_file =
7623
7624# Self-identifying certificate PEM file for client authentication (string value)
7625# Deprecated group/name - [amqp1]/ssl_cert_file
7626#ssl_cert_file =
7627
7628# Private key PEM file used to sign ssl_cert_file certificate (optional) (string
7629# value)
7630# Deprecated group/name - [amqp1]/ssl_key_file
7631#ssl_key_file =
7632
7633# Password for decrypting ssl_key_file (if encrypted) (string value)
7634# Deprecated group/name - [amqp1]/ssl_key_password
7635#ssl_key_password=<None>
7636
7637# DEPRECATED: Accept clients using either SSL or plain TCP (boolean value)
7638# Deprecated group/name - [amqp1]/allow_insecure_clients
7639# This option is deprecated for removal.
7640# Its value may be silently ignored in the future.
7641# Reason: Not applicable - not a SSL server
7642#allow_insecure_clients=false
7643
7644# Space separated list of acceptable SASL mechanisms (string value)
7645# Deprecated group/name - [amqp1]/sasl_mechanisms
7646#sasl_mechanisms =
7647
7648# Path to directory that contains the SASL configuration (string value)
7649# Deprecated group/name - [amqp1]/sasl_config_dir
7650#sasl_config_dir =
7651
7652# Name of configuration file (without .conf suffix) (string value)
7653# Deprecated group/name - [amqp1]/sasl_config_name
7654#sasl_config_name =
7655
7656# User name for message broker authentication (string value)
7657# Deprecated group/name - [amqp1]/username
7658#username =
7659
7660# Password for message broker authentication (string value)
7661# Deprecated group/name - [amqp1]/password
7662#password =
7663
7664# Seconds to pause before attempting to re-connect. (integer value)
7665# Minimum value: 1
7666#connection_retry_interval=1
7667
7668# Increase the connection_retry_interval by this many seconds after each
7669# unsuccessful failover attempt. (integer value)
7670# Minimum value: 0
7671#connection_retry_backoff=2
7672
7673# Maximum limit for connection_retry_interval + connection_retry_backoff
7674# (integer value)
7675# Minimum value: 1
7676#connection_retry_interval_max=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007677{%- if compute.message_queue.connection_retry_interval_max is defined %}
7678connection_retry_interval_max = {{ compute.message_queue.connection_retry_interval_max }}
7679{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007680
7681# Time to pause between re-connecting an AMQP 1.0 link that failed due to a
7682# recoverable error. (integer value)
7683# Minimum value: 1
7684#link_retry_delay=10
7685
7686# The maximum number of attempts to re-send a reply message which failed due to
7687# a recoverable error. (integer value)
7688# Minimum value: -1
7689#default_reply_retry=0
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007690{%- if compute.message_queue.default_reply_retry is defined %}
7691default_reply_retry = {{ compute.message_queue.default_reply_retry }}
7692{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007693
7694# The deadline for an rpc reply message delivery. (integer value)
7695# Minimum value: 5
7696#default_reply_timeout=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007697{%- if compute.message_queue.default_reply_timeout is defined %}
7698default_reply_timeout = {{ compute.message_queue.default_reply_timeout }}
7699{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007700
7701# The deadline for an rpc cast or call message delivery. Only used when caller
7702# does not provide a timeout expiry. (integer value)
7703# Minimum value: 5
7704#default_send_timeout=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007705{%- if compute.message_queue.default_send_timeout is defined %}
7706default_send_timeout = {{ compute.message_queue.default_send_timeout }}
7707{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007708
7709# The deadline for a sent notification message delivery. Only used when caller
7710# does not provide a timeout expiry. (integer value)
7711# Minimum value: 5
7712#default_notify_timeout=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007713{%- if compute.message_queue.default_notify_timeout is defined %}
7714default_notify_timeout = {{ compute.message_queue.default_notify_timeout }}
7715{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007716
7717# The duration to schedule a purge of idle sender links. Detach link after
7718# expiry. (integer value)
7719# Minimum value: 1
7720#default_sender_link_timeout=600
7721
7722# Indicates the addressing mode used by the driver.
7723# Permitted values:
7724# 'legacy' - use legacy non-routable addressing
7725# 'routable' - use routable addresses
7726# 'dynamic' - use legacy addresses if the message bus does not support routing
7727# otherwise use routable addressing (string value)
7728#addressing_mode=dynamic
7729
7730# address prefix used when sending to a specific server (string value)
7731# Deprecated group/name - [amqp1]/server_request_prefix
7732#server_request_prefix=exclusive
7733
7734# address prefix used when broadcasting to all servers (string value)
7735# Deprecated group/name - [amqp1]/broadcast_prefix
7736#broadcast_prefix=broadcast
7737
7738# address prefix when sending to any server in group (string value)
7739# Deprecated group/name - [amqp1]/group_request_prefix
7740#group_request_prefix=unicast
7741
7742# Address prefix for all generated RPC addresses (string value)
7743#rpc_address_prefix=openstack.org/om/rpc
7744
7745# Address prefix for all generated Notification addresses (string value)
7746#notify_address_prefix=openstack.org/om/notify
7747
7748# Appended to the address prefix when sending a fanout message. Used by the
7749# message bus to identify fanout messages. (string value)
7750#multicast_address=multicast
7751
7752# Appended to the address prefix when sending to a particular RPC/Notification
7753# server. Used by the message bus to identify messages sent to a single
7754# destination. (string value)
7755#unicast_address=unicast
7756
7757# Appended to the address prefix when sending to a group of consumers. Used by
7758# the message bus to identify messages that should be delivered in a round-robin
7759# fashion across consumers. (string value)
7760#anycast_address=anycast
7761
7762# Exchange name used in notification addresses.
7763# Exchange name resolution precedence:
7764# Target.exchange if set
7765# else default_notification_exchange if set
7766# else control_exchange if set
7767# else 'notify' (string value)
7768#default_notification_exchange=<None>
7769
7770# Exchange name used in RPC addresses.
7771# Exchange name resolution precedence:
7772# Target.exchange if set
7773# else default_rpc_exchange if set
7774# else control_exchange if set
7775# else 'rpc' (string value)
7776#default_rpc_exchange=<None>
7777
7778# Window size for incoming RPC Reply messages. (integer value)
7779# Minimum value: 1
7780#reply_link_credit=200
7781
7782# Window size for incoming RPC Request messages (integer value)
7783# Minimum value: 1
7784#rpc_server_credit=100
7785
7786# Window size for incoming Notification messages (integer value)
7787# Minimum value: 1
7788#notify_server_credit=100
7789
7790# Send messages of this type pre-settled.
7791# Pre-settled messages will not receive acknowledgement
7792# from the peer. Note well: pre-settled messages may be
7793# silently discarded if the delivery fails.
7794# Permitted values:
7795# 'rpc-call' - send RPC Calls pre-settled
7796# 'rpc-reply'- send RPC Replies pre-settled
7797# 'rpc-cast' - Send RPC Casts pre-settled
7798# 'notify' - Send Notifications pre-settled
7799# (multi valued)
7800#pre_settled=rpc-cast
7801#pre_settled=rpc-reply
7802
7803
7804[oslo_messaging_kafka]
7805
7806#
7807# From oslo.messaging
7808#
7809
7810# DEPRECATED: Default Kafka broker Host (string value)
7811# This option is deprecated for removal.
7812# Its value may be silently ignored in the future.
7813# Reason: Replaced by [DEFAULT]/transport_url
7814#kafka_default_host=localhost
7815
7816# DEPRECATED: Default Kafka broker Port (port value)
7817# Minimum value: 0
7818# Maximum value: 65535
7819# This option is deprecated for removal.
7820# Its value may be silently ignored in the future.
7821# Reason: Replaced by [DEFAULT]/transport_url
7822#kafka_default_port=9092
7823
7824# Max fetch bytes of Kafka consumer (integer value)
7825#kafka_max_fetch_bytes=1048576
7826
7827# Default timeout(s) for Kafka consumers (integer value)
7828#kafka_consumer_timeout=1.0
7829
7830# Pool Size for Kafka Consumers (integer value)
7831#pool_size=10
7832
7833# The pool size limit for connections expiration policy (integer value)
7834#conn_pool_min_size=2
7835
7836# The time-to-live in sec of idle connections in the pool (integer value)
7837#conn_pool_ttl=1200
7838
7839# Group id for Kafka consumer. Consumers in one group will coordinate message
7840# consumption (string value)
7841#consumer_group=oslo_messaging_consumer
7842
7843# Upper bound on the delay for KafkaProducer batching in seconds (floating point
7844# value)
7845#producer_batch_timeout=0.0
7846
7847# Size of batch for the producer async send (integer value)
7848#producer_batch_size=16384
7849
7850
7851[oslo_messaging_notifications]
7852
7853#
7854# From oslo.messaging
7855#
7856{%- if compute.notification is mapping %}
7857driver = {{ compute.notification.get('driver', 'messagingv2') }}
7858{%- if compute.notification.topics is defined %}
7859topics = {{ compute.notification.topics }}
7860{%- endif %}
7861{%- elif compute.notification %}
7862driver = messagingv2
7863{%- endif %}
7864
7865# The Drivers(s) to handle sending notifications. Possible values are messaging,
7866# messagingv2, routing, log, test, noop (multi valued)
7867# Deprecated group/name - [DEFAULT]/notification_driver
7868#driver =
7869
7870# A URL representing the messaging driver to use for notifications. If not set,
7871# we fall back to the same configuration used for RPC. (string value)
7872# Deprecated group/name - [DEFAULT]/notification_transport_url
7873#transport_url=<None>
7874
7875# AMQP topic used for OpenStack notifications. (list value)
7876# Deprecated group/name - [rpc_notifier2]/topics
7877# Deprecated group/name - [DEFAULT]/notification_topics
7878#topics=notifications
7879
7880
7881[oslo_messaging_rabbit]
7882
7883#
7884# From oslo.messaging
7885#
7886
7887# Use durable queues in AMQP. (boolean value)
7888# Deprecated group/name - [DEFAULT]/amqp_durable_queues
7889# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
7890#amqp_durable_queues=false
7891
7892# Auto-delete queues in AMQP. (boolean value)
7893# Deprecated group/name - [DEFAULT]/amqp_auto_delete
7894#amqp_auto_delete=false
7895
7896# SSL version to use (valid only if SSL enabled). Valid values are TLSv1 and
7897# SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be available on some
7898# distributions. (string value)
7899# Deprecated group/name - [DEFAULT]/kombu_ssl_version
7900#kombu_ssl_version =
7901
7902# SSL key file (valid only if SSL enabled). (string value)
7903# Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile
7904#kombu_ssl_keyfile =
7905
7906# SSL cert file (valid only if SSL enabled). (string value)
7907# Deprecated group/name - [DEFAULT]/kombu_ssl_certfile
7908#kombu_ssl_certfile =
7909
7910# SSL certification authority file (valid only if SSL enabled). (string value)
7911# Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs
7912#kombu_ssl_ca_certs =
7913
7914# How long to wait before reconnecting in response to an AMQP consumer cancel
7915# notification. (floating point value)
7916# Deprecated group/name - [DEFAULT]/kombu_reconnect_delay
7917#kombu_reconnect_delay=1.0
7918
7919# EXPERIMENTAL: Possible values are: gzip, bz2. If not set compression will not
7920# be used. This option may not be available in future versions. (string value)
7921#kombu_compression=<None>
7922
7923# How long to wait a missing client before abandoning to send it its replies.
7924# This value should not be longer than rpc_response_timeout. (integer value)
7925# Deprecated group/name - [oslo_messaging_rabbit]/kombu_reconnect_timeout
7926#kombu_missing_consumer_retry_timeout=60
7927
7928# Determines how the next RabbitMQ node is chosen in case the one we are
7929# currently connected to becomes unavailable. Takes effect only if more than one
7930# RabbitMQ node is provided in config. (string value)
7931# Allowed values: round-robin, shuffle
7932#kombu_failover_strategy=round-robin
7933
7934# DEPRECATED: The RabbitMQ broker address where a single node is used. (string
7935# value)
7936# Deprecated group/name - [DEFAULT]/rabbit_host
7937# This option is deprecated for removal.
7938# Its value may be silently ignored in the future.
7939# Reason: Replaced by [DEFAULT]/transport_url
7940#rabbit_host=localhost
7941
7942# DEPRECATED: The RabbitMQ broker port where a single node is used. (port value)
7943# Minimum value: 0
7944# Maximum value: 65535
7945# Deprecated group/name - [DEFAULT]/rabbit_port
7946# This option is deprecated for removal.
7947# Its value may be silently ignored in the future.
7948# Reason: Replaced by [DEFAULT]/transport_url
7949#rabbit_port=5672
7950
7951# DEPRECATED: RabbitMQ HA cluster host:port pairs. (list value)
7952# Deprecated group/name - [DEFAULT]/rabbit_hosts
7953# This option is deprecated for removal.
7954# Its value may be silently ignored in the future.
7955# Reason: Replaced by [DEFAULT]/transport_url
7956#rabbit_hosts=$rabbit_host:$rabbit_port
7957
7958# Connect over SSL for RabbitMQ. (boolean value)
7959# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
7960#rabbit_use_ssl=false
7961
7962# DEPRECATED: The RabbitMQ userid. (string value)
7963# Deprecated group/name - [DEFAULT]/rabbit_userid
7964# This option is deprecated for removal.
7965# Its value may be silently ignored in the future.
7966# Reason: Replaced by [DEFAULT]/transport_url
7967#rabbit_userid=guest
7968
7969# DEPRECATED: The RabbitMQ password. (string value)
7970# Deprecated group/name - [DEFAULT]/rabbit_password
7971# This option is deprecated for removal.
7972# Its value may be silently ignored in the future.
7973# Reason: Replaced by [DEFAULT]/transport_url
7974#rabbit_password=guest
7975
7976# The RabbitMQ login method. (string value)
7977# Allowed values: PLAIN, AMQPLAIN, RABBIT-CR-DEMO
7978# Deprecated group/name - [DEFAULT]/rabbit_login_method
7979#rabbit_login_method=AMQPLAIN
7980
7981# DEPRECATED: The RabbitMQ virtual host. (string value)
7982# Deprecated group/name - [DEFAULT]/rabbit_virtual_host
7983# This option is deprecated for removal.
7984# Its value may be silently ignored in the future.
7985# Reason: Replaced by [DEFAULT]/transport_url
7986#rabbit_virtual_host=/
7987
7988# How frequently to retry connecting with RabbitMQ. (integer value)
7989#rabbit_retry_interval=1
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007990{%- if compute.message_queue.rabbit_retry_interval is defined %}
7991rabbit_retry_interval = {{ compute.message_queue.rabbit_retry_interval }}
7992{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01007993
7994# How long to backoff for between retries when connecting to RabbitMQ. (integer
7995# value)
7996# Deprecated group/name - [DEFAULT]/rabbit_retry_backoff
7997#rabbit_retry_backoff=2
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02007998{%- if compute.message_queue.rabbit_retry_backoff is defined %}
7999rabbit_retry_backoff = {{ compute.message_queue.rabbit_retry_backoff }}
8000{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008001
8002# Maximum interval of RabbitMQ connection retries. Default is 30 seconds.
8003# (integer value)
8004#rabbit_interval_max=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008005{%- if compute.message_queue.rabbit_interval_max is defined %}
8006rabbit_interval_max = {{ compute.message_queue.rabbit_interval_max }}
8007{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008008
8009# DEPRECATED: Maximum number of RabbitMQ connection retries. Default is 0
8010# (infinite retry count). (integer value)
8011# Deprecated group/name - [DEFAULT]/rabbit_max_retries
8012# This option is deprecated for removal.
8013# Its value may be silently ignored in the future.
8014#rabbit_max_retries=0
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008015{%- if compute.message_queue.rabbit_max_retries is defined %}
8016rabbit_max_retries = {{ compute.message_queue.rabbit_max_retries }}
8017{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008018
8019# Try to use HA queues in RabbitMQ (x-ha-policy: all). If you change this
8020# option, you must wipe the RabbitMQ database. In RabbitMQ 3.0, queue mirroring
8021# is no longer controlled by the x-ha-policy argument when declaring a queue. If
8022# you just want to make sure that all queues (except those with auto-generated
8023# names) are mirrored across all nodes, run: "rabbitmqctl set_policy HA
8024# '^(?!amq\.).*' '{"ha-mode": "all"}' " (boolean value)
8025# Deprecated group/name - [DEFAULT]/rabbit_ha_queues
8026#rabbit_ha_queues=false
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008027{%- if compute.message_queue.rabbit_ha_queues is defined %}
8028rabbit_ha_queues = {{ compute.message_queue.rabbit_ha_queues }}
8029{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008030
8031# Positive integer representing duration in seconds for queue TTL (x-expires).
8032# Queues which are unused for the duration of the TTL are automatically deleted.
8033# The parameter affects only reply and fanout queues. (integer value)
8034# Minimum value: 1
8035#rabbit_transient_queues_ttl=1800
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008036{%- if compute.message_queue.rabbit_transient_queues_ttl is defined %}
8037rabbit_transient_queues_ttl = {{ compute.message_queue.rabbit_transient_queues_ttl }}
8038{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008039
8040# Specifies the number of messages to prefetch. Setting to zero allows unlimited
8041# messages. (integer value)
8042#rabbit_qos_prefetch_count=0
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008043{%- if compute.message_queue.rabbit_qos_prefetch_count is defined %}
8044rabbit_qos_prefetch_count = {{ compute.message_queue.rabbit_qos_prefetch_count }}
8045{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008046
8047# Number of seconds after which the Rabbit broker is considered down if
8048# heartbeat's keep-alive fails (0 disable the heartbeat). EXPERIMENTAL (integer
8049# value)
8050#heartbeat_timeout_threshold=60
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008051{%- if compute.message_queue.heartbeat_timeout_threshold is defined %}
8052heartbeat_timeout_threshold = {{ compute.message_queue.heartbeat_timeout_threshold }}
8053{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008054
8055# How often times during the heartbeat_timeout_threshold we check the heartbeat.
8056# (integer value)
8057#heartbeat_rate=2
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008058{%- if compute.message_queue.heartbeat_rate is defined %}
8059heartbeat_rate = {{ compute.message_queue.heartbeat_rate }}
8060{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008061
8062# Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake (boolean value)
8063# Deprecated group/name - [DEFAULT]/fake_rabbit
8064#fake_rabbit=false
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008065{%- if compute.message_queue.fake_rabbit is defined %}
8066fake_rabbit = {{ compute.message_queue.fake_rabbit }}
8067{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008068
8069# Maximum number of channels to allow (integer value)
8070#channel_max=<None>
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008071{%- if compute.message_queue.channel_max is defined %}
8072channel_max = {{ compute.message_queue.channel_max }}
8073{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008074
8075# The maximum byte size for an AMQP frame (integer value)
8076#frame_max=<None>
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008077{%- if compute.message_queue.frame_max is defined %}
8078frame_max = {{ compute.message_queue.frame_max }}
8079{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008080
8081# How often to send heartbeats for consumer's connections (integer value)
8082#heartbeat_interval=3
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008083{%- if compute.message_queue.heartbeat_interval is defined %}
8084heartbeat_interval = {{ compute.message_queue.heartbeat_interval }}
8085{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008086
8087# Enable SSL (boolean value)
8088#ssl=<None>
8089
8090# Arguments passed to ssl.wrap_socket (dict value)
8091#ssl_options=<None>
8092
8093# Set socket timeout in seconds for connection's socket (floating point value)
8094#socket_timeout=0.25
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008095{%- if compute.message_queue.socket_timeout is defined %}
8096socket_timeout = {{ compute.message_queue.socket_timeout }}
8097{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008098
8099# Set TCP_USER_TIMEOUT in seconds for connection's socket (floating point value)
8100#tcp_user_timeout=0.25
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008101{%- if compute.message_queue.tcp_user_timeout is defined %}
8102tcp_user_timeout = {{ compute.message_queue.tcp_user_timeout }}
8103{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008104
8105# Set delay for reconnection to some host which has connection error (floating
8106# point value)
8107#host_connection_reconnect_delay=0.25
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008108{%- if compute.message_queue.host_connection_reconnect_delay is defined %}
8109host_connection_reconnect_delay = {{ compute.message_queue.host_connection_reconnect_delay }}
8110{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008111
8112# Connection factory implementation (string value)
8113# Allowed values: new, single, read_write
8114#connection_factory=single
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008115{%- if compute.message_queue.connection_factory is defined %}
8116connection_factory = {{ compute.message_queue.connection_factory }}
8117{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008118
8119# Maximum number of connections to keep queued. (integer value)
8120#pool_max_size=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008121{%- if compute.message_queue.pool_max_size is defined %}
8122pool_max_size = {{ compute.message_queue.pool_max_size }}
8123{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008124
8125# Maximum number of connections to create above `pool_max_size`. (integer value)
8126#pool_max_overflow=0
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008127{%- if compute.message_queue.pool_max_overflow is defined %}
8128pool_max_overflow = {{ compute.message_queue.pool_max_overflow }}
8129{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008130
8131# Default number of seconds to wait for a connections to available (integer
8132# value)
8133#pool_timeout=30
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008134{%- if compute.message_queue.pool_timeout is defined %}
8135pool_timeout = {{ compute.message_queue.pool_timeout }}
8136{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008137
8138# Lifetime of a connection (since creation) in seconds or None for no recycling.
8139# Expired connections are closed on acquire. (integer value)
8140#pool_recycle=600
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008141{%- if compute.message_queue.pool_recycle is defined %}
8142pool_recycle = {{ compute.message_queue.pool_recycle }}
8143{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008144
8145# Threshold at which inactive (since release) connections are considered stale
8146# in seconds or None for no staleness. Stale connections are closed on acquire.
8147# (integer value)
8148#pool_stale=60
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008149{%- if compute.message_queue.pool_stale is defined %}
8150pool_stale = {{ compute.message_queue.pool_stale }}
8151{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008152
8153# Default serialization mechanism for serializing/deserializing
8154# outgoing/incoming messages (string value)
8155# Allowed values: json, msgpack
8156#default_serializer_type=json
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008157{%- if compute.message_queue.default_serializer_type is defined %}
8158default_serializer_type = {{ compute.message_queue.default_serializer_type }}
8159{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008160
8161# Persist notification messages. (boolean value)
8162#notification_persistence=false
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008163{%- if compute.message_queue.notification_persistence is defined %}
8164notification_persistence = {{ compute.message_queue.notification_persistence }}
8165{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008166
8167# Exchange name for sending notifications (string value)
8168#default_notification_exchange=${control_exchange}_notification
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008169{%- if compute.message_queue.default_notification_exchange is defined %}
8170default_notification_exchange = {{ compute.message_queue.default_notification_exchange }}
8171{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008172
8173# Max number of not acknowledged message which RabbitMQ can send to notification
8174# listener. (integer value)
8175#notification_listener_prefetch_count=100
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008176{%- if compute.message_queue.notification_listener_prefetch_count is defined %}
8177notification_listener_prefetch_count = {{ compute.message_queue.notification_listener_prefetch_count }}
8178{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008179
8180# Reconnecting retry count in case of connectivity problem during sending
8181# notification, -1 means infinite retry. (integer value)
8182#default_notification_retry_attempts=-1
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008183{%- if compute.message_queue.default_notification_retry_attempts is defined %}
8184default_notification_retry_attempts = {{ compute.message_queue.default_notification_retry_attempts }}
8185{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008186
8187# Reconnecting retry delay in case of connectivity problem during sending
8188# notification message (floating point value)
8189#notification_retry_delay=0.25
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008190{%- if compute.message_queue.notification_retry_delay is defined %}
8191notification_retry_delay = {{ compute.message_queue.notification_retry_delay }}
8192{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008193
8194# Time to live for rpc queues without consumers in seconds. (integer value)
8195#rpc_queue_expiration=60
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008196{%- if compute.message_queue.rpc_queue_expiration is defined %}
8197rpc_queue_expiration = {{ compute.message_queue.rpc_queue_expiration }}
8198{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008199
8200# Exchange name for sending RPC messages (string value)
8201#default_rpc_exchange=${control_exchange}_rpc
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008202{%- if compute.message_queue.default_rpc_exchange is defined %}
8203default_rpc_exchange = {{ compute.message_queue.default_rpc_exchange }}
8204{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008205
8206# Exchange name for receiving RPC replies (string value)
8207#rpc_reply_exchange=${control_exchange}_rpc_reply
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008208{%- if compute.message_queue.rpc_reply_exchange is defined %}
8209rpc_reply_exchange = {{ compute.message_queue.rpc_reply_exchange }}
8210{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008211
8212# Max number of not acknowledged message which RabbitMQ can send to rpc
8213# listener. (integer value)
8214#rpc_listener_prefetch_count=100
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008215{%- if compute.message_queue.rpc_listener_prefetch_count is defined %}
8216rpc_listener_prefetch_count = {{ compute.message_queue.rpc_listener_prefetch_count }}
8217{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008218
8219# Max number of not acknowledged message which RabbitMQ can send to rpc reply
8220# listener. (integer value)
8221#rpc_reply_listener_prefetch_count=100
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008222{%- if compute.message_queue.rpc_reply_listener_prefetch_count is defined %}
8223rpc_reply_listener_prefetch_count = {{ compute.message_queue.rpc_reply_listener_prefetch_count }}
8224{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008225
8226# Reconnecting retry count in case of connectivity problem during sending reply.
8227# -1 means infinite retry during rpc_timeout (integer value)
8228#rpc_reply_retry_attempts=-1
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008229{%- if compute.message_queue.rpc_reply_retry_attempts is defined %}
8230rpc_reply_retry_attempts = {{ compute.message_queue.rpc_reply_retry_attempts }}
8231{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008232
8233# Reconnecting retry delay in case of connectivity problem during sending reply.
8234# (floating point value)
8235#rpc_reply_retry_delay=0.25
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008236{%- if compute.message_queue.rpc_reply_retry_delay is defined %}
8237rpc_reply_retry_delay = {{ compute.message_queue.rpc_reply_retry_delay }}
8238{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008239
8240# Reconnecting retry count in case of connectivity problem during sending RPC
8241# message, -1 means infinite retry. If actual retry attempts in not 0 the rpc
8242# request could be processed more than one time (integer value)
8243#default_rpc_retry_attempts=-1
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008244{%- if compute.message_queue.default_rpc_retry_attempts is defined %}
8245default_rpc_retry_attempts = {{ compute.message_queue.default_rpc_retry_attempts }}
8246{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008247
8248# Reconnecting retry delay in case of connectivity problem during sending RPC
8249# message (floating point value)
8250#rpc_retry_delay=0.25
Vasyl Saienko1cb9ba92019-01-10 12:56:51 +02008251{%- if compute.message_queue.rpc_retry_delay is defined %}
8252rpc_retry_delay = {{ compute.message_queue.rpc_retry_delay }}
8253{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008254
8255{# rabbitmq ssl configuration #}
8256{%- if compute.message_queue.get('ssl',{}).get('enabled', False) %}
8257rabbit_use_ssl=true
8258
Oleksandr Bryndzii0e417932018-09-14 14:39:11 +00008259 {%- if compute.message_queue.ssl.version is defined %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008260kombu_ssl_version = {{ compute.message_queue.ssl.version }}
Oleksandr Bryndzii0e417932018-09-14 14:39:11 +00008261 {%- elif salt['grains.get']('pythonversion') > [2,7,8] %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008262kombu_ssl_version = TLSv1_2
Oleksandr Bryndzii0e417932018-09-14 14:39:11 +00008263 {%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008264
Oleksandr Bryndzii0e417932018-09-14 14:39:11 +00008265 {%- if compute.message_queue.get('x509',{}).get('enabled', False) %}
8266kombu_ssl_ca_certs = {{ compute.message_queue.x509.ca_file}}
8267
8268kombu_ssl_keyfile = {{ compute.message_queue.x509.key_file}}
8269
8270kombu_ssl_certfile = {{ compute.message_queue.x509.cert_file}}
8271
8272 {%- else %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008273kombu_ssl_ca_certs = {{ compute.message_queue.ssl.get('cacert_file', compute.cacert_file) }}
Oleksandr Bryndzii0e417932018-09-14 14:39:11 +00008274 {%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008275{%- endif %}
8276
8277
8278[oslo_messaging_zmq]
8279
8280#
8281# From oslo.messaging
8282#
8283
8284# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
8285# The "host" option should point or resolve to this address. (string value)
8286# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_address
8287#rpc_zmq_bind_address=*
8288
8289# MatchMaker driver. (string value)
8290# Allowed values: redis, sentinel, dummy
8291# Deprecated group/name - [DEFAULT]/rpc_zmq_matchmaker
8292#rpc_zmq_matchmaker=redis
8293
8294# Number of ZeroMQ contexts, defaults to 1. (integer value)
8295# Deprecated group/name - [DEFAULT]/rpc_zmq_contexts
8296#rpc_zmq_contexts=1
8297
8298# Maximum number of ingress messages to locally buffer per topic. Default is
8299# unlimited. (integer value)
8300# Deprecated group/name - [DEFAULT]/rpc_zmq_topic_backlog
8301#rpc_zmq_topic_backlog=<None>
8302
8303# Directory for holding IPC sockets. (string value)
8304# Deprecated group/name - [DEFAULT]/rpc_zmq_ipc_dir
8305#rpc_zmq_ipc_dir=/var/run/openstack
8306
8307# Name of this node. Must be a valid hostname, FQDN, or IP address. Must match
8308# "host" option, if running Nova. (string value)
8309# Deprecated group/name - [DEFAULT]/rpc_zmq_host
8310#rpc_zmq_host=localhost
8311
8312# Number of seconds to wait before all pending messages will be sent after
8313# closing a socket. The default value of -1 specifies an infinite linger period.
8314# The value of 0 specifies no linger period. Pending messages shall be discarded
8315# immediately when the socket is closed. Positive values specify an upper bound
8316# for the linger period. (integer value)
8317# Deprecated group/name - [DEFAULT]/rpc_cast_timeout
8318#zmq_linger=-1
8319
8320# The default number of seconds that poll should wait. Poll raises timeout
8321# exception when timeout expired. (integer value)
8322# Deprecated group/name - [DEFAULT]/rpc_poll_timeout
8323#rpc_poll_timeout=1
8324
8325# Expiration timeout in seconds of a name service record about existing target (
8326# < 0 means no timeout). (integer value)
8327# Deprecated group/name - [DEFAULT]/zmq_target_expire
8328#zmq_target_expire=300
8329
8330# Update period in seconds of a name service record about existing target.
8331# (integer value)
8332# Deprecated group/name - [DEFAULT]/zmq_target_update
8333#zmq_target_update=180
8334
8335# Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy. (boolean
8336# value)
8337# Deprecated group/name - [DEFAULT]/use_pub_sub
8338#use_pub_sub=false
8339
8340# Use ROUTER remote proxy. (boolean value)
8341# Deprecated group/name - [DEFAULT]/use_router_proxy
8342#use_router_proxy=false
8343
8344# This option makes direct connections dynamic or static. It makes sense only
8345# with use_router_proxy=False which means to use direct connections for direct
8346# message types (ignored otherwise). (boolean value)
8347#use_dynamic_connections=false
8348
8349# How many additional connections to a host will be made for failover reasons.
8350# This option is actual only in dynamic connections mode. (integer value)
8351#zmq_failover_connections=2
8352
8353# Minimal port number for random ports range. (port value)
8354# Minimum value: 0
8355# Maximum value: 65535
8356# Deprecated group/name - [DEFAULT]/rpc_zmq_min_port
8357#rpc_zmq_min_port=49153
8358
8359# Maximal port number for random ports range. (integer value)
8360# Minimum value: 1
8361# Maximum value: 65536
8362# Deprecated group/name - [DEFAULT]/rpc_zmq_max_port
8363#rpc_zmq_max_port=65536
8364
8365# Number of retries to find free port number before fail with ZMQBindError.
8366# (integer value)
8367# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_port_retries
8368#rpc_zmq_bind_port_retries=100
8369
8370# Default serialization mechanism for serializing/deserializing
8371# outgoing/incoming messages (string value)
8372# Allowed values: json, msgpack
8373# Deprecated group/name - [DEFAULT]/rpc_zmq_serialization
8374#rpc_zmq_serialization=json
8375
8376# This option configures round-robin mode in zmq socket. True means not keeping
8377# a queue when server side disconnects. False means to keep queue and messages
8378# even if server is disconnected, when the server appears we send all
8379# accumulated messages to it. (boolean value)
8380#zmq_immediate=true
8381
8382# Enable/disable TCP keepalive (KA) mechanism. The default value of -1 (or any
8383# other negative value) means to skip any overrides and leave it to OS default;
8384# 0 and 1 (or any other positive value) mean to disable and enable the option
8385# respectively. (integer value)
8386#zmq_tcp_keepalive=-1
8387
8388# The duration between two keepalive transmissions in idle condition. The unit
8389# is platform dependent, for example, seconds in Linux, milliseconds in Windows
8390# etc. The default value of -1 (or any other negative value and 0) means to skip
8391# any overrides and leave it to OS default. (integer value)
8392#zmq_tcp_keepalive_idle=-1
8393
8394# The number of retransmissions to be carried out before declaring that remote
8395# end is not available. The default value of -1 (or any other negative value and
8396# 0) means to skip any overrides and leave it to OS default. (integer value)
8397#zmq_tcp_keepalive_cnt=-1
8398
8399# The duration between two successive keepalive retransmissions, if
8400# acknowledgement to the previous keepalive transmission is not received. The
8401# unit is platform dependent, for example, seconds in Linux, milliseconds in
8402# Windows etc. The default value of -1 (or any other negative value and 0) means
8403# to skip any overrides and leave it to OS default. (integer value)
8404#zmq_tcp_keepalive_intvl=-1
8405
8406# Maximum number of (green) threads to work concurrently. (integer value)
8407#rpc_thread_pool_size=100
8408
8409# Expiration timeout in seconds of a sent/received message after which it is not
8410# tracked anymore by a client/server. (integer value)
8411#rpc_message_ttl=300
8412
8413# Wait for message acknowledgements from receivers. This mechanism works only
8414# via proxy without PUB/SUB. (boolean value)
8415#rpc_use_acks=false
8416
8417# Number of seconds to wait for an ack from a cast/call. After each retry
8418# attempt this timeout is multiplied by some specified multiplier. (integer
8419# value)
8420#rpc_ack_timeout_base=15
8421
8422# Number to multiply base ack timeout by after each retry attempt. (integer
8423# value)
8424#rpc_ack_timeout_multiplier=2
8425
8426# Default number of message sending attempts in case of any problems occurred:
8427# positive value N means at most N retries, 0 means no retries, None or -1 (or
8428# any other negative values) mean to retry forever. This option is used only if
8429# acknowledgments are enabled. (integer value)
8430#rpc_retry_attempts=3
8431
8432# List of publisher hosts SubConsumer can subscribe on. This option has higher
8433# priority then the default publishers list taken from the matchmaker. (list
8434# value)
8435#subscribe_on =
8436
8437
8438[oslo_middleware]
8439
8440#
8441# From oslo.middleware
8442#
8443
8444# The maximum body size for each request, in bytes. (integer value)
8445# Deprecated group/name - [DEFAULT]/osapi_max_request_body_size
8446# Deprecated group/name - [DEFAULT]/max_request_body_size
8447#max_request_body_size=114688
8448
8449# DEPRECATED: The HTTP Header that will be used to determine what the original
8450# request protocol scheme was, even if it was hidden by a SSL termination proxy.
8451# (string value)
8452# This option is deprecated for removal.
8453# Its value may be silently ignored in the future.
8454#secure_proxy_ssl_header=X-Forwarded-Proto
8455
8456# Whether the application is behind a proxy or not. This determines if the
8457# middleware should parse the headers or not. (boolean value)
8458#enable_proxy_headers_parsing=false
8459
8460
8461[oslo_policy]
8462
8463#
8464# From oslo.policy
8465#
8466
8467# The file that defines policies. (string value)
8468# Deprecated group/name - [DEFAULT]/policy_file
8469#policy_file=policy.json
8470
8471# Default rule. Enforced when a requested rule is not found. (string value)
8472# Deprecated group/name - [DEFAULT]/policy_default_rule
8473#policy_default_rule=default
8474
8475# Directories where policy configuration files are stored. They can be relative
8476# to any directory in the search path defined by the config_dir option, or
8477# absolute paths. The file defined by policy_file must exist for these
8478# directories to be searched. Missing or empty directories are ignored. (multi
8479# valued)
8480# Deprecated group/name - [DEFAULT]/policy_dirs
8481#policy_dirs=policy.d
8482
8483
8484[pci]
8485
8486#
8487# From nova.conf
8488#
8489
8490#
8491# An alias for a PCI passthrough device requirement.
8492#
8493# This allows users to specify the alias in the extra_spec for a flavor, without
8494# needing to repeat all the PCI property requirements.
8495#
8496# Possible Values:
8497#
8498# * A list of JSON values which describe the aliases. For example:
8499#
8500# alias = {
8501# "name": "QuickAssist",
8502# "product_id": "0443",
8503# "vendor_id": "8086",
8504# "device_type": "type-PCI"
8505# }
8506#
8507# defines an alias for the Intel QuickAssist card. (multi valued). Valid key
8508# values are :
8509#
8510# * "name": Name of the PCI alias.
8511# * "product_id": Product ID of the device in hexadecimal.
8512# * "vendor_id": Vendor ID of the device in hexadecimal.
8513# * "device_type": Type of PCI device. Valid values are: "type-PCI",
8514# "type-PF" and "type-VF".
8515# (multi valued)
8516# Deprecated group/name - [DEFAULT]/pci_alias
8517#alias =
Oleh Hryhorovf5093b82018-10-17 11:16:08 +00008518{%- if compute.get('pci', {}).get('alias', false) %}
8519 {%- for alias_name, alias in compute.pci.alias.iteritems() %}
8520alias = {{ alias | json }}
8521 {%- endfor %}
8522{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008523
8524#
8525# White list of PCI devices available to VMs.
8526#
8527# Possible values:
8528#
8529# * A JSON dictionary which describe a whitelisted PCI device. It should take
8530# the following format:
8531#
8532# ["vendor_id": "<id>",] ["product_id": "<id>",]
8533# ["address": "[[[[<domain>]:]<bus>]:][<slot>][.[<function>]]" |
8534# "devname": "<name>",]
8535# {"<tag>": "<tag_value>",}
8536#
8537# Where '[' indicates zero or one occurrences, '{' indicates zero or multiple
8538# occurrences, and '|' mutually exclusive options. Note that any missing
8539# fields are automatically wildcarded.
8540#
8541# Valid key values are :
8542#
8543# * "vendor_id": Vendor ID of the device in hexadecimal.
8544# * "product_id": Product ID of the device in hexadecimal.
8545# * "address": PCI address of the device.
8546# * "devname": Device name of the device (for e.g. interface name). Not all
8547# PCI devices have a name.
8548# * "<tag>": Additional <tag> and <tag_value> used for matching PCI devices.
8549# Supported <tag>: "physical_network".
8550#
8551# The address key supports traditional glob style and regular expression
8552# syntax. Valid examples are:
8553#
8554# passthrough_whitelist = {"devname":"eth0",
8555# "physical_network":"physnet"}
8556# passthrough_whitelist = {"address":"*:0a:00.*"}
8557# passthrough_whitelist = {"address":":0a:00.",
8558# "physical_network":"physnet1"}
8559# passthrough_whitelist = {"vendor_id":"1137",
8560# "product_id":"0071"}
8561# passthrough_whitelist = {"vendor_id":"1137",
8562# "product_id":"0071",
8563# "address": "0000:0a:00.1",
8564# "physical_network":"physnet1"}
8565# passthrough_whitelist = {"address":{"domain": ".*",
8566# "bus": "02", "slot": "01",
8567# "function": "[2-7]"},
8568# "physical_network":"physnet1"}
8569# passthrough_whitelist = {"address":{"domain": ".*",
8570# "bus": "02", "slot": "0[1-2]",
8571# "function": ".*"},
8572# "physical_network":"physnet1"}
8573#
8574# The following are invalid, as they specify mutually exclusive options:
8575#
8576# passthrough_whitelist = {"devname":"eth0",
8577# "physical_network":"physnet",
8578# "address":"*:0a:00.*"}
8579#
8580# * A JSON list of JSON dictionaries corresponding to the above format. For
8581# example:
8582#
8583# passthrough_whitelist = [{"product_id":"0001", "vendor_id":"8086"},
8584# {"product_id":"0002", "vendor_id":"8086"}]
8585# (multi valued)
8586# Deprecated group/name - [DEFAULT]/pci_passthrough_whitelist
8587#passthrough_whitelist =
8588{%- if compute.get('sriov', false) %}
Oleh Hryhorovf5093b82018-10-17 11:16:08 +00008589 {%- for nic_name, sriov in compute.sriov.iteritems() %}
8590passthrough_whitelist = {{ sriov | json }}
8591 {%- endfor %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01008592{%- endif %}
8593
8594[placement]
8595
8596#
8597# From nova.conf
8598#
8599auth_type = password
8600user_domain_id = {{ compute.identity.get('domain', 'default') }}
8601project_domain_id = {{ compute.identity.get('domain', 'default') }}
8602project_name = {{ compute.identity.tenant }}
8603username = {{ compute.identity.user }}
8604password = {{ compute.identity.password }}
8605{%- if compute.identity.get('protocol', 'http') == 'https' %}
8606cafile={{ compute.identity.get('cacert_file', compute.cacert_file) }}
8607{%- endif %}
8608auth_url={{ compute.identity.get('protocol', 'http') }}://{{ compute.identity.host }}:35357/v3
8609os_interface = internal
8610
8611#
8612# Region name of this node. This is used when picking the URL in the service
8613# catalog.
8614#
8615# Possible values:
8616#
8617# * Any string representing region name
8618# (string value)
8619#os_region_name = openstack
8620os_region_name = {{ compute.identity.region }}
8621
8622#
8623# Endpoint interface for this node. This is used when picking the URL in the
8624# service catalog.
8625# (string value)
8626#os_interface=<None>
8627
8628# PEM encoded Certificate Authority to use when verifying HTTPs connections.
8629# (string value)
8630#cafile=<None>
8631
8632# PEM encoded client certificate cert file (string value)
8633#certfile=<None>
8634
8635# PEM encoded client certificate key file (string value)
8636#keyfile=<None>
8637
8638# Verify HTTPS connections. (boolean value)
8639#insecure=false
8640
8641# Timeout value for http requests (integer value)
8642#timeout=<None>
8643
8644# Authentication type to load (string value)
8645# Deprecated group/name - [placement]/auth_plugin
8646#auth_type=<None>
8647
8648# Config Section from which to load plugin specific options (string value)
8649#auth_section=<None>
8650
8651# Authentication URL (string value)
8652#auth_url=<None>
8653
8654# Domain ID to scope to (string value)
8655#domain_id=<None>
8656
8657# Domain name to scope to (string value)
8658#domain_name=<None>
8659
8660# Project ID to scope to (string value)
8661#project_id=<None>
8662
8663# Project name to scope to (string value)
8664#project_name=<None>
8665
8666# Domain ID containing project (string value)
8667#project_domain_id=<None>
8668
8669# Domain name containing project (string value)
8670#project_domain_name=<None>
8671
8672# Trust ID (string value)
8673#trust_id=<None>
8674
8675# Optional domain ID to use with v3 and v2 parameters. It will be used for both
8676# the user and project domain in v3 and ignored in v2 authentication. (string
8677# value)
8678#default_domain_id=<None>
8679
8680# Optional domain name to use with v3 API and v2 parameters. It will be used for
8681# both the user and project domain in v3 and ignored in v2 authentication.
8682# (string value)
8683#default_domain_name=<None>
8684
8685# User ID (string value)
8686#user_id=<None>
8687
8688# Username (string value)
8689# Deprecated group/name - [placement]/user-name
8690#username=<None>
8691
8692# User's domain id (string value)
8693#user_domain_id=<None>
8694
8695# User's domain name (string value)
8696#user_domain_name=<None>
8697
8698# User's password (string value)
8699#password=<None>
8700
8701# Tenant ID (string value)
8702#tenant_id=<None>
8703
8704# Tenant Name (string value)
8705#tenant_name=<None>
8706
8707
8708[quota]
8709#
8710# Quota options allow to manage quotas in openstack deployment.
8711
8712#
8713# From nova.conf
8714#
8715
8716#
8717# The number of instances allowed per project.
8718#
8719# Possible Values
8720#
8721# * A positive integer or 0.
8722# * -1 to disable the quota.
8723# (integer value)
8724# Minimum value: -1
8725# Deprecated group/name - [DEFAULT]/quota_instances
8726#instances=10
8727
8728#
8729# The number of instance cores or vCPUs allowed per project.
8730#
8731# Possible values:
8732#
8733# * A positive integer or 0.
8734# * -1 to disable the quota.
8735# (integer value)
8736# Minimum value: -1
8737# Deprecated group/name - [DEFAULT]/quota_cores
8738#cores=20
8739
8740#
8741# The number of megabytes of instance RAM allowed per project.
8742#
8743# Possible values:
8744#
8745# * A positive integer or 0.
8746# * -1 to disable the quota.
8747# (integer value)
8748# Minimum value: -1
8749# Deprecated group/name - [DEFAULT]/quota_ram
8750#ram=51200
8751
8752# DEPRECATED:
8753# The number of floating IPs allowed per project.
8754#
8755# Floating IPs are not allocated to instances by default. Users need to select
8756# them from the pool configured by the OpenStack administrator to attach to
8757# their
8758# instances.
8759#
8760# Possible values:
8761#
8762# * A positive integer or 0.
8763# * -1 to disable the quota.
8764# (integer value)
8765# Minimum value: -1
8766# Deprecated group/name - [DEFAULT]/quota_floating_ips
8767# This option is deprecated for removal since 15.0.0.
8768# Its value may be silently ignored in the future.
8769# Reason:
8770# nova-network is deprecated, as are any related configuration options.
8771#floating_ips=10
8772
8773# DEPRECATED:
8774# The number of fixed IPs allowed per project.
8775#
8776# Unlike floating IPs, fixed IPs are allocated dynamically by the network
8777# component when instances boot up. This quota value should be at least the
8778# number of instances allowed
8779#
8780# Possible values:
8781#
8782# * A positive integer or 0.
8783# * -1 to disable the quota.
8784# (integer value)
8785# Minimum value: -1
8786# Deprecated group/name - [DEFAULT]/quota_fixed_ips
8787# This option is deprecated for removal since 15.0.0.
8788# Its value may be silently ignored in the future.
8789# Reason:
8790# nova-network is deprecated, as are any related configuration options.
8791#fixed_ips=-1
8792
8793#
8794# The number of metadata items allowed per instance.
8795#
8796# Users can associate metadata with an instance during instance creation. This
8797# metadata takes the form of key-value pairs.
8798#
8799# Possible values:
8800#
8801# * A positive integer or 0.
8802# * -1 to disable the quota.
8803# (integer value)
8804# Minimum value: -1
8805# Deprecated group/name - [DEFAULT]/quota_metadata_items
8806#metadata_items=128
8807
8808#
8809# The number of injected files allowed.
8810#
8811# File injection allows users to customize the personality of an instance by
8812# injecting data into it upon boot. Only text file injection is permitted:
8813# binary
8814# or ZIP files are not accepted. During file injection, any existing files that
8815# match specified files are renamed to include ``.bak`` extension appended with
8816# a
8817# timestamp.
8818#
8819# Possible values:
8820#
8821# * A positive integer or 0.
8822# * -1 to disable the quota.
8823# (integer value)
8824# Minimum value: -1
8825# Deprecated group/name - [DEFAULT]/quota_injected_files
8826#injected_files=5
8827
8828#
8829# The number of bytes allowed per injected file.
8830#
8831# Possible values:
8832#
8833# * A positive integer or 0.
8834# * -1 to disable the quota.
8835# (integer value)
8836# Minimum value: -1
8837# Deprecated group/name - [DEFAULT]/quota_injected_file_content_bytes
8838#injected_file_content_bytes=10240
8839
8840#
8841# The maximum allowed injected file path length.
8842#
8843# Possible values:
8844#
8845# * A positive integer or 0.
8846# * -1 to disable the quota.
8847# (integer value)
8848# Minimum value: -1
8849# Deprecated group/name - [DEFAULT]/quota_injected_file_path_length
8850#injected_file_path_length=255
8851
8852# DEPRECATED:
8853# The number of security groups per project.
8854#
8855# Possible values:
8856#
8857# * A positive integer or 0.
8858# * -1 to disable the quota.
8859# (integer value)
8860# Minimum value: -1
8861# Deprecated group/name - [DEFAULT]/quota_security_groups
8862# This option is deprecated for removal since 15.0.0.
8863# Its value may be silently ignored in the future.
8864# Reason:
8865# nova-network is deprecated, as are any related configuration options.
8866#security_groups=10
8867
8868# DEPRECATED:
8869# The number of security rules per security group.
8870#
8871# The associated rules in each security group control the traffic to instances
8872# in
8873# the group.
8874#
8875# Possible values:
8876#
8877# * A positive integer or 0.
8878# * -1 to disable the quota.
8879# (integer value)
8880# Minimum value: -1
8881# Deprecated group/name - [DEFAULT]/quota_security_group_rules
8882# This option is deprecated for removal since 15.0.0.
8883# Its value may be silently ignored in the future.
8884# Reason:
8885# nova-network is deprecated, as are any related configuration options.
8886#security_group_rules=20
8887
8888#
8889# The maximum number of key pairs allowed per user.
8890#
8891# Users can create at least one key pair for each project and use the key pair
8892# for multiple instances that belong to that project.
8893#
8894# Possible values:
8895#
8896# * A positive integer or 0.
8897# * -1 to disable the quota.
8898# (integer value)
8899# Minimum value: -1
8900# Deprecated group/name - [DEFAULT]/quota_key_pairs
8901#key_pairs=100
8902
8903#
8904# The maxiumum number of server groups per project.
8905#
8906# Server groups are used to control the affinity and anti-affinity scheduling
8907# policy for a group of servers or instances. Reducing the quota will not affect
8908# any existing group, but new servers will not be allowed into groups that have
8909# become over quota.
8910#
8911# Possible values:
8912#
8913# * A positive integer or 0.
8914# * -1 to disable the quota.
8915# (integer value)
8916# Minimum value: -1
8917# Deprecated group/name - [DEFAULT]/quota_server_groups
8918#server_groups=10
8919
8920#
8921# The maximum number of servers per server group.
8922#
8923# Possible values:
8924#
8925# * A positive integer or 0.
8926# * -1 to disable the quota.
8927# (integer value)
8928# Minimum value: -1
8929# Deprecated group/name - [DEFAULT]/quota_server_group_members
8930#server_group_members=10
8931
8932#
8933# The number of seconds until a reservation expires.
8934#
8935# This quota represents the time period for invalidating quota reservations.
8936# (integer value)
8937# Deprecated group/name - [DEFAULT]/reservation_expire
8938#reservation_expire=86400
8939
8940#
8941# The count of reservations until usage is refreshed.
8942#
8943# This defaults to 0 (off) to avoid additional load but it is useful to turn on
8944# to help keep quota usage up-to-date and reduce the impact of out of sync usage
8945# issues.
8946# (integer value)
8947# Minimum value: 0
8948# Deprecated group/name - [DEFAULT]/until_refresh
8949#until_refresh=0
8950
8951#
8952# The number of seconds between subsequent usage refreshes.
8953#
8954# This defaults to 0 (off) to avoid additional load but it is useful to turn on
8955# to help keep quota usage up-to-date and reduce the impact of out of sync usage
8956# issues. Note that quotas are not updated on a periodic task, they will update
8957# on a new reservation if max_age has passed since the last reservation.
8958# (integer value)
8959# Minimum value: 0
8960# Deprecated group/name - [DEFAULT]/max_age
8961#max_age=0
8962
8963# DEPRECATED:
8964# The quota enforcer driver.
8965#
8966# Provides abstraction for quota checks. Users can configure a specific
8967# driver to use for quota checks.
8968#
8969# Possible values:
8970#
8971# * nova.quota.DbQuotaDriver (default) or any string representing fully
8972# qualified class name.
8973# (string value)
8974# Deprecated group/name - [DEFAULT]/quota_driver
8975# This option is deprecated for removal since 14.0.0.
8976# Its value may be silently ignored in the future.
8977#driver=nova.quota.DbQuotaDriver
8978
8979
8980[rdp]
8981#
8982# Options under this group enable and configure Remote Desktop Protocol (
8983# RDP) related features.
8984#
8985# This group is only relevant to Hyper-V users.
8986
8987#
8988# From nova.conf
8989#
8990
8991#
8992# Enable Remote Desktop Protocol (RDP) related features.
8993#
8994# Hyper-V, unlike the majority of the hypervisors employed on Nova compute
8995# nodes, uses RDP instead of VNC and SPICE as a desktop sharing protocol to
8996# provide instance console access. This option enables RDP for graphical
8997# console access for virtual machines created by Hyper-V.
8998#
8999# **Note:** RDP should only be enabled on compute nodes that support the Hyper-V
9000# virtualization platform.
9001#
9002# Related options:
9003#
9004# * ``compute_driver``: Must be hyperv.
9005#
9006# (boolean value)
9007#enabled=false
9008
9009#
9010# The URL an end user would use to connect to the RDP HTML5 console proxy.
9011# The console proxy service is called with this token-embedded URL and
9012# establishes the connection to the proper instance.
9013#
9014# An RDP HTML5 console proxy service will need to be configured to listen on the
9015# address configured here. Typically the console proxy service would be run on a
9016# controller node. The localhost address used as default would only work in a
9017# single node environment i.e. devstack.
9018#
9019# An RDP HTML5 proxy allows a user to access via the web the text or graphical
9020# console of any Windows server or workstation using RDP. RDP HTML5 console
9021# proxy services include FreeRDP, wsgate.
9022# See https://github.com/FreeRDP/FreeRDP-WebConnect
9023#
9024# Possible values:
9025#
9026# * <scheme>://<ip-address>:<port-number>/
9027#
9028# The scheme must be identical to the scheme configured for the RDP HTML5
9029# console proxy service.
9030#
9031# The IP address must be identical to the address on which the RDP HTML5
9032# console proxy service is listening.
9033#
9034# The port must be identical to the port on which the RDP HTML5 console proxy
9035# service is listening.
9036#
9037# Related options:
9038#
9039# * ``rdp.enabled``: Must be set to ``True`` for ``html5_proxy_base_url`` to be
9040# effective.
9041# (string value)
9042#html5_proxy_base_url=http://127.0.0.1:6083/
9043
9044
9045[remote_debug]
9046
9047#
9048# From nova.conf
9049#
9050
9051#
9052# Debug host (IP or name) to connect to. This command line parameter is used
9053# when
9054# you want to connect to a nova service via a debugger running on a different
9055# host.
9056#
9057# Note that using the remote debug option changes how Nova uses the eventlet
9058# library to support async IO. This could result in failures that do not occur
9059# under normal operation. Use at your own risk.
9060#
9061# Possible Values:
9062#
9063# * IP address of a remote host as a command line parameter
9064# to a nova service. For Example:
9065#
9066# /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf
9067# --remote_debug-host <IP address where the debugger is running>
9068# (string value)
9069#host=<None>
9070
9071#
9072# Debug port to connect to. This command line parameter allows you to specify
9073# the port you want to use to connect to a nova service via a debugger running
9074# on different host.
9075#
9076# Note that using the remote debug option changes how Nova uses the eventlet
9077# library to support async IO. This could result in failures that do not occur
9078# under normal operation. Use at your own risk.
9079#
9080# Possible Values:
9081#
9082# * Port number you want to use as a command line parameter
9083# to a nova service. For Example:
9084#
9085# /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf
9086# --remote_debug-host <IP address where the debugger is running>
9087# --remote_debug-port <port> it's listening on>.
9088# (port value)
9089# Minimum value: 0
9090# Maximum value: 65535
9091#port=<None>
9092
9093
9094[scheduler]
9095
9096#
9097# From nova.conf
9098#
9099
9100#
9101# The scheduler host manager to use.
9102#
9103# The host manager manages the in-memory picture of the hosts that the scheduler
9104# uses. The options values are chosen from the entry points under the namespace
9105# 'nova.scheduler.host_manager' in 'setup.cfg'.
9106# (string value)
9107# Allowed values: host_manager, ironic_host_manager
9108# Deprecated group/name - [DEFAULT]/scheduler_host_manager
9109#host_manager=host_manager
9110
9111#
9112# The class of the driver used by the scheduler.
9113#
9114# The options are chosen from the entry points under the namespace
9115# 'nova.scheduler.driver' in 'setup.cfg'.
9116#
9117# Possible values:
9118#
9119# * A string, where the string corresponds to the class name of a scheduler
9120# driver. There are a number of options available:
9121# ** 'caching_scheduler', which aggressively caches the system state for better
9122# individual scheduler performance at the risk of more retries when running
9123# multiple schedulers
9124# ** 'chance_scheduler', which simply picks a host at random
9125# ** 'fake_scheduler', which is used for testing
9126# ** A custom scheduler driver. In this case, you will be responsible for
9127# creating and maintaining the entry point in your 'setup.cfg' file
9128# (string value)
9129# Allowed values: filter_scheduler, caching_scheduler, chance_scheduler, fake_scheduler
9130# Deprecated group/name - [DEFAULT]/scheduler_driver
9131#driver=filter_scheduler
9132
9133#
9134# Periodic task interval.
9135#
9136# This value controls how often (in seconds) to run periodic tasks in the
9137# scheduler. The specific tasks that are run for each period are determined by
9138# the particular scheduler being used.
9139#
9140# If this is larger than the nova-service 'service_down_time' setting, Nova may
9141# report the scheduler service as down. This is because the scheduler driver is
9142# responsible for sending a heartbeat and it will only do that as often as this
9143# option allows. As each scheduler can work a little differently than the
9144# others,
9145# be sure to test this with your selected scheduler.
9146#
9147# Possible values:
9148#
9149# * An integer, where the integer corresponds to periodic task interval in
9150# seconds. 0 uses the default interval (60 seconds). A negative value disables
9151# periodic tasks.
9152#
9153# Related options:
9154#
9155# * ``nova-service service_down_time``
9156# (integer value)
9157# Deprecated group/name - [DEFAULT]/scheduler_driver_task_period
9158#periodic_task_interval=60
9159
9160#
9161# Maximum number of schedule attempts for a chosen host.
9162#
9163# This is the maximum number of attempts that will be made to schedule an
9164# instance before it is assumed that the failures aren't due to normal
9165# occasional
9166# race conflicts, but rather some other problem. When this is reached a
9167# MaxRetriesExceeded exception is raised, and the instance is set to an error
9168# state.
9169#
9170# Possible values:
9171#
9172# * A positive integer, where the integer corresponds to the max number of
9173# attempts that can be made when scheduling an instance.
9174# (integer value)
9175# Minimum value: 1
9176# Deprecated group/name - [DEFAULT]/scheduler_max_attempts
9177#max_attempts=3
9178
9179#
9180# Periodic task interval.
9181#
9182# This value controls how often (in seconds) the scheduler should attempt
9183# to discover new hosts that have been added to cells. If negative (the
9184# default), no automatic discovery will occur.
9185#
9186# Small deployments may want this periodic task enabled, as surveying the
9187# cells for new hosts is likely to be lightweight enough to not cause undue
9188# burdon to the scheduler. However, larger clouds (and those that are not
9189# adding hosts regularly) will likely want to disable this automatic
9190# behavior and instead use the `nova-manage cell_v2 discover_hosts` command
9191# when hosts have been added to a cell.
9192# (integer value)
9193# Minimum value: -1
9194#discover_hosts_in_cells_interval=-1
9195
9196
9197[serial_console]
9198#
9199# The serial console feature allows you to connect to a guest in case a
9200# graphical console like VNC, RDP or SPICE is not available. This is only
9201# currently supported for the libvirt, Ironic and hyper-v drivers.
9202
9203#
9204# From nova.conf
9205#
9206
9207#
9208# Enable the serial console feature.
9209#
9210# In order to use this feature, the service ``nova-serialproxy`` needs to run.
9211# This service is typically executed on the controller node.
9212# (boolean value)
9213#enabled=false
9214
9215#
9216# A range of TCP ports a guest can use for its backend.
9217#
9218# Each instance which gets created will use one port out of this range. If the
9219# range is not big enough to provide another port for an new instance, this
9220# instance won't get launched.
9221#
9222# Possible values:
9223#
9224# * Each string which passes the regex ``\d+:\d+`` For example ``10000:20000``.
9225# Be sure that the first port number is lower than the second port number
9226# and that both are in range from 0 to 65535.
9227# (string value)
9228#port_range=10000:20000
9229
9230#
9231# The URL an end user would use to connect to the ``nova-serialproxy`` service.
9232#
9233# The ``nova-serialproxy`` service is called with this token enriched URL
9234# and establishes the connection to the proper instance.
9235#
9236# Related options:
9237#
9238# * The IP address must be identical to the address to which the
9239# ``nova-serialproxy`` service is listening (see option ``serialproxy_host``
9240# in this section).
9241# * The port must be the same as in the option ``serialproxy_port`` of this
9242# section.
9243# * If you choose to use a secured websocket connection, then start this option
9244# with ``wss://`` instead of the unsecured ``ws://``. The options ``cert``
9245# and ``key`` in the ``[DEFAULT]`` section have to be set for that.
9246# (uri value)
9247#base_url=ws://127.0.0.1:6083/
9248
9249#
9250# The IP address to which proxy clients (like ``nova-serialproxy``) should
9251# connect to get the serial console of an instance.
9252#
9253# This is typically the IP address of the host of a ``nova-compute`` service.
9254# (string value)
9255#proxyclient_address=127.0.0.1
9256
9257#
9258# The IP address which is used by the ``nova-serialproxy`` service to listen
9259# for incoming requests.
9260#
9261# The ``nova-serialproxy`` service listens on this IP address for incoming
9262# connection requests to instances which expose serial console.
9263#
9264# Related options:
9265#
9266# * Ensure that this is the same IP address which is defined in the option
9267# ``base_url`` of this section or use ``0.0.0.0`` to listen on all addresses.
9268# (string value)
9269#serialproxy_host=0.0.0.0
9270
9271#
9272# The port number which is used by the ``nova-serialproxy`` service to listen
9273# for incoming requests.
9274#
9275# The ``nova-serialproxy`` service listens on this port number for incoming
9276# connection requests to instances which expose serial console.
9277#
9278# Related options:
9279#
9280# * Ensure that this is the same port number which is defined in the option
9281# ``base_url`` of this section.
9282# (port value)
9283# Minimum value: 0
9284# Maximum value: 65535
9285#serialproxy_port=6083
9286
9287
9288[service_user]
9289#
9290# Configuration options for service to service authentication using a service
9291# token. These options allow to send a service token along with the
9292# user's token when contacting external REST APIs.
9293
9294#
9295# From nova.conf
9296#
Oleksandr Bryndzii687b6542019-02-20 15:51:15 +02009297{%- if compute.get('service_user', {}).get('enabled', True) %}
9298send_service_user_token = True
9299auth_type = password
9300{%- set _data = {} %}
9301{%- do _data.update(compute.get('identity', {})) %}
9302{%- do _data.update(compute.get('service_user', {})) %}
9303{%- if not _data.port == '5000' %}{% do _data.update({'port': '5000'}) %}{% endif %}
9304{%- if 'cacert_file' not in _data.keys() %}{% do _data.update({'cacert_file': compute.cacert_file}) %}{% endif %}
9305user_domain_id = {{ _data.get('domain', 'default') }}
9306project_domain_id = {{ _data.get('domain', 'default') }}
9307project_name = {{ _data.get('tenant', 'service') }}
9308username = {{ _data.get('user', 'nova') }}
9309password = {{ _data.password }}
9310auth_url={{ _data.get('protocol', 'http') }}://{{ _data.host }}:{{ _data.port }}
9311 {%- if _data.get('protocol', 'http') == 'https' %}
9312cafile={{ _data.cacert_file }}
9313 {%- endif %}
9314{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01009315
9316#
9317# When True, if sending a user token to an REST API, also send a service token.
9318#
9319# Nova often reuses the user token provided to the nova-api to talk to other
9320# REST APIs, such as Cinder and Neutron. It is possible that while the
9321# user token was valid when the request was made to Nova, the token may expire
9322# before it reaches the other service. To avoid any failures, and to
9323# make it clear it is Nova calling the service on the users behalf, we include
9324# a server token along with the user token. Should the user's token have
9325# expired, a valid service token ensures the REST API request will still be
9326# accepted by the keystone middleware.
9327#
9328# This feature is currently experimental, and as such is turned off by default
9329# while full testing and performance tuning of this feature is completed.
9330# (boolean value)
9331#send_service_user_token=false
9332
9333# PEM encoded Certificate Authority to use when verifying HTTPs connections.
9334# (string value)
9335#cafile=<None>
9336
9337# PEM encoded client certificate cert file (string value)
9338#certfile=<None>
9339
9340# PEM encoded client certificate key file (string value)
9341#keyfile=<None>
9342
9343# Verify HTTPS connections. (boolean value)
9344#insecure=false
9345
9346# Timeout value for http requests (integer value)
9347#timeout=<None>
9348
9349# Authentication type to load (string value)
9350# Deprecated group/name - [service_user]/auth_plugin
9351#auth_type=<None>
9352
9353# Config Section from which to load plugin specific options (string value)
9354#auth_section=<None>
9355
9356# Authentication URL (string value)
9357#auth_url=<None>
9358
9359# Domain ID to scope to (string value)
9360#domain_id=<None>
9361
9362# Domain name to scope to (string value)
9363#domain_name=<None>
9364
9365# Project ID to scope to (string value)
9366#project_id=<None>
9367
9368# Project name to scope to (string value)
9369#project_name=<None>
9370
9371# Domain ID containing project (string value)
9372#project_domain_id=<None>
9373
9374# Domain name containing project (string value)
9375#project_domain_name=<None>
9376
9377# Trust ID (string value)
9378#trust_id=<None>
9379
9380# Optional domain ID to use with v3 and v2 parameters. It will be used for both
9381# the user and project domain in v3 and ignored in v2 authentication. (string
9382# value)
9383#default_domain_id=<None>
9384
9385# Optional domain name to use with v3 API and v2 parameters. It will be used for
9386# both the user and project domain in v3 and ignored in v2 authentication.
9387# (string value)
9388#default_domain_name=<None>
9389
9390# User ID (string value)
9391#user_id=<None>
9392
9393# Username (string value)
9394# Deprecated group/name - [service_user]/user-name
9395#username=<None>
9396
9397# User's domain id (string value)
9398#user_domain_id=<None>
9399
9400# User's domain name (string value)
9401#user_domain_name=<None>
9402
9403# User's password (string value)
9404#password=<None>
9405
9406# Tenant ID (string value)
9407#tenant_id=<None>
9408
9409# Tenant Name (string value)
9410#tenant_name=<None>
9411
9412
9413[spice]
9414#
9415# SPICE console feature allows you to connect to a guest virtual machine.
9416# SPICE is a replacement for fairly limited VNC protocol.
9417#
9418# Following requirements must be met in order to use SPICE:
9419#
9420# * Virtualization driver must be libvirt
9421# * spice.enabled set to True
9422# * vnc.enabled set to False
9423# * update html5proxy_base_url
9424# * update server_proxyclient_address
9425enabled = false
9426{%- if compute.vncproxy_url is defined %}
9427html5proxy_base_url = {{ compute.vncproxy_url }}/spice_auto.html
9428{%- endif %}
9429#
9430# From nova.conf
9431#
9432
9433#
9434# Enable SPICE related features.
9435#
9436# Related options:
9437#
9438# * VNC must be explicitly disabled to get access to the SPICE console. Set the
9439# enabled option to False in the [vnc] section to disable the VNC console.
9440# (boolean value)
9441#enabled=false
9442
9443#
9444# Enable the SPICE guest agent support on the instances.
9445#
9446# The Spice agent works with the Spice protocol to offer a better guest console
9447# experience. However, the Spice console can still be used without the Spice
9448# Agent. With the Spice agent installed the following features are enabled:
9449#
9450# * Copy & Paste of text and images between the guest and client machine
9451# * Automatic adjustment of resolution when the client screen changes - e.g.
9452# if you make the Spice console full screen the guest resolution will adjust
9453# to
9454# match it rather than letterboxing.
9455# * Better mouse integration - The mouse can be captured and released without
9456# needing to click inside the console or press keys to release it. The
9457# performance of mouse movement is also improved.
9458# (boolean value)
9459#agent_enabled=true
9460
9461#
9462# Location of the SPICE HTML5 console proxy.
9463#
9464# End user would use this URL to connect to the `nova-spicehtml5proxy``
9465# service. This service will forward request to the console of an instance.
9466#
9467# In order to use SPICE console, the service ``nova-spicehtml5proxy`` should be
9468# running. This service is typically launched on the controller node.
9469#
9470# Possible values:
9471#
9472# * Must be a valid URL of the form: ``http://host:port/spice_auto.html``
9473# where host is the node running ``nova-spicehtml5proxy`` and the port is
9474# typically 6082. Consider not using default value as it is not well defined
9475# for any real deployment.
9476#
9477# Related options:
9478#
9479# * This option depends on ``html5proxy_host`` and ``html5proxy_port`` options.
9480# The access URL returned by the compute node must have the host
9481# and port where the ``nova-spicehtml5proxy`` service is listening.
9482# (uri value)
9483#html5proxy_base_url=http://127.0.0.1:6082/spice_auto.html
9484
9485#
9486# The address where the SPICE server running on the instances should listen.
9487#
9488# Typically, the ``nova-spicehtml5proxy`` proxy client runs on the controller
9489# node and connects over the private network to this address on the compute
9490# node(s).
9491#
9492# Possible values:
9493#
9494# * IP address to listen on.
9495# (string value)
9496#server_listen=127.0.0.1
9497
9498#
9499# The address used by ``nova-spicehtml5proxy`` client to connect to instance
9500# console.
9501#
9502# Typically, the ``nova-spicehtml5proxy`` proxy client runs on the
9503# controller node and connects over the private network to this address on the
9504# compute node(s).
9505#
9506# Possible values:
9507#
9508# * Any valid IP address on the compute node.
9509#
9510# Related options:
9511#
9512# * This option depends on the ``server_listen`` option.
9513# The proxy client must be able to access the address specified in
9514# ``server_listen`` using the value of this option.
9515# (string value)
9516#server_proxyclient_address=127.0.0.1
9517
9518#
9519# A keyboard layout which is supported by the underlying hypervisor on this
9520# node.
9521#
9522# Possible values:
9523# * This is usually an 'IETF language tag' (default is 'en-us'). If you
9524# use QEMU as hypervisor, you should find the list of supported keyboard
9525# layouts at /usr/share/qemu/keymaps.
9526# (string value)
9527#keymap=en-us
9528
9529#
9530# IP address or a hostname on which the ``nova-spicehtml5proxy`` service
9531# listens for incoming requests.
9532#
9533# Related options:
9534#
9535# * This option depends on the ``html5proxy_base_url`` option.
9536# The ``nova-spicehtml5proxy`` service must be listening on a host that is
9537# accessible from the HTML5 client.
9538# (string value)
9539#html5proxy_host=0.0.0.0
9540
9541#
9542# Port on which the ``nova-spicehtml5proxy`` service listens for incoming
9543# requests.
9544#
9545# Related options:
9546#
9547# * This option depends on the ``html5proxy_base_url`` option.
9548# The ``nova-spicehtml5proxy`` service must be listening on a port that is
9549# accessible from the HTML5 client.
9550# (port value)
9551# Minimum value: 0
9552# Maximum value: 65535
9553#html5proxy_port=6082
9554
9555
9556[ssl]
9557
9558#
9559# From nova.conf
9560#
9561
9562# CA certificate file to use to verify connecting clients. (string value)
9563# Deprecated group/name - [DEFAULT]/ssl_ca_file
9564{%- if compute.identity.get('protocol', 'http') == 'htpps' %}
9565ca_file={{ compute.image.get('cacert_file', compute.cacert_file) }}
9566{%- endif %}
9567# Certificate file to use when starting the server securely. (string value)
9568# Deprecated group/name - [DEFAULT]/ssl_cert_file
9569#cert_file=<None>
9570
9571# Private key file to use when starting the server securely. (string value)
9572# Deprecated group/name - [DEFAULT]/ssl_key_file
9573#key_file=<None>
9574
9575# SSL version to use (valid only if SSL enabled). Valid values are TLSv1 and
9576# SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be available on some
9577# distributions. (string value)
9578#version=<None>
9579
9580# Sets the list of available ciphers. value should be a string in the OpenSSL
9581# cipher list format. (string value)
9582#ciphers=<None>
9583
9584
9585[trusted_computing]
9586#
9587# Configuration options for enabling Trusted Platform Module.
9588
9589#
9590# From nova.conf
9591#
9592
9593#
9594# The host to use as the attestation server.
9595#
9596# Cloud computing pools can involve thousands of compute nodes located at
9597# different geographical locations, making it difficult for cloud providers to
9598# identify a node's trustworthiness. When using the Trusted filter, users can
9599# request that their VMs only be placed on nodes that have been verified by the
9600# attestation server specified in this option.
9601#
9602# This option is only used by the FilterScheduler and its subclasses; if you use
9603# a different scheduler, this option has no effect. Also note that this setting
9604# only affects scheduling if the 'TrustedFilter' filter is enabled.
9605#
9606# Possible values:
9607#
9608# * A string representing the host name or IP address of the attestation server,
9609# or an empty string.
9610#
9611# Related options:
9612#
9613# * attestation_server_ca_file
9614# * attestation_port
9615# * attestation_api_url
9616# * attestation_auth_blob
9617# * attestation_auth_timeout
9618# * attestation_insecure_ssl
9619# (string value)
9620#attestation_server=<None>
9621
9622#
9623# The absolute path to the certificate to use for authentication when connecting
9624# to the attestation server. See the `attestation_server` help text for more
9625# information about host verification.
9626#
9627# This option is only used by the FilterScheduler and its subclasses; if you use
9628# a different scheduler, this option has no effect. Also note that this setting
9629# only affects scheduling if the 'TrustedFilter' filter is enabled.
9630#
9631# Possible values:
9632#
9633# * A string representing the path to the authentication certificate for the
9634# attestation server, or an empty string.
9635#
9636# Related options:
9637#
9638# * attestation_server
9639# * attestation_port
9640# * attestation_api_url
9641# * attestation_auth_blob
9642# * attestation_auth_timeout
9643# * attestation_insecure_ssl
9644# (string value)
9645#attestation_server_ca_file=<None>
9646
9647#
9648# The port to use when connecting to the attestation server. See the
9649# `attestation_server` help text for more information about host verification.
9650#
9651# This option is only used by the FilterScheduler and its subclasses; if you use
9652# a different scheduler, this option has no effect. Also note that this setting
9653# only affects scheduling if the 'TrustedFilter' filter is enabled.
9654#
9655# Related options:
9656#
9657# * attestation_server
9658# * attestation_server_ca_file
9659# * attestation_api_url
9660# * attestation_auth_blob
9661# * attestation_auth_timeout
9662# * attestation_insecure_ssl
9663# (port value)
9664# Minimum value: 0
9665# Maximum value: 65535
9666#attestation_port=8443
9667
9668#
9669# The URL on the attestation server to use. See the `attestation_server` help
9670# text for more information about host verification.
9671#
9672# This value must be just that path portion of the full URL, as it will be
9673# joined
9674# to the host specified in the attestation_server option.
9675#
9676# This option is only used by the FilterScheduler and its subclasses; if you use
9677# a different scheduler, this option has no effect. Also note that this setting
9678# only affects scheduling if the 'TrustedFilter' filter is enabled.
9679#
9680# Possible values:
9681#
9682# * A valid URL string of the attestation server, or an empty string.
9683#
9684# Related options:
9685#
9686# * attestation_server
9687# * attestation_server_ca_file
9688# * attestation_port
9689# * attestation_auth_blob
9690# * attestation_auth_timeout
9691# * attestation_insecure_ssl
9692# (string value)
9693#attestation_api_url=/OpenAttestationWebServices/V1.0
9694
9695#
9696# Attestation servers require a specific blob that is used to authenticate. The
9697# content and format of the blob are determined by the particular attestation
9698# server being used. There is no default value; you must supply the value as
9699# specified by your attestation service. See the `attestation_server` help text
9700# for more information about host verification.
9701#
9702# This option is only used by the FilterScheduler and its subclasses; if you use
9703# a different scheduler, this option has no effect. Also note that this setting
9704# only affects scheduling if the 'TrustedFilter' filter is enabled.
9705#
9706# Possible values:
9707#
9708# * A string containing the specific blob required by the attestation server, or
9709# an empty string.
9710#
9711# Related options:
9712#
9713# * attestation_server
9714# * attestation_server_ca_file
9715# * attestation_port
9716# * attestation_api_url
9717# * attestation_auth_timeout
9718# * attestation_insecure_ssl
9719# (string value)
9720#attestation_auth_blob=<None>
9721
9722#
9723# This value controls how long a successful attestation is cached. Once this
9724# period has elapsed, a new attestation request will be made. See the
9725# `attestation_server` help text for more information about host verification.
9726#
9727# This option is only used by the FilterScheduler and its subclasses; if you use
9728# a different scheduler, this option has no effect. Also note that this setting
9729# only affects scheduling if the 'TrustedFilter' filter is enabled.
9730#
9731# Possible values:
9732#
9733# * A integer value, corresponding to the timeout interval for attestations in
9734# seconds. Any integer is valid, although setting this to zero or negative
9735# values can greatly impact performance when using an attestation service.
9736#
9737# Related options:
9738#
9739# * attestation_server
9740# * attestation_server_ca_file
9741# * attestation_port
9742# * attestation_api_url
9743# * attestation_auth_blob
9744# * attestation_insecure_ssl
9745# (integer value)
9746#attestation_auth_timeout=60
9747
9748#
9749# When set to True, the SSL certificate verification is skipped for the
9750# attestation service. See the `attestation_server` help text for more
9751# information about host verification.
9752#
9753# This option is only used by the FilterScheduler and its subclasses; if you use
9754# a different scheduler, this option has no effect. Also note that this setting
9755# only affects scheduling if the 'TrustedFilter' filter is enabled.
9756#
9757# Related options:
9758#
9759# * attestation_server
9760# * attestation_server_ca_file
9761# * attestation_port
9762# * attestation_api_url
9763# * attestation_auth_blob
9764# * attestation_auth_timeout
9765# (boolean value)
9766#attestation_insecure_ssl=false
9767
9768
9769[upgrade_levels]
9770{%- if compute.upgrade_levels is defined %}
9771{%- for key, value in compute.upgrade_levels.iteritems() %}
9772{{ key }}={{ value }}
9773{%- endfor %}
9774{%- endif %}
9775#
9776# upgrade_levels options are used to set version cap for RPC
9777# messages sent between different nova services.
9778#
9779# By default all services send messages using the latest version
9780# they know about.
9781#
9782# The compute upgrade level is an important part of rolling upgrades
9783# where old and new nova-compute services run side by side.
9784#
9785# The other options can largely be ignored, and are only kept to
9786# help with a possible future backport issue.
9787
9788#
9789# From nova.conf
9790#
9791
9792#
9793# Compute RPC API version cap.
9794#
9795# By default, we always send messages using the most recent version
9796# the client knows about.
9797#
9798# Where you have old and new compute services running, you should set
9799# this to the lowest deployed version. This is to guarantee that all
9800# services never send messages that one of the compute nodes can't
9801# understand. Note that we only support upgrading from release N to
9802# release N+1.
9803#
9804# Set this option to "auto" if you want to let the compute RPC module
9805# automatically determine what version to use based on the service
9806# versions in the deployment.
9807#
9808# Possible values:
9809#
9810# * By default send the latest version the client knows about
9811# * 'auto': Automatically determines what version to use based on
9812# the service versions in the deployment.
9813# * A string representing a version number in the format 'N.N';
9814# for example, possible values might be '1.12' or '2.0'.
9815# * An OpenStack release name, in lower case, such as 'mitaka' or
9816# 'liberty'.
9817# (string value)
9818#compute=<None>
9819
9820# Cells RPC API version cap (string value)
9821#cells=<None>
9822
9823# Intercell RPC API version cap (string value)
9824#intercell=<None>
9825
9826# Cert RPC API version cap (string value)
9827#cert=<None>
9828
9829# Scheduler RPC API version cap (string value)
9830#scheduler=<None>
9831
9832# Conductor RPC API version cap (string value)
9833#conductor=<None>
9834
9835# Console RPC API version cap (string value)
9836#console=<None>
9837
9838# Consoleauth RPC API version cap (string value)
9839#consoleauth=<None>
9840
9841# Network RPC API version cap (string value)
9842#network=<None>
9843
9844# Base API RPC API version cap (string value)
9845#baseapi=<None>
9846
9847
9848[vendordata_dynamic_auth]
9849#
9850# Options within this group control the authentication of the vendordata
9851# subsystem of the metadata API server (and config drive) with external systems.
9852
9853#
9854# From nova.conf
9855#
9856
9857# PEM encoded Certificate Authority to use when verifying HTTPs connections.
9858# (string value)
9859#cafile=<None>
9860
9861# PEM encoded client certificate cert file (string value)
9862#certfile=<None>
9863
9864# PEM encoded client certificate key file (string value)
9865#keyfile=<None>
9866
9867# Verify HTTPS connections. (boolean value)
9868#insecure=false
9869
9870# Timeout value for http requests (integer value)
9871#timeout=<None>
9872
9873# Authentication type to load (string value)
9874# Deprecated group/name - [vendordata_dynamic_auth]/auth_plugin
9875#auth_type=<None>
9876
9877# Config Section from which to load plugin specific options (string value)
9878#auth_section=<None>
9879
9880# Authentication URL (string value)
9881#auth_url=<None>
9882
9883# Domain ID to scope to (string value)
9884#domain_id=<None>
9885
9886# Domain name to scope to (string value)
9887#domain_name=<None>
9888
9889# Project ID to scope to (string value)
9890#project_id=<None>
9891
9892# Project name to scope to (string value)
9893#project_name=<None>
9894
9895# Domain ID containing project (string value)
9896#project_domain_id=<None>
9897
9898# Domain name containing project (string value)
9899#project_domain_name=<None>
9900
9901# Trust ID (string value)
9902#trust_id=<None>
9903
9904# Optional domain ID to use with v3 and v2 parameters. It will be used for both
9905# the user and project domain in v3 and ignored in v2 authentication. (string
9906# value)
9907#default_domain_id=<None>
9908
9909# Optional domain name to use with v3 API and v2 parameters. It will be used for
9910# both the user and project domain in v3 and ignored in v2 authentication.
9911# (string value)
9912#default_domain_name=<None>
9913
9914# User ID (string value)
9915#user_id=<None>
9916
9917# Username (string value)
9918# Deprecated group/name - [vendordata_dynamic_auth]/user-name
9919#username=<None>
9920
9921# User's domain id (string value)
9922#user_domain_id=<None>
9923
9924# User's domain name (string value)
9925#user_domain_name=<None>
9926
9927# User's password (string value)
9928#password=<None>
9929
9930# Tenant ID (string value)
9931#tenant_id=<None>
9932
9933# Tenant Name (string value)
9934#tenant_name=<None>
9935
Vasyl Saienkocab3a902018-07-12 13:17:17 +03009936{%- set compute_driver = compute.get('compute_driver', 'libvirt.LibvirtDriver') %}
9937{%- if compute_driver in compute_driver_mapping.keys() %}
9938{%- set _data = compute.get(compute_driver_mapping[compute_driver]) %}
9939{%- include "nova/files/pike/compute/_" + compute_driver_mapping[compute_driver] + ".conf" %}
9940{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01009941
9942
9943[vnc]
9944#
9945# Virtual Network Computer (VNC) can be used to provide remote desktop
9946# console access to instances for tenants and/or administrators.
9947
9948#
9949# From nova.conf
9950#
9951enabled = true
9952{%- if compute.vncproxy_url is defined %}
9953novncproxy_base_url={{ compute.vncproxy_url }}/vnc_auto.html
9954{%- endif %}
9955{%- if compute.bind is defined and compute.bind.vnc_port is defined %}
9956novncproxy_port={{ compute.bind.vnc_port }}
9957{%- endif %}
Vasyl Saienko3b217632018-04-03 17:40:57 +03009958{%- if compute.bind is defined %}
9959{%- if compute.bind.vnc_address is defined %}
9960vncserver_listen={{ compute.bind.vnc_address }}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01009961vncserver_proxyclient_address={{ compute.bind.vnc_address }}
Vasyl Saienko3b217632018-04-03 17:40:57 +03009962{%- else %}
9963vncserver_listen=0.0.0.0
9964{%- endif %}
Jakub Pavlik7cfb84f2018-01-10 21:59:53 +01009965{%- endif %}
9966keymap = {{ compute.get('vnc_keymap', 'en-us') }}
9967
9968#
9969# Enable VNC related features.
9970#
9971# Guests will get created with graphical devices to support this. Clients
9972# (for example Horizon) can then establish a VNC connection to the guest.
9973# (boolean value)
9974# Deprecated group/name - [DEFAULT]/vnc_enabled
9975#enabled=true
9976
9977#
9978# Keymap for VNC.
9979#
9980# The keyboard mapping (keymap) determines which keyboard layout a VNC
9981# session should use by default.
9982#
9983# Possible values:
9984#
9985# * A keyboard layout which is supported by the underlying hypervisor on
9986# this node. This is usually an 'IETF language tag' (for example
9987# 'en-us'). If you use QEMU as hypervisor, you should find the list
9988# of supported keyboard layouts at ``/usr/share/qemu/keymaps``.
9989# (string value)
9990# Deprecated group/name - [DEFAULT]/vnc_keymap
9991#keymap=en-us
9992
9993#
9994# The IP address or hostname on which an instance should listen to for
9995# incoming VNC connection requests on this node.
9996# (string value)
9997# Deprecated group/name - [DEFAULT]/vncserver_listen
9998#vncserver_listen=127.0.0.1
9999
10000#
10001# Private, internal IP address or hostname of VNC console proxy.
10002#
10003# The VNC proxy is an OpenStack component that enables compute service
10004# users to access their instances through VNC clients.
10005#
10006# This option sets the private address to which proxy clients, such as
10007# ``nova-xvpvncproxy``, should connect to.
10008# (string value)
10009# Deprecated group/name - [DEFAULT]/vncserver_proxyclient_address
10010#vncserver_proxyclient_address=127.0.0.1
10011
10012#
10013# Public address of noVNC VNC console proxy.
10014#
10015# The VNC proxy is an OpenStack component that enables compute service
10016# users to access their instances through VNC clients. noVNC provides
10017# VNC support through a websocket-based client.
10018#
10019# This option sets the public base URL to which client systems will
10020# connect. noVNC clients can use this address to connect to the noVNC
10021# instance and, by extension, the VNC sessions.
10022#
10023# Related options:
10024#
10025# * novncproxy_host
10026# * novncproxy_port
10027# (uri value)
10028# Deprecated group/name - [DEFAULT]/novncproxy_base_url
10029#novncproxy_base_url=http://127.0.0.1:6080/vnc_auto.html
10030
10031#
10032# IP address or hostname that the XVP VNC console proxy should bind to.
10033#
10034# The VNC proxy is an OpenStack component that enables compute service
10035# users to access their instances through VNC clients. Xen provides
10036# the Xenserver VNC Proxy, or XVP, as an alternative to the
10037# websocket-based noVNC proxy used by Libvirt. In contrast to noVNC,
10038# XVP clients are Java-based.
10039#
10040# This option sets the private address to which the XVP VNC console proxy
10041# service should bind to.
10042#
10043# Related options:
10044#
10045# * xvpvncproxy_port
10046# * xvpvncproxy_base_url
10047# (string value)
10048# Deprecated group/name - [DEFAULT]/xvpvncproxy_host
10049#xvpvncproxy_host=0.0.0.0
10050
10051#
10052# Port that the XVP VNC console proxy should bind to.
10053#
10054# The VNC proxy is an OpenStack component that enables compute service
10055# users to access their instances through VNC clients. Xen provides
10056# the Xenserver VNC Proxy, or XVP, as an alternative to the
10057# websocket-based noVNC proxy used by Libvirt. In contrast to noVNC,
10058# XVP clients are Java-based.
10059#
10060# This option sets the private port to which the XVP VNC console proxy
10061# service should bind to.
10062#
10063# Related options:
10064#
10065# * xvpvncproxy_host
10066# * xvpvncproxy_base_url
10067# (port value)
10068# Minimum value: 0
10069# Maximum value: 65535
10070# Deprecated group/name - [DEFAULT]/xvpvncproxy_port
10071#xvpvncproxy_port=6081
10072
10073#
10074# Public URL address of XVP VNC console proxy.
10075#
10076# The VNC proxy is an OpenStack component that enables compute service
10077# users to access their instances through VNC clients. Xen provides
10078# the Xenserver VNC Proxy, or XVP, as an alternative to the
10079# websocket-based noVNC proxy used by Libvirt. In contrast to noVNC,
10080# XVP clients are Java-based.
10081#
10082# This option sets the public base URL to which client systems will
10083# connect. XVP clients can use this address to connect to the XVP
10084# instance and, by extension, the VNC sessions.
10085#
10086# Related options:
10087#
10088# * xvpvncproxy_host
10089# * xvpvncproxy_port
10090# (uri value)
10091# Deprecated group/name - [DEFAULT]/xvpvncproxy_base_url
10092#xvpvncproxy_base_url=http://127.0.0.1:6081/console
10093
10094#
10095# IP address that the noVNC console proxy should bind to.
10096#
10097# The VNC proxy is an OpenStack component that enables compute service
10098# users to access their instances through VNC clients. noVNC provides
10099# VNC support through a websocket-based client.
10100#
10101# This option sets the private address to which the noVNC console proxy
10102# service should bind to.
10103#
10104# Related options:
10105#
10106# * novncproxy_port
10107# * novncproxy_base_url
10108# (string value)
10109# Deprecated group/name - [DEFAULT]/novncproxy_host
10110#novncproxy_host=0.0.0.0
10111
10112#
10113# Port that the noVNC console proxy should bind to.
10114#
10115# The VNC proxy is an OpenStack component that enables compute service
10116# users to access their instances through VNC clients. noVNC provides
10117# VNC support through a websocket-based client.
10118#
10119# This option sets the private port to which the noVNC console proxy
10120# service should bind to.
10121#
10122# Related options:
10123#
10124# * novncproxy_host
10125# * novncproxy_base_url
10126# (port value)
10127# Minimum value: 0
10128# Maximum value: 65535
10129# Deprecated group/name - [DEFAULT]/novncproxy_port
10130#novncproxy_port=6080
10131
10132
10133[workarounds]
10134#
10135# A collection of workarounds used to mitigate bugs or issues found in system
10136# tools (e.g. Libvirt or QEMU) or Nova itself under certain conditions. These
10137# should only be enabled in exceptional circumstances. All options are linked
10138# against bug IDs, where more information on the issue can be found.
10139
10140#
10141# From nova.conf
10142#
10143
10144#
10145# Use sudo instead of rootwrap.
10146#
10147# Allow fallback to sudo for performance reasons.
10148#
10149# For more information, refer to the bug report:
10150#
10151# https://bugs.launchpad.net/nova/+bug/1415106
10152#
10153# Possible values:
10154#
10155# * True: Use sudo instead of rootwrap
10156# * False: Use rootwrap as usual
10157#
10158# Interdependencies to other options:
10159#
10160# * Any options that affect 'rootwrap' will be ignored.
10161# (boolean value)
10162#disable_rootwrap=false
10163
10164#
10165# Disable live snapshots when using the libvirt driver.
10166#
10167# Live snapshots allow the snapshot of the disk to happen without an
10168# interruption to the guest, using coordination with a guest agent to
10169# quiesce the filesystem.
10170#
10171# When using libvirt 1.2.2 live snapshots fail intermittently under load
10172# (likely related to concurrent libvirt/qemu operations). This config
10173# option provides a mechanism to disable live snapshot, in favor of cold
10174# snapshot, while this is resolved. Cold snapshot causes an instance
10175# outage while the guest is going through the snapshotting process.
10176#
10177# For more information, refer to the bug report:
10178#
10179# https://bugs.launchpad.net/nova/+bug/1334398
10180#
10181# Possible values:
10182#
10183# * True: Live snapshot is disabled when using libvirt
10184# * False: Live snapshots are always used when snapshotting (as long as
10185# there is a new enough libvirt and the backend storage supports it)
10186# (boolean value)
10187#disable_libvirt_livesnapshot=true
10188disable_libvirt_livesnapshot={{ compute.get('workaround', {}).get('disable_libvirt_livesnapshot', True)|lower }}
10189
10190#
10191# Enable handling of events emitted from compute drivers.
10192#
10193# Many compute drivers emit lifecycle events, which are events that occur when,
10194# for example, an instance is starting or stopping. If the instance is going
10195# through task state changes due to an API operation, like resize, the events
10196# are ignored.
10197#
10198# This is an advanced feature which allows the hypervisor to signal to the
10199# compute service that an unexpected state change has occurred in an instance
10200# and that the instance can be shutdown automatically. Unfortunately, this can
10201# race in some conditions, for example in reboot operations or when the compute
10202# service or when host is rebooted (planned or due to an outage). If such races
10203# are common, then it is advisable to disable this feature.
10204#
10205# Care should be taken when this feature is disabled and
10206# 'sync_power_state_interval' is set to a negative value. In this case, any
10207# instances that get out of sync between the hypervisor and the Nova database
10208# will have to be synchronized manually.
10209#
10210# For more information, refer to the bug report:
10211#
10212# https://bugs.launchpad.net/bugs/1444630
10213#
10214# Interdependencies to other options:
10215#
10216# * If ``sync_power_state_interval`` is negative and this feature is disabled,
10217# then instances that get out of sync between the hypervisor and the Nova
10218# database will have to be synchronized manually.
10219# (boolean value)
10220#handle_virt_lifecycle_events=true
10221
10222
10223[wsgi]
10224#
10225# Options under this group are used to configure WSGI (Web Server Gateway
10226# Interface). WSGI is used to serve API requests.
10227
10228#
10229# From nova.conf
10230#
10231
10232#
10233# This option represents a file name for the paste.deploy config for nova-api.
10234#
10235# Possible values:
10236#
10237# * A string representing file name for the paste.deploy config.
10238# (string value)
10239# Deprecated group/name - [DEFAULT]/api_paste_config
10240api_paste_config=/etc/nova/api-paste.ini
10241
10242#
10243# It represents a python format string that is used as the template to generate
10244# log lines. The following values can be formatted into it: client_ip,
10245# date_time, request_line, status_code, body_length, wall_seconds.
10246#
10247# This option is used for building custom request loglines.
10248#
10249# Possible values:
10250#
10251# * '%(client_ip)s "%(request_line)s" status: %(status_code)s'
10252# 'len: %(body_length)s time: %(wall_seconds).7f' (default)
10253# * Any formatted string formed by specific values.
10254# (string value)
10255# Deprecated group/name - [DEFAULT]/wsgi_log_format
10256#wsgi_log_format=%(client_ip)s "%(request_line)s" status: %(status_code)s len: %(body_length)s time: %(wall_seconds).7f
10257
10258#
10259# This option specifies the HTTP header used to determine the protocol scheme
10260# for the original request, even if it was removed by a SSL terminating proxy.
10261#
10262# Possible values:
10263#
10264# * None (default) - the request scheme is not influenced by any HTTP headers.
10265# * Valid HTTP header, like HTTP_X_FORWARDED_PROTO
10266# (string value)
10267# Deprecated group/name - [DEFAULT]/secure_proxy_ssl_header
10268#secure_proxy_ssl_header=<None>
10269
10270#
10271# This option allows setting path to the CA certificate file that should be used
10272# to verify connecting clients.
10273#
10274# Possible values:
10275#
10276# * String representing path to the CA certificate file.
10277#
10278# Related options:
10279#
10280# * enabled_ssl_apis
10281# (string value)
10282# Deprecated group/name - [DEFAULT]/ssl_ca_file
10283#ssl_ca_file=<None>
10284
10285#
10286# This option allows setting path to the SSL certificate of API server.
10287#
10288# Possible values:
10289#
10290# * String representing path to the SSL certificate.
10291#
10292# Related options:
10293#
10294# * enabled_ssl_apis
10295# (string value)
10296# Deprecated group/name - [DEFAULT]/ssl_cert_file
10297#ssl_cert_file=<None>
10298
10299#
10300# This option specifies the path to the file where SSL private key of API
10301# server is stored when SSL is in effect.
10302#
10303# Possible values:
10304#
10305# * String representing path to the SSL private key.
10306#
10307# Related options:
10308#
10309# * enabled_ssl_apis
10310# (string value)
10311# Deprecated group/name - [DEFAULT]/ssl_key_file
10312#ssl_key_file=<None>
10313
10314#
10315# This option sets the value of TCP_KEEPIDLE in seconds for each server socket.
10316# It specifies the duration of time to keep connection active. TCP generates a
10317# KEEPALIVE transmission for an application that requests to keep connection
10318# active. Not supported on OS X.
10319#
10320# Related options:
10321#
10322# * keep_alive
10323# (integer value)
10324# Minimum value: 0
10325# Deprecated group/name - [DEFAULT]/tcp_keepidle
10326#tcp_keepidle=600
10327
10328#
10329# This option specifies the size of the pool of greenthreads used by wsgi.
10330# It is possible to limit the number of concurrent connections using this
10331# option.
10332# (integer value)
10333# Minimum value: 0
10334# Deprecated group/name - [DEFAULT]/wsgi_default_pool_size
10335#default_pool_size=1000
10336
10337#
10338# This option specifies the maximum line size of message headers to be accepted.
10339# max_header_line may need to be increased when using large tokens (typically
10340# those generated by the Keystone v3 API with big service catalogs).
10341#
10342# Since TCP is a stream based protocol, in order to reuse a connection, the HTTP
10343# has to have a way to indicate the end of the previous response and beginning
10344# of the next. Hence, in a keep_alive case, all messages must have a
10345# self-defined message length.
10346# (integer value)
10347# Minimum value: 0
10348# Deprecated group/name - [DEFAULT]/max_header_line
10349#max_header_line=16384
10350
10351#
10352# This option allows using the same TCP connection to send and receive multiple
10353# HTTP requests/responses, as opposed to opening a new one for every single
10354# request/response pair. HTTP keep-alive indicates HTTP connection reuse.
10355#
10356# Possible values:
10357#
10358# * True : reuse HTTP connection.
10359# * False : closes the client socket connection explicitly.
10360#
10361# Related options:
10362#
10363# * tcp_keepidle
10364# (boolean value)
10365# Deprecated group/name - [DEFAULT]/wsgi_keep_alive
10366#keep_alive=true
10367
10368#
10369# This option specifies the timeout for client connections' socket operations.
10370# If an incoming connection is idle for this number of seconds it will be
10371# closed. It indicates timeout on individual read/writes on the socket
10372# connection. To wait forever set to 0.
10373# (integer value)
10374# Minimum value: 0
10375# Deprecated group/name - [DEFAULT]/client_socket_timeout
10376#client_socket_timeout=900
10377
10378
10379[xenserver]
10380#
10381# XenServer options are used when the compute_driver is set to use
10382# XenServer (compute_driver=xenapi.XenAPIDriver).
10383#
10384# Must specify connection_url, connection_password and ovs_integration_bridge to
10385# use compute_driver=xenapi.XenAPIDriver.
10386
10387#
10388# From nova.conf
10389#
10390
10391#
10392# Number of seconds to wait for agent's reply to a request.
10393#
10394# Nova configures/performs certain administrative actions on a server with the
10395# help of an agent that's installed on the server. The communication between
10396# Nova and the agent is achieved via sharing messages, called records, over
10397# xenstore, a shared storage across all the domains on a Xenserver host.
10398# Operations performed by the agent on behalf of nova are: 'version','
10399# key_init',
10400# 'password','resetnetwork','inject_file', and 'agentupdate'.
10401#
10402# To perform one of the above operations, the xapi 'agent' plugin writes the
10403# command and its associated parameters to a certain location known to the
10404# domain
10405# and awaits response. On being notified of the message, the agent performs
10406# appropriate actions on the server and writes the result back to xenstore. This
10407# result is then read by the xapi 'agent' plugin to determine the
10408# success/failure
10409# of the operation.
10410#
10411# This config option determines how long the xapi 'agent' plugin shall wait to
10412# read the response off of xenstore for a given request/command. If the agent on
10413# the instance fails to write the result in this time period, the operation is
10414# considered to have timed out.
10415#
10416# Related options:
10417#
10418# * ``agent_version_timeout``
10419# * ``agent_resetnetwork_timeout``
10420#
10421# (integer value)
10422# Minimum value: 0
10423#agent_timeout=30
10424
10425#
10426# Number of seconds to wait for agent't reply to version request.
10427#
10428# This indicates the amount of time xapi 'agent' plugin waits for the agent to
10429# respond to the 'version' request specifically. The generic timeout for agent
10430# communication ``agent_timeout`` is ignored in this case.
10431#
10432# During the build process the 'version' request is used to determine if the
10433# agent is available/operational to perform other requests such as
10434# 'resetnetwork', 'password', 'key_init' and 'inject_file'. If the 'version'
10435# call
10436# fails, the other configuration is skipped. So, this configuration option can
10437# also be interpreted as time in which agent is expected to be fully
10438# operational.
10439# (integer value)
10440# Minimum value: 0
10441#agent_version_timeout=300
10442
10443#
10444# Number of seconds to wait for agent's reply to resetnetwork
10445# request.
10446#
10447# This indicates the amount of time xapi 'agent' plugin waits for the agent to
10448# respond to the 'resetnetwork' request specifically. The generic timeout for
10449# agent communication ``agent_timeout`` is ignored in this case.
10450# (integer value)
10451# Minimum value: 0
10452#agent_resetnetwork_timeout=60
10453
10454#
10455# Path to locate guest agent on the server.
10456#
10457# Specifies the path in which the XenAPI guest agent should be located. If the
10458# agent is present, network configuration is not injected into the image.
10459#
10460# Related options:
10461#
10462# For this option to have an effect:
10463# * ``flat_injected`` should be set to ``True``
10464# * ``compute_driver`` should be set to ``xenapi.XenAPIDriver``
10465#
10466# (string value)
10467#agent_path=usr/sbin/xe-update-networking
10468
10469#
10470# Disables the use of XenAPI agent.
10471#
10472# This configuration option suggests whether the use of agent should be enabled
10473# or not regardless of what image properties are present. Image properties have
10474# an effect only when this is set to ``True``. Read description of config option
10475# ``use_agent_default`` for more information.
10476#
10477# Related options:
10478#
10479# * ``use_agent_default``
10480#
10481# (boolean value)
10482#disable_agent=false
10483
10484#
10485# Whether or not to use the agent by default when its usage is enabled but not
10486# indicated by the image.
10487#
10488# The use of XenAPI agent can be disabled altogether using the configuration
10489# option ``disable_agent``. However, if it is not disabled, the use of an agent
10490# can still be controlled by the image in use through one of its properties,
10491# ``xenapi_use_agent``. If this property is either not present or specified
10492# incorrectly on the image, the use of agent is determined by this configuration
10493# option.
10494#
10495# Note that if this configuration is set to ``True`` when the agent is not
10496# present, the boot times will increase significantly.
10497#
10498# Related options:
10499#
10500# * ``disable_agent``
10501#
10502# (boolean value)
10503#use_agent_default=false
10504
10505# Timeout in seconds for XenAPI login. (integer value)
10506# Minimum value: 0
10507#login_timeout=10
10508
10509#
10510# Maximum number of concurrent XenAPI connections.
10511#
10512# In nova, multiple XenAPI requests can happen at a time.
10513# Configuring this option will parallelize access to the XenAPI
10514# session, which allows you to make concurrent XenAPI connections.
10515# (integer value)
10516# Minimum value: 1
10517#connection_concurrent=5
10518
10519# DEPRECATED:
10520# Base URL for torrent files; must contain a slash character (see RFC 1808,
10521# step 6).
10522# (string value)
10523# This option is deprecated for removal since 15.0.0.
10524# Its value may be silently ignored in the future.
10525# Reason:
10526# The torrent feature has not been tested nor maintained, and as such is being
10527# removed.
10528#torrent_base_url=<None>
10529
10530# DEPRECATED: Probability that peer will become a seeder (1.0 = 100%) (floating
10531# point value)
10532# Minimum value: 0
10533# This option is deprecated for removal since 15.0.0.
10534# Its value may be silently ignored in the future.
10535# Reason:
10536# The torrent feature has not been tested nor maintained, and as such is being
10537# removed.
10538#torrent_seed_chance=1.0
10539
10540# DEPRECATED:
10541# Number of seconds after downloading an image via BitTorrent that it should
10542# be seeded for other peers.'
10543# (integer value)
10544# This option is deprecated for removal since 15.0.0.
10545# Its value may be silently ignored in the future.
10546# Reason:
10547# The torrent feature has not been tested nor maintained, and as such is being
10548# removed.
10549#torrent_seed_duration=3600
10550
10551# DEPRECATED:
10552# Cached torrent files not accessed within this number of seconds can be reaped.
10553# (integer value)
10554# Minimum value: 0
10555# This option is deprecated for removal since 15.0.0.
10556# Its value may be silently ignored in the future.
10557# Reason:
10558# The torrent feature has not been tested nor maintained, and as such is being
10559# removed.
10560#torrent_max_last_accessed=86400
10561
10562# DEPRECATED: Beginning of port range to listen on (port value)
10563# Minimum value: 0
10564# Maximum value: 65535
10565# This option is deprecated for removal since 15.0.0.
10566# Its value may be silently ignored in the future.
10567# Reason:
10568# The torrent feature has not been tested nor maintained, and as such is being
10569# removed.
10570#torrent_listen_port_start=6881
10571
10572# DEPRECATED: End of port range to listen on (port value)
10573# Minimum value: 0
10574# Maximum value: 65535
10575# This option is deprecated for removal since 15.0.0.
10576# Its value may be silently ignored in the future.
10577# Reason:
10578# The torrent feature has not been tested nor maintained, and as such is being
10579# removed.
10580#torrent_listen_port_end=6891
10581
10582# DEPRECATED:
10583# Number of seconds a download can remain at the same progress percentage w/o
10584# being considered a stall.
10585# (integer value)
10586# Minimum value: 0
10587# This option is deprecated for removal since 15.0.0.
10588# Its value may be silently ignored in the future.
10589# Reason:
10590# The torrent feature has not been tested nor maintained, and as such is being
10591# removed.
10592#torrent_download_stall_cutoff=600
10593
10594# DEPRECATED:
10595# Maximum number of seeder processes to run concurrently within a given dom0
10596# (-1 = no limit).
10597# (integer value)
10598# Minimum value: -1
10599# This option is deprecated for removal since 15.0.0.
10600# Its value may be silently ignored in the future.
10601# Reason:
10602# The torrent feature has not been tested nor maintained, and as such is being
10603# removed.
10604#torrent_max_seeder_processes_per_host=1
10605
10606#
10607# Cache glance images locally.
10608#
10609# The value for this option must be chosen from the choices listed
10610# here. Configuring a value other than these will default to 'all'.
10611#
10612# Note: There is nothing that deletes these images.
10613#
10614# Possible values:
10615#
10616# * `all`: will cache all images.
10617# * `some`: will only cache images that have the
10618# image_property `cache_in_nova=True`.
10619# * `none`: turns off caching entirely.
10620# (string value)
10621# Allowed values: all, some, none
10622#cache_images=all
10623
10624#
10625# Compression level for images.
10626#
10627# By setting this option we can configure the gzip compression level.
10628# This option sets GZIP environment variable before spawning tar -cz
10629# to force the compression level. It defaults to none, which means the
10630# GZIP environment variable is not set and the default (usually -6)
10631# is used.
10632#
10633# Possible values:
10634#
10635# * Range is 1-9, e.g., 9 for gzip -9, 9 being most
10636# compressed but most CPU intensive on dom0.
10637# * Any values out of this range will default to None.
10638# (integer value)
10639# Minimum value: 1
10640# Maximum value: 9
10641#image_compression_level=<None>
10642
10643# Default OS type used when uploading an image to glance (string value)
10644#default_os_type=linux
10645
10646# Time in secs to wait for a block device to be created (integer value)
10647# Minimum value: 1
10648#block_device_creation_timeout=10
10649{%- if compute.block_device_creation_timeout is defined %}
10650block_device_creation_timeout = {{ compute.block_device_creation_timeout }}
10651{%- endif %}
10652
10653#
10654# Maximum size in bytes of kernel or ramdisk images.
10655#
10656# Specifying the maximum size of kernel or ramdisk will avoid copying
10657# large files to dom0 and fill up /boot/guest.
10658# (integer value)
10659#max_kernel_ramdisk_size=16777216
10660
10661#
10662# Filter for finding the SR to be used to install guest instances on.
10663#
10664# Possible values:
10665#
10666# * To use the Local Storage in default XenServer/XCP installations
10667# set this flag to other-config:i18n-key=local-storage.
10668# * To select an SR with a different matching criteria, you could
10669# set it to other-config:my_favorite_sr=true.
10670# * To fall back on the Default SR, as displayed by XenCenter,
10671# set this flag to: default-sr:true.
10672# (string value)
10673#sr_matching_filter=default-sr:true
10674
10675#
10676# Whether to use sparse_copy for copying data on a resize down.
10677# (False will use standard dd). This speeds up resizes down
10678# considerably since large runs of zeros won't have to be rsynced.
10679# (boolean value)
10680#sparse_copy=true
10681
10682#
10683# Maximum number of retries to unplug VBD.
10684# If set to 0, should try once, no retries.
10685# (integer value)
10686# Minimum value: 0
10687#num_vbd_unplug_retries=10
10688
10689#
10690# Whether or not to download images via Bit Torrent.
10691#
10692# The value for this option must be chosen from the choices listed
10693# here. Configuring a value other than these will default to 'none'.
10694#
10695# Possible values:
10696#
10697# * `all`: will download all images.
10698# * `some`: will only download images that have the image_property
10699# `bittorrent=true`.
10700# * `none`: will turnoff downloading images via Bit Torrent.
10701# (string value)
10702# Allowed values: all, some, none
10703#torrent_images=none
10704
10705#
10706# Name of network to use for booting iPXE ISOs.
10707#
10708# An iPXE ISO is a specially crafted ISO which supports iPXE booting.
10709# This feature gives a means to roll your own image.
10710#
10711# By default this option is not set. Enable this option to
10712# boot an iPXE ISO.
10713#
10714# Related Options:
10715#
10716# * `ipxe_boot_menu_url`
10717# * `ipxe_mkisofs_cmd`
10718# (string value)
10719#ipxe_network_name=<None>
10720
10721#
10722# URL to the iPXE boot menu.
10723#
10724# An iPXE ISO is a specially crafted ISO which supports iPXE booting.
10725# This feature gives a means to roll your own image.
10726#
10727# By default this option is not set. Enable this option to
10728# boot an iPXE ISO.
10729#
10730# Related Options:
10731#
10732# * `ipxe_network_name`
10733# * `ipxe_mkisofs_cmd`
10734# (string value)
10735#ipxe_boot_menu_url=<None>
10736
10737#
10738# Name and optionally path of the tool used for ISO image creation.
10739#
10740# An iPXE ISO is a specially crafted ISO which supports iPXE booting.
10741# This feature gives a means to roll your own image.
10742#
10743# Note: By default `mkisofs` is not present in the Dom0, so the
10744# package can either be manually added to Dom0 or include the
10745# `mkisofs` binary in the image itself.
10746#
10747# Related Options:
10748#
10749# * `ipxe_network_name`
10750# * `ipxe_boot_menu_url`
10751# (string value)
10752#ipxe_mkisofs_cmd=mkisofs
10753
10754#
10755# URL for connection to XenServer/Xen Cloud Platform. A special value
10756# of unix://local can be used to connect to the local unix socket.
10757#
10758# Possible values:
10759#
10760# * Any string that represents a URL. The connection_url is
10761# generally the management network IP address of the XenServer.
10762# * This option must be set if you chose the XenServer driver.
10763# (string value)
10764#connection_url=<None>
10765
10766# Username for connection to XenServer/Xen Cloud Platform (string value)
10767#connection_username=root
10768
10769# Password for connection to XenServer/Xen Cloud Platform (string value)
10770#connection_password=<None>
10771
10772#
10773# The interval used for polling of coalescing vhds.
10774#
10775# This is the interval after which the task of coalesce VHD is
10776# performed, until it reaches the max attempts that is set by
10777# vhd_coalesce_max_attempts.
10778#
10779# Related options:
10780#
10781# * `vhd_coalesce_max_attempts`
10782# (floating point value)
10783# Minimum value: 0
10784#vhd_coalesce_poll_interval=5.0
10785
10786#
10787# Ensure compute service is running on host XenAPI connects to.
10788# This option must be set to false if the 'independent_compute'
10789# option is set to true.
10790#
10791# Possible values:
10792#
10793# * Setting this option to true will make sure that compute service
10794# is running on the same host that is specified by connection_url.
10795# * Setting this option to false, doesn't perform the check.
10796#
10797# Related options:
10798#
10799# * `independent_compute`
10800# (boolean value)
10801#check_host=true
10802
10803#
10804# Max number of times to poll for VHD to coalesce.
10805#
10806# This option determines the maximum number of attempts that can be
10807# made for coalescing the VHD before giving up.
10808#
10809# Related opitons:
10810#
10811# * `vhd_coalesce_poll_interval`
10812# (integer value)
10813# Minimum value: 0
10814#vhd_coalesce_max_attempts=20
10815
10816# Base path to the storage repository on the XenServer host. (string value)
10817#sr_base_path=/var/run/sr-mount
10818
10819#
10820# The iSCSI Target Host.
10821#
10822# This option represents the hostname or ip of the iSCSI Target.
10823# If the target host is not present in the connection information from
10824# the volume provider then the value from this option is taken.
10825#
10826# Possible values:
10827#
10828# * Any string that represents hostname/ip of Target.
10829# (string value)
10830#target_host=<None>
10831
10832#
10833# The iSCSI Target Port.
10834#
10835# This option represents the port of the iSCSI Target. If the
10836# target port is not present in the connection information from the
10837# volume provider then the value from this option is taken.
10838# (port value)
10839# Minimum value: 0
10840# Maximum value: 65535
10841#target_port=3260
10842
10843# DEPRECATED:
10844# Used to enable the remapping of VBD dev.
10845# (Works around an issue in Ubuntu Maverick)
10846# (boolean value)
10847# This option is deprecated for removal since 15.0.0.
10848# Its value may be silently ignored in the future.
10849# Reason:
10850# This option provided a workaround for issues in Ubuntu Maverick, which
10851# was released in April 2010 and was dropped from support in April 2012.
10852# There's no reason to continue supporting this option.
10853#remap_vbd_dev=false
10854
10855#
10856# Specify prefix to remap VBD dev to (ex. /dev/xvdb -> /dev/sdb).
10857#
10858# Related options:
10859#
10860# * If `remap_vbd_dev` is set to False this option has no impact.
10861# (string value)
10862#remap_vbd_dev_prefix=sd
10863
10864#
10865# Used to prevent attempts to attach VBDs locally, so Nova can
10866# be run in a VM on a different host.
10867#
10868# Related options:
10869#
10870# * ``CONF.flat_injected`` (Must be False)
10871# * ``CONF.xenserver.check_host`` (Must be False)
10872# * ``CONF.default_ephemeral_format`` (Must be unset or 'ext3')
10873# * Joining host aggregates (will error if attempted)
10874# * Swap disks for Windows VMs (will error if attempted)
10875# * Nova-based auto_configure_disk (will error if attempted)
10876# (boolean value)
10877#independent_compute=false
10878
10879#
10880# Wait time for instances to go to running state.
10881#
10882# Provide an integer value representing time in seconds to set the
10883# wait time for an instance to go to running state.
10884#
10885# When a request to create an instance is received by nova-api and
10886# communicated to nova-compute, the creation of the instance occurs
10887# through interaction with Xen via XenAPI in the compute node. Once
10888# the node on which the instance(s) are to be launched is decided by
10889# nova-schedule and the launch is triggered, a certain amount of wait
10890# time is involved until the instance(s) can become available and
10891# 'running'. This wait time is defined by running_timeout. If the
10892# instances do not go to running state within this specified wait
10893# time, the launch expires and the instance(s) are set to 'error'
10894# state.
10895# (integer value)
10896# Minimum value: 0
10897#running_timeout=60
10898
10899# DEPRECATED:
10900# The XenAPI VIF driver using XenServer Network APIs.
10901#
10902# Provide a string value representing the VIF XenAPI vif driver to use for
10903# plugging virtual network interfaces.
10904#
10905# Xen configuration uses bridging within the backend domain to allow
10906# all VMs to appear on the network as individual hosts. Bridge
10907# interfaces are used to create a XenServer VLAN network in which
10908# the VIFs for the VM instances are plugged. If no VIF bridge driver
10909# is plugged, the bridge is not made available. This configuration
10910# option takes in a value for the VIF driver.
10911#
10912# Possible values:
10913#
10914# * nova.virt.xenapi.vif.XenAPIOpenVswitchDriver (default)
10915# * nova.virt.xenapi.vif.XenAPIBridgeDriver (deprecated)
10916#
10917# Related options:
10918#
10919# * ``vlan_interface``
10920# * ``ovs_integration_bridge``
10921# (string value)
10922# This option is deprecated for removal since 15.0.0.
10923# Its value may be silently ignored in the future.
10924# Reason:
10925# There are only two in-tree vif drivers for XenServer. XenAPIBridgeDriver is
10926# for
10927# nova-network which is deprecated and XenAPIOpenVswitchDriver is for Neutron
10928# which is the default configuration for Nova since the 15.0.0 Ocata release. In
10929# the future the "use_neutron" configuration option will be used to determine
10930# which vif driver to use.
10931#vif_driver=nova.virt.xenapi.vif.XenAPIOpenVswitchDriver
10932
10933#
10934# Dom0 plugin driver used to handle image uploads.
10935#
10936# Provide a string value representing a plugin driver required to
10937# handle the image uploading to GlanceStore.
10938#
10939# Images, and snapshots from XenServer need to be uploaded to the data
10940# store for use. image_upload_handler takes in a value for the Dom0
10941# plugin driver. This driver is then called to uplaod images to the
10942# GlanceStore.
10943# (string value)
10944#image_upload_handler=nova.virt.xenapi.image.glance.GlanceStore
10945
10946#
10947# Number of seconds to wait for SR to settle if the VDI
10948# does not exist when first introduced.
10949#
10950# Some SRs, particularly iSCSI connections are slow to see the VDIs
10951# right after they got introduced. Setting this option to a
10952# time interval will make the SR to wait for that time period
10953# before raising VDI not found exception.
10954# (integer value)
10955# Minimum value: 0
10956#introduce_vdi_retry_wait=20
10957
10958#
10959# The name of the integration Bridge that is used with xenapi
10960# when connecting with Open vSwitch.
10961#
10962# Note: The value of this config option is dependent on the
10963# environment, therefore this configuration value must be set
10964# accordingly if you are using XenAPI.
10965#
10966# Possible values:
10967#
10968# * Any string that represents a bridge name.
10969# (string value)
10970#ovs_integration_bridge=<None>
10971
10972#
10973# When adding new host to a pool, this will append a --force flag to the
10974# command, forcing hosts to join a pool, even if they have different CPUs.
10975#
10976# Since XenServer version 5.6 it is possible to create a pool of hosts that have
10977# different CPU capabilities. To accommodate CPU differences, XenServer limited
10978# features it uses to determine CPU compatibility to only the ones that are
10979# exposed by CPU and support for CPU masking was added.
10980# Despite this effort to level differences between CPUs, it is still possible
10981# that adding new host will fail, thus option to force join was introduced.
10982# (boolean value)
10983#use_join_force=true
10984
10985#
10986# Publicly visible name for this console host.
10987#
10988# Possible values:
10989#
10990# * A string representing a valid hostname
10991# (string value)
10992# Deprecated group/name - [DEFAULT]/console_public_hostname
10993#console_public_hostname=lcy01-22
10994
10995
10996[xvp]
10997#
10998# Configuration options for XVP.
10999#
11000# xvp (Xen VNC Proxy) is a proxy server providing password-protected VNC-based
11001# access to the consoles of virtual machines hosted on Citrix XenServer.
11002
11003#
11004# From nova.conf
11005#
11006
11007# XVP conf template (string value)
11008# Deprecated group/name - [DEFAULT]/console_xvp_conf_template
11009#console_xvp_conf_template=$pybasedir/nova/console/xvp.conf.template
11010
11011# Generated XVP conf file (string value)
11012# Deprecated group/name - [DEFAULT]/console_xvp_conf
11013#console_xvp_conf=/etc/xvp.conf
11014
11015# XVP master process pid file (string value)
11016# Deprecated group/name - [DEFAULT]/console_xvp_pid
11017#console_xvp_pid=/var/run/xvp.pid
11018
11019# XVP log file (string value)
11020# Deprecated group/name - [DEFAULT]/console_xvp_log
11021#console_xvp_log=/var/log/xvp.log
11022
11023# Port for XVP to multiplex VNC connections on (port value)
11024# Minimum value: 0
11025# Maximum value: 65535
11026# Deprecated group/name - [DEFAULT]/console_xvp_multiplex_port
11027#console_xvp_multiplex_port=5900
Oleksandr Bryndziife715df2019-04-23 15:34:42 +030011028
11029{%- if compute.configmap is defined %}
11030{%- set _data = compute.configmap %}
11031{%- include "oslo_templates/files/configmap/configmap.conf" %}
11032{%- endif %}