0e9136fe1e
It's useful to force instance creations to fail if ephemeral drives are requested when cloud admins want users to use persistent volumes always. Closes-Bug: #1953561 Change-Id: I1c958b4bcf79512c06de6d81fe55c681bb5f38a7
226 lines
6.2 KiB
Plaintext
226 lines
6.2 KiB
Plaintext
# kilo
|
|
###############################################################################
|
|
# [ WARNING ]
|
|
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
###############################################################################
|
|
[DEFAULT]
|
|
verbose={{ verbose }}
|
|
debug={{ debug }}
|
|
dhcpbridge_flagfile=/etc/nova/nova.conf
|
|
dhcpbridge=/usr/bin/nova-dhcpbridge
|
|
logdir=/var/log/nova
|
|
state_path=/var/lib/nova
|
|
force_dhcp_release=True
|
|
iscsi_helper=tgtadm
|
|
libvirt_use_virtio_for_bridges=True
|
|
connection_type=libvirt
|
|
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
|
|
ec2_private_dns_show_ip=True
|
|
api_paste_config=/etc/nova/api-paste.ini
|
|
volumes_path=/var/lib/nova/volumes
|
|
enabled_apis=ec2,osapi_compute,metadata
|
|
auth_strategy=keystone
|
|
compute_driver=libvirt.LibvirtDriver
|
|
use_ipv6 = {{ use_ipv6 }}
|
|
osapi_compute_listen = {{ bind_host }}
|
|
metadata_host = {{ bind_host }}
|
|
s3_listen = {{ bind_host }}
|
|
ec2_listen = {{ bind_host }}
|
|
enable_new_services = {{ enable_new_services }}
|
|
{% if console_access_port and console_access_protocol == 'novnc' -%}
|
|
novncproxy_port = {{ console_access_port }}
|
|
{% endif %}
|
|
{% if console_access_port and console_access_protocol == 'xvpvnc' -%}
|
|
xvpvncproxy_port = {{ console_access_port }}
|
|
{% endif %}
|
|
{% if console_access_port and console_access_protocol == 'spice' -%}
|
|
spicehtml5proxy_port = {{ console_access_port }}
|
|
{% endif %}
|
|
|
|
osapi_compute_workers = {{ workers }}
|
|
ec2_workers = {{ workers }}
|
|
|
|
{% if additional_neutron_filters is defined %}
|
|
scheduler_default_filters = {{ scheduler_default_filters }},{{ additional_neutron_filters }}
|
|
{% else %}
|
|
scheduler_default_filters = {{ scheduler_default_filters }}
|
|
{% endif %}
|
|
{% if pci_alias %}
|
|
pci_alias = {{ pci_alias }}
|
|
{% endif %}
|
|
{% for alias in pci_aliases -%}
|
|
pci_alias = {{ alias }}
|
|
{% endfor -%}
|
|
cpu_allocation_ratio = {{ cpu_allocation_ratio }}
|
|
ram_allocation_ratio = {{ ram_allocation_ratio }}
|
|
disk_allocation_ratio = {{ disk_allocation_ratio }}
|
|
|
|
use_syslog={{ use_syslog }}
|
|
my_ip = {{ host_ip }}
|
|
|
|
{% if quota_instances is not none -%}
|
|
quota_instances = {{ quota_instances }}
|
|
{% endif -%}
|
|
{% if quota_cores is not none -%}
|
|
quota_cores = {{ quota_cores }}
|
|
{% endif -%}
|
|
{% if quota_ram is not none -%}
|
|
quota_ram = {{ quota_ram }}
|
|
{% endif -%}
|
|
{% if quota_metadata_items is not none -%}
|
|
quota_metadata_items = {{ quota_metadata_items }}
|
|
{% endif -%}
|
|
{% if quota_injected_files is not none -%}
|
|
quota_injected_files = {{ quota_injected_files }}
|
|
{% endif -%}
|
|
{% if quota_injected_file_content_bytes is not none -%}
|
|
quota_injected_file_content_bytes = {{ quota_injected_file_content_bytes }}
|
|
{% endif -%}
|
|
{% if quota_injected_file_path_length is not none -%}
|
|
quota_injected_file_path_length = {{ quota_injected_file_path_length }}
|
|
{% endif -%}
|
|
{% if quota_key_pairs is not none -%}
|
|
quota_key_pairs = {{ quota_key_pairs }}
|
|
{% endif -%}
|
|
{% if quota_server_groups is not none -%}
|
|
quota_server_groups = {{ quota_server_groups }}
|
|
{% endif -%}
|
|
{% if quota_server_group_members is not none -%}
|
|
quota_server_group_members = {{ quota_server_group_members }}
|
|
{% endif -%}
|
|
|
|
{% if memcached_servers %}
|
|
memcached_servers = {{ memcached_servers }}
|
|
{% endif %}
|
|
|
|
{% include "parts/novnc" %}
|
|
|
|
{% if keystone_ec2_url -%}
|
|
keystone_ec2_url = {{ keystone_ec2_url }}
|
|
{% endif -%}
|
|
|
|
{% if max_local_block_devices is not none -%}
|
|
max_local_block_devices = {{ max_local_block_devices }}
|
|
{% endif -%}
|
|
|
|
{% if rbd_pool -%}
|
|
rbd_pool = {{ rbd_pool }}
|
|
rbd_user = {{ rbd_user }}
|
|
rbd_secret_uuid = {{ rbd_secret_uuid }}
|
|
{% endif -%}
|
|
|
|
{% if neutron_plugin and neutron_plugin in ('ovs', 'midonet') -%}
|
|
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
|
|
libvirt_user_virtio_for_bridges = True
|
|
{% if neutron_security_groups -%}
|
|
security_group_api = {{ network_manager }}
|
|
nova_firewall_driver = nova.virt.firewall.NoopFirewallDriver
|
|
{% endif -%}
|
|
{% if external_network -%}
|
|
default_floating_pool = {{ external_network }}
|
|
{% endif -%}
|
|
{% endif -%}
|
|
|
|
{% if neutron_plugin and neutron_plugin == 'vsp' -%}
|
|
neutron_ovs_bridge = alubr0
|
|
{% endif -%}
|
|
|
|
{% if neutron_plugin and neutron_plugin == 'nvp' -%}
|
|
security_group_api = neutron
|
|
nova_firewall_driver = nova.virt.firewall.NoopFirewallDriver
|
|
{% if external_network -%}
|
|
default_floating_pool = {{ external_network }}
|
|
{% endif -%}
|
|
{% endif -%}
|
|
|
|
{% if neutron_plugin and neutron_plugin == 'Calico' -%}
|
|
security_group_api = neutron
|
|
nova_firewall_driver = nova.virt.firewall.NoopFirewallDriver
|
|
{% endif -%}
|
|
|
|
{% if neutron_plugin and neutron_plugin == 'plumgrid' -%}
|
|
security_group_api=neutron
|
|
firewall_driver = nova.virt.firewall.NoopFirewallDriver
|
|
{% endif -%}
|
|
|
|
{% if network_manager_config -%}
|
|
{% for key, value in network_manager_config.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
|
|
{% if network_manager and network_manager == 'neutron' -%}
|
|
network_api_class = nova.network.neutronv2.api.API
|
|
{% else -%}
|
|
network_manager = nova.network.manager.FlatDHCPManager
|
|
{% endif -%}
|
|
|
|
{% if default_floating_pool -%}
|
|
default_floating_pool = {{ default_floating_pool }}
|
|
{% endif -%}
|
|
|
|
{% if volume_service -%}
|
|
volume_api_class=nova.volume.cinder.API
|
|
{% endif -%}
|
|
|
|
{% if user_config_flags -%}
|
|
{% for key, value in user_config_flags.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
|
|
{% if listen_ports -%}
|
|
{% for key, value in listen_ports.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
|
|
{% if sections and 'DEFAULT' in sections -%}
|
|
{% for key, value in sections['DEFAULT'] -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif %}
|
|
|
|
{% include "section-zeromq" %}
|
|
|
|
{% include "parts/database-v2" %}
|
|
|
|
{% if glance_api_servers -%}
|
|
[glance]
|
|
api_servers = {{ glance_api_servers }}
|
|
{% endif -%}
|
|
|
|
{% if network_manager and network_manager == 'neutron' -%}
|
|
[neutron]
|
|
url = {{ neutron_url }}
|
|
{% if auth_host -%}
|
|
auth_strategy = keystone
|
|
admin_tenant_name = {{ admin_tenant_name }}
|
|
admin_username = {{ admin_user }}
|
|
admin_password = {{ admin_password }}
|
|
admin_auth_url = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}/v2.0
|
|
{% endif -%}
|
|
{% endif -%}
|
|
|
|
{% include "section-keystone-authtoken-legacy" %}
|
|
|
|
{% include "parts/section-cinder" %}
|
|
|
|
[osapi_v3]
|
|
enabled=True
|
|
|
|
{% include "parts/cell" %}
|
|
|
|
[conductor]
|
|
workers = {{ workers }}
|
|
|
|
{% include "section-rabbitmq-oslo" %}
|
|
|
|
[oslo_concurrency]
|
|
lock_path=/var/lock/nova
|
|
|
|
[spice]
|
|
{% include "parts/spice" %}
|
|
|
|
{% include "parts/section-serial-console" %}
|