openstack-manuals/doc/install-guide/basic-install-files/basic-install_controller-nova.xml
Andreas Jaeger ac79160304 Move nova.conf/neutron.conf database configuration variables to [database] section
Commit https://review.openstack.org/34671 introduced for nova.conf:
"The database configuration variables are now in a new section
 [database]."

This change is also needed for the neutron files.

Change-Id: I3dcc46c163560e6ca277d421acf87a75683fa83d
Partial-Bug: #1205060
2013-09-17 21:50:08 +02:00

224 lines
10 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
xml:id="basic-install_controller-nova">
<title>OpenStack Compute Service (Cloud Controller services)</title>
<para>The OpenStack Compute service provides the cloud environment with the ability to manage the scheduling,
creation and deletion of virtual machines (instances).
<orderedlist>
<listitem>
<para>Install the OpenStack Compute packages:
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install nova-api nova-cert nova-common nova-conductor \
nova-scheduler python-nova python-novaclient nova-consoleauth novnc \
nova-novncproxy</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>yum install openstack-nova-api openstack-nova-scheduler \
openstack-nova-cert openstack-nova-console openstack-nova-doc \
genisoimage openstack-dashboard openstack-nova-novncproxy \
openstack-nova-conductor novnc</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install openstack-nova-api openstack-nova-scheduler \
openstack-nova-cert openstack-nova-conductor openstack-nova-console \
openstack-nova-consoleauth openstack-nova-doc \
openstack-nova-novncproxy</userinput></screen>
</para>
</listitem>
<listitem>
<para>Configure OpenStack Compute:</para>
<itemizedlist>
<listitem>
<para>Edit <filename>/etc/nova/api-paste.ini</filename>:
<programlisting os="ubuntu;debian" language="ini">admin_tenant_name = service
admin_user = nova
admin_password = password</programlisting>
<programlisting os="centos;rhel;fedora" language="ini">[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
admin_tenant_name = service
admin_user = nova
admin_password = password
# Workaround for https://bugs.launchpad.net/nova/+bug/1154809
auth_version = v2.0</programlisting>
<programlisting os="opensuse" language="ini">admin_tenant_name = service
admin_user = nova
admin_password = password</programlisting>
</para>
</listitem>
<listitem>
<para>Add the following to the <filename>/etc/nova/nova.conf</filename> file. This file is
the main configuration file of OpenStack Compute. There is a large amount of configuration options
that can go in this file. This guide illustrates the minimum needed for a simple environment.
Note that the <filename>nova.conf</filename> file supplied by your distribution has some options already set. Leave
them as-is.
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
my_ip=10.10.10.10
rabbit_password=password
auth_strategy=keystone
# Networking
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.10.10.10:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
# Metadata
neutron_metadata_proxy_shared_secret=password
service_neutron_metadata_proxy=true
metadata_listen = 10.10.10.10
metadata_listen_port = 8775
# Cinder
volume_api_class=nova.volume.cinder.API
# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService
# novnc
novnc_enable=true
novncproxy_port=6080
novncproxy_host=10.0.0.10
vncserver_listen=0.0.0.0</programlisting>
<programlisting os='centos;rhel;fedora' language="ini"># General
verbose = True
qpid_username=guest
qpid_password=guest
rpc_backend = nova.openstack.common.rpc.impl_qpid
# Networking
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.10.10.10:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
# Metadata
neutron_metadata_proxy_shared_secret=password
service_neutron_metadata_proxy=true
metadata_listen = 10.10.10.10
metadata_listen_port = 8775
# Cinder
volume_api_class=nova.volume.cinder.API
# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService
# novnc
novnc_enable=true
novncproxy_port=6080
novncproxy_host=10.0.0.10
vncserver_listen=0.0.0.0
[database]
connection=mysql://nova:password@localhost/nova</programlisting>
<programlisting os="opensuse" language="ini">[DEFAULT]
rabbit_password=password
auth_strategy=keystone
# Networking
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.10.10.10:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
# Metadata
neutron_metadata_proxy_shared_secret=password
service_neutron_metadata_proxy=true
metadata_listen = 10.10.10.10
metadata_listen_port = 8775
# Cinder
volume_api_class=nova.volume.cinder.API
# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService
# novnc
novnc_enable=true
novncproxy_port=6080
novncproxy_host=10.0.0.10
vncserver_listen=0.0.0.0
[database]
connection=mysql://nova:password@localhost/nova</programlisting>
</para>
</listitem>
<listitem>
<para>Create the OpenStack Compute tables in the database:
<screen><prompt>#</prompt> <userinput>nova-manage db sync</userinput></screen></para>
</listitem>
<listitem>
<para>Restart OpenStack Compute services:
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service nova-api restart</userinput>
<prompt>#</prompt> <userinput>service nova-cert restart</userinput>
<prompt>#</prompt> <userinput>service nova-consoleauth restart</userinput>
<prompt>#</prompt> <userinput>service nova-scheduler restart</userinput>
<prompt>#</prompt> <userinput>service nova-conductor restart</userinput>
<prompt>#</prompt> <userinput>service nova-novncproxy restart</userinput></screen>
<screen os='centos;rhel;fedora'><prompt>#</prompt> <userinput>service openstack-nova-api restart</userinput>
<prompt>#</prompt> <userinput>service openstack-nova-cert restart</userinput>
<prompt>#</prompt> <userinput>service openstack-nova-consoleauth restart</userinput>
<prompt>#</prompt> <userinput>service openstack-nova-scheduler restart</userinput>
<prompt>#</prompt> <userinput>service openstack-nova-conductor restart</userinput>
<prompt>#</prompt> <userinput>service openstack-nova-novncproxy restart</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-nova-api on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-nova-cert on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-nova-consoleauth on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-nova-scheduler on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-nova-conductor on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-nova-novncproxy on</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl restart openstack-nova-api.service</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-nova-cert.service</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-nova-consoleauth.service</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-nova-scheduler.service</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-nova-conductor.service</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-nova-novncproxy.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-nova-api.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-nova-cert.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-nova-consoleauth.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-nova-scheduler.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-nova-conductor.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-nova-novncproxy.service</userinput></screen>
<note>
<para>Check the <literal>/var/log/nova/nova-*</literal> files for any errors
that would prevent the Compute Service from successfully starting.</para>
</note>
</para>
</listitem>
</itemizedlist>
</listitem>
</orderedlist>
</para>
</section>