Update outdated nova-conf-sample
The sample uses lot of deprecated options, update this with a usable one. Change-Id: Ic11ddb5ac780430cbc2af3e80956daaca0219827
This commit is contained in:
parent
e11b15ad19
commit
add2745e07
@ -12,13 +12,18 @@ Small, private cloud
|
|||||||
|
|
||||||
This example ``nova.conf`` file configures a small private cloud
|
This example ``nova.conf`` file configures a small private cloud
|
||||||
with cloud controller services, database server, and messaging
|
with cloud controller services, database server, and messaging
|
||||||
server on the same server. In this case, ``CONTROLLER_IP`` represents
|
server on the same server.
|
||||||
the IP address of a central server, ``BRIDGE_INTERFACE`` represents
|
In this case,
|
||||||
the bridge such as br100, the ``NETWORK_INTERFACE`` represents an
|
``CONTROLLER_IP`` represents the IP address of a central server.
|
||||||
interface to your VLAN setup, and passwords are represented as
|
And passwords are represented as:
|
||||||
``DB_PASSWORD_COMPUTE`` for your Compute (nova) database password,
|
``NOVA_DATABASE_PASSWD`` for your Compute (nova) database password,
|
||||||
and ``RABBIT PASSWORD`` represents the password to your message
|
``NOVA_API_DATABASE_PASSWD`` for your Compute (nova) API database
|
||||||
queue installation.
|
password,
|
||||||
|
``RABBIT_PASSWD`` represents the password to your message queue
|
||||||
|
installation,
|
||||||
|
``NOVA_PASSWORD`` for your Compute (nova) service password,
|
||||||
|
``NEUTRON_PASSWORD`` for your Networking (neutron) service password,
|
||||||
|
and ``METADATA_SECRET_KEY`` for your neutron metadata service secret key.
|
||||||
|
|
||||||
.. literalinclude:: nova.conf
|
.. literalinclude:: nova.conf
|
||||||
:language: ini
|
:language: ini
|
||||||
|
@ -1,74 +1,100 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
|
|
||||||
# LOGS/STATE
|
# LOGS/STATE
|
||||||
logdir=/var/log/nova
|
log_dir = /var/log/kolla/nova
|
||||||
state_path=/var/lib/nova
|
use_forwarded_for = true
|
||||||
lock_path=/var/lock/nova
|
state_path = /var/lib/nova
|
||||||
rootwrap_config=/etc/nova/rootwrap.conf
|
|
||||||
|
|
||||||
# SCHEDULER
|
|
||||||
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
|
|
||||||
|
|
||||||
# VOLUMES
|
|
||||||
# configured in cinder.conf
|
|
||||||
|
|
||||||
# COMPUTE
|
# COMPUTE
|
||||||
compute_driver=libvirt.LibvirtDriver
|
api_paste_config = /etc/nova/api-paste.ini
|
||||||
instance_name_template=instance-%08x
|
compute_driver = libvirt.LibvirtDriver
|
||||||
api_paste_config=/etc/nova/api-paste.ini
|
osapi_compute_listen = CONTROLLER_IP
|
||||||
|
osapi_compute_listen_port = 8774
|
||||||
|
osapi_compute_workers = 5
|
||||||
|
scheduler_max_attempts = 10
|
||||||
|
|
||||||
# COMPUTE/APIS: if you have separate configs for separate services
|
# COMPUTE/APIS: if you have separate configs for separate services
|
||||||
# this flag is required for both nova-api and nova-compute
|
# this flag is required for both nova-api and nova-compute
|
||||||
allow_resize_to_same_host=True
|
allow_resize_to_same_host = true
|
||||||
|
|
||||||
# APIS
|
# METADATA
|
||||||
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
|
metadata_workers = 5
|
||||||
ec2_dmz_host=192.168.206.130
|
metadata_listen = CONTROLLER_IP
|
||||||
s3_host=192.168.206.130
|
metadata_listen_port = 8775
|
||||||
|
|
||||||
# RABBITMQ
|
|
||||||
rabbit_host=192.168.206.130
|
|
||||||
|
|
||||||
# GLANCE
|
|
||||||
image_service=nova.image.glance.GlanceImageService
|
|
||||||
|
|
||||||
# NETWORK
|
# NETWORK
|
||||||
network_manager=nova.network.manager.FlatDHCPManager
|
use_neutron = True
|
||||||
force_dhcp_release=True
|
firewall_driver = nova.virt.firewall.NoopFirewallDriver
|
||||||
dhcpbridge_flagfile=/etc/nova/nova.conf
|
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
|
||||||
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
|
my_ip = CONTROLLER_IP
|
||||||
# Change my_ip to match each host
|
|
||||||
my_ip=192.168.206.130
|
# RABBITMQ
|
||||||
public_interface=eth0
|
transport_url = rabbit://openstack:RABBIT_PASSWD@CONTROLLER_IP:5672
|
||||||
vlan_interface=eth0
|
|
||||||
flat_network_bridge=br100
|
[conductor]
|
||||||
flat_interface=eth0
|
workers = 5
|
||||||
|
|
||||||
# NOVNC CONSOLE
|
# NOVNC CONSOLE
|
||||||
novncproxy_base_url=http://192.168.206.130:6080/vnc_auto.html
|
[vnc]
|
||||||
# Change vncserver_proxyclient_address and vncserver_listen to match each compute host
|
novncproxy_host = CONTROLLER_IP
|
||||||
vncserver_proxyclient_address=192.168.206.130
|
novncproxy_port = 6080
|
||||||
vncserver_listen=192.168.206.130
|
vncserver_listen = CONTROLLER_IP
|
||||||
|
vncserver_proxyclient_address = CONTROLLER_IP
|
||||||
|
novncproxy_base_url = http://CONTROLLER_IP:6080/vnc_auto.html
|
||||||
|
|
||||||
# AUTHENTICATION
|
[oslo_concurrency]
|
||||||
auth_strategy=keystone
|
lock_path = /var/lib/nova/tmp
|
||||||
[keystone_authtoken]
|
|
||||||
auth_host = 127.0.0.1
|
|
||||||
auth_port = 35357
|
|
||||||
auth_protocol = http
|
|
||||||
admin_tenant_name = service
|
|
||||||
admin_user = nova
|
|
||||||
admin_password = nova
|
|
||||||
signing_dirname = /tmp/keystone-signing-nova
|
|
||||||
|
|
||||||
# GLANCE
|
# GLANCE
|
||||||
[glance]
|
[glance]
|
||||||
api_servers=192.168.206.130:9292
|
api_servers = http://CONTROLLER_IP:9292
|
||||||
|
num_retries = 1
|
||||||
|
|
||||||
|
# NEUTRON
|
||||||
|
[neutron]
|
||||||
|
url = http://CONTROLLER_IP:9696
|
||||||
|
metadata_proxy_shared_secret = METADATA_SECRET_KEY
|
||||||
|
service_metadata_proxy = true
|
||||||
|
auth_url = http://CONTROLLER_IP:35357/v3
|
||||||
|
auth_type = password
|
||||||
|
project_domain_name = default
|
||||||
|
user_domain_id = default
|
||||||
|
project_name = service
|
||||||
|
username = neutron
|
||||||
|
password = NEUTRON_PASSWORD
|
||||||
|
|
||||||
# DATABASE
|
# DATABASE
|
||||||
[database]
|
[database]
|
||||||
connection=mysql+pymysql://nova:yourpassword@192.168.206.130/nova
|
connection = mysql+pymysql://nova:NOVA_DATABASE_PASSWD@CONTROLLER_IP:3306/nova
|
||||||
|
max_pool_size = 50
|
||||||
|
max_overflow = 1000
|
||||||
|
max_retries = -1
|
||||||
|
|
||||||
|
# API DATABASE
|
||||||
|
[api_database]
|
||||||
|
connection = mysql+pymysql://nova_api:NOVA_API_DATABASE_PASSWD@CONTROLLER_IP:3306/nova_api
|
||||||
|
max_retries = -1
|
||||||
|
|
||||||
|
# KEYSTONE
|
||||||
|
[keystone_authtoken]
|
||||||
|
auth_uri = http://CONTROLLER_IP:5000
|
||||||
|
auth_url = http://CONTROLLER_IP:35357
|
||||||
|
auth_type = password
|
||||||
|
project_domain_id = default
|
||||||
|
user_domain_id = default
|
||||||
|
project_name = service
|
||||||
|
username = nova
|
||||||
|
password = NOVA_PASSWORD
|
||||||
|
|
||||||
# LIBVIRT
|
# LIBVIRT
|
||||||
[libvirt]
|
[libvirt]
|
||||||
virt_type=qemu
|
connection_uri = "qemu+tcp://CONTROLLER_IP/system"
|
||||||
|
virt_type = qemu
|
||||||
|
|
||||||
|
[upgrade_levels]
|
||||||
|
compute = auto
|
||||||
|
|
||||||
|
[oslo_messaging_notifications]
|
||||||
|
driver = noop
|
||||||
|
|
||||||
|
[privsep_entrypoint]
|
||||||
|
helper_command = sudo nova-rootwrap /etc/nova/rootwrap.conf privsep-helper --config-file /etc/nova/nova.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user