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