a13b49319e
flat_interface and public_interface don't necessarily have to be defined when using FlatDHCP. If you have multiple networks, each with their own bridge, you can leave these settings undefined. Change-Id: I467cf0d40a99d82d63519b8761e2915487e2bb48
74 lines
3.9 KiB
XML
74 lines
3.9 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="nova-networking-compute-node">
|
|
<title>Configure compute node</title>
|
|
<para>This section covers deployment of a simple
|
|
<glossterm>flat network</glossterm> that provides IP addresses to your
|
|
instances via <glossterm>DHCP</glossterm>. If your environment includes
|
|
multiple compute nodes, the <glossterm>multi-host</glossterm> feature
|
|
provides redundancy by spreading network functions across compute
|
|
nodes.</para>
|
|
<procedure>
|
|
<title>To install legacy networking components</title>
|
|
<step>
|
|
<screen os="ubuntu"><prompt>#</prompt> <userinput>apt-get install nova-network nova-api-metadata</userinput></screen>
|
|
<screen os="debian"><prompt>#</prompt> <userinput>apt-get install nova-network nova-api</userinput></screen>
|
|
<screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>yum install openstack-nova-network openstack-nova-api</userinput></screen>
|
|
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>zypper install openstack-nova-network openstack-nova-api</userinput></screen>
|
|
</step>
|
|
</procedure>
|
|
<procedure>
|
|
<title>To configure legacy networking</title>
|
|
<step>
|
|
<para>Edit the <filename>/etc/nova/nova.conf</filename> file and
|
|
complete the following actions:</para>
|
|
<substeps>
|
|
<step>
|
|
<para>In the <literal>[DEFAULT]</literal> section, configure
|
|
the network parameters:</para>
|
|
<programlisting language="ini">[DEFAULT]
|
|
...
|
|
network_api_class = nova.network.api.API
|
|
security_group_api = nova
|
|
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
|
|
network_manager = nova.network.manager.FlatDHCPManager
|
|
network_size = 254
|
|
allow_same_net_traffic = False
|
|
multi_host = True
|
|
send_arp_for_ha = True
|
|
share_dhcp_address = True
|
|
force_dhcp_release = True
|
|
flat_network_bridge = br100
|
|
flat_interface = <replaceable>INTERFACE_NAME</replaceable>
|
|
public_interface = <replaceable>INTERFACE_NAME</replaceable></programlisting>
|
|
<para>Replace <replaceable>INTERFACE_NAME</replaceable> with the
|
|
actual interface name for the external network. For example,
|
|
<emphasis>eth1</emphasis> or <emphasis>ens224</emphasis>. You can
|
|
also leave these two parameters undefined if you are serving multiple
|
|
networks with individual bridges for each.</para>
|
|
</step>
|
|
</substeps>
|
|
</step>
|
|
<step>
|
|
<para os="ubuntu;debian">Restart the services:</para>
|
|
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service nova-network restart</userinput>
|
|
<prompt>#</prompt> <userinput>service nova-api-metadata restart</userinput></screen>
|
|
<para os="rhel;centos;fedora;sles;opensuse">Start the services and
|
|
configure them to start when the system boots:</para>
|
|
<screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>systemctl enable openstack-nova-network.service openstack-nova-metadata-api.service</userinput>
|
|
<prompt>#</prompt> <userinput>systemctl start openstack-nova-network.service openstack-nova-metadata-api.service</userinput></screen>
|
|
<para os="sles">On SLES:</para>
|
|
<screen os="sles"><prompt>#</prompt> <userinput>service openstack-nova-network start</userinput>
|
|
<prompt>#</prompt> <userinput>service openstack-nova-api-metadata start</userinput>
|
|
<prompt>#</prompt> <userinput>chkconfig openstack-nova-network on</userinput>
|
|
<prompt>#</prompt> <userinput>chkconfig openstack-nova-api-metadata on</userinput></screen>
|
|
<para os="opensuse">On openSUSE:</para>
|
|
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl enable openstack-nova-network.service openstack-nova-metadata-api.service</userinput>
|
|
<prompt>#</prompt> <userinput>systemctl start openstack-nova-network.service penstack-nova-metadata-api.service</userinput></screen>
|
|
</step>
|
|
</procedure>
|
|
</section>
|