openstack-manuals/doc/install-guide/basic-install-files/basic-install_network-services.xml
Diane Fleming 64b6c9261e Folder rename, file rename, flattening of directories
Current folder name	New folder name	        Book title
----------------------------------------------------------
basic-install 	        DELETE
cli-guide	        DELETE
common	                common
NEW	                admin-guide-cloud	Cloud Administrators Guide
docbkx-example	        DELETE
openstack-block-storage-admin 	DELETE
openstack-compute-admin 	DELETE
openstack-config 	config-reference	OpenStack Configuration Reference
openstack-ha 	        high-availability-guide	OpenStack High Availabilty Guide
openstack-image	        image-guide	OpenStack Virtual Machine Image Guide
openstack-install 	install-guide	OpenStack Installation Guide
openstack-network-connectivity-admin 	admin-guide-network 	OpenStack Networking Administration Guide
openstack-object-storage-admin 	DELETE
openstack-security 	security-guide	OpenStack Security Guide
openstack-training 	training-guide	OpenStack Training Guide
openstack-user 	        user-guide	OpenStack End User Guide
openstack-user-admin 	user-guide-admin	OpenStack Admin User Guide
glossary	        NEW        	OpenStack Glossary

bug: #1220407

Change-Id: Id5ffc774b966ba7b9a591743a877aa10ab3094c7
author: diane fleming
2013-09-08 15:15:50 -07:00

225 lines
11 KiB
XML
Executable File

<?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_network-services">
<title>OpenStack Networking (Network Controller)</title>
<section xml:id="network-ovs">
<title>Open vSwitch</title>
<procedure>
<title>To configure Open vSwitch</title><step>
<para>Install the packages:</para>
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install neutron-plugin-openvswitch-agent \
neutron-dhcp-agent neutron-l3-agent</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>yum install openstack-neutron openstack-neutron-openvswitch\
openvswitch-switch</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install openstack-neutron openstack-neutron-openvswitch-agent \
openvswitch-switch</userinput></screen>
<para os="centos;rhel;fedora">In Fedora, the Open
vSwitch kernel module is compiled without tunnel
support. If you need gre tunnels and network
namespaces, you must recompile this package from
source. For information, see the Open vSwitch
site. If you recompile the kernel module, you must
remove and delete the existing one.</para>
</step>
<step>
<para>Start Open vSwitch:</para>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>service openvswitch-switch start</userinput>
<prompt>#</prompt> <userinput>chkconfig openvswitch-switch on</userinput></screen>
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service openvswitch-switch start</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl start openvswitch-switch.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openvswitch-switch.service</userinput></screen>
</step>
<step>
<para>Create an internal and external network bridge.
</para><note><para>The introduction in this guide describes the
purposes of these bridges.</para></note>
<screen><prompt>#</prompt> <userinput>ovs-vsctl add-br br-ex</userinput>
<prompt>#</prompt> <userinput>ovs-vsctl add-port br-ex eth1</userinput>
<prompt>#</prompt> <userinput>ovs-vsctl add-br br-int</userinput></screen>
</step>
<step>
<para>To configure the bridges, complete the
following steps:</para>
<substeps>
<step os="ubuntu;debian">
<para>Change the <literal>eth1</literal>
entry in <filename>
/etc/network/interfaces</filename>, as
follows:</para>
<programlisting>auto eth1
iface eth1 inet manual
up ip address add 0/0 dev $IFACE
up ip link set $IFACE up
down ip link set $IFACE down</programlisting>
</step>
<step os="ubuntu;debian">
<para>Add <literal>br-ex</literal> to
<filename>/etc/network/interfaces</filename>,
as follows:</para>
<programlisting>auto br-ex
iface br-ex inet static
address 10.0.0.9
netmask 255.255.255.0
gateway 10.0.0.1</programlisting>
</step>
<step os="centos;rhel;fedora">
<para>Edit
<filename>/etc/sysconf/network-scripts/ifcfg-eth1</filename>,
as follows:</para>
<programlisting># External
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=br-ex
ONBOOT=yes</programlisting>
</step>
<step os="centos;rhel;fedora">
<para>Edit
<filename>/etc/sysconf/network-scripts/ifcfg-br-ex</filename>,
as follows:</para>
<programlisting>#Public Bridge
DEVICE=br-ex
TYPE=Bridge
BOOTPROTO=static
IPADDR=10.10.10.9
NETMASK=255.255.255.0
NM_CONTROLLED=no
ONBOOT=yes</programlisting>
</step>
<step>
<para>Remove the IP address from
<literal>eth1</literal> add it to
<literal>br-ex</literal>, as
follows:</para>
<screen><prompt>#</prompt> <userinput>ip addr del 10.0.0.9/24 dev eth1</userinput>
<prompt>#</prompt> <userinput>ip addr add 10.0.0.9/24 dev br-ex</userinput></screen></step>
<step os="ubuntu;debian">
<para>Restart networking, as
follows:</para>
<screen><prompt>#</prompt> <userinput>service networking restart</userinput></screen>
</step>
</substeps>
</step>
<step>
<para>Enable a simple NAT service so that
Compute nodes can access the Internet through the
Cloud Controller:</para>
<screen><prompt>#</prompt> <userinput>iptables -A FORWARD -i eth0 -o br-ex -s 10.10.10.0/24 -m conntrack \
--ctstate NEW -j ACCEPT</userinput>
<prompt>#</prompt> <userinput>iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT</userinput>
<prompt>#</prompt> <userinput>iptables -A POSTROUTING -s 10.10.10.0/24 -t nat -j MASQUERADE</userinput></screen>
<note><para>These rules are lost on reboot. To save or restore the rules, use an appropriate tool from your
distribution to save and restore them.</para></note>
</step>
</procedure>
</section>
<section xml:id="network-neutron">
<title>OpenStack Networking</title>
<procedure><title>To configure the OpenStack Networking services</title>
<step>
<para>Edit
<filename>/etc/neutron/neutron.conf</filename>,
as follows:
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
verbose = True
rabbit_password = password
rabbit_host = 10.10.10.10
[keystone_authtoken]
auth_host = 10.10.10.10
admin_tenant_name = service
admin_user = neutron
admin_password = password</programlisting><programlisting os="centos;rhel;fedora" language="ini">[DEFAULT]
verbose = True
rpc_backend = cinder.openstack.common.rpc.impl_qpid
sql_connection = mysql://cinder:password@localhost/cinder
qpid_user = guest
qpid_password = quest
[keystone_authtoken]
auth_host = 10.10.10.10
admin_tenant_name = service
admin_user = neutron
admin_password = password</programlisting><programlisting os="opensuse" language="ini">[DEFAULT]
verbose = True
rabbit_password = password
rabbit_host = 10.10.10.10
[keystone_authtoken]
auth_host = 10.10.10.10
admin_tenant_name = service
admin_user = neutron
admin_password = password</programlisting></para>
</step>
<step>
<para>Edit
<filename>/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini</filename>,
as follows: <programlisting language="ini">[database]
sql_connection = mysql://neutron:password@10.10.10.10/neutron
[ovs]
tenant_network_type = gre
tunnel_id_ranges = 1:1000
enable_tunneling = True
local_ip = 10.10.10.9
[securitygroup]
firewall_driver = \
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver</programlisting>
<note xmlns:db="http://docbook.org/ns/docbook">
<para>Choose <emphasis role="bold">tunnel
mode</emphasis> because you do not
have to configure your physical switches
for VLANs.</para>
</note></para>
</step>
<step>
<para>Edit
<filename>/etc/neutron/dhcp_agent.ini</filename>,
as follows:
<programlisting language="ini">[DEFAULT]
enable_isolated_metadata = True
enable_metadata_network = True</programlisting></para>
</step>
<step>
<para>Edit
<filename>/etc/neutron/metadata_agent.ini</filename>,
as follows:
<programlisting language="ini">[DEFAULT]
auth_url = http://10.10.10.10:35357/v2.0
auth_region = RegionOne
admin_tenant_name = service
admin_user = neutron
admin_password = password
nova_metadata_ip = 10.10.10.10
metadata_proxy_shared_secret = password</programlisting></para>
</step>
<step><para>Start the services, as follows:</para>
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service neutron-plugin-openvswitch-agent start</userinput>
<prompt>#</prompt> <userinput>service neutron-dhcp-agent restart</userinput>
<prompt>#</prompt> <userinput>service neutron-metadata-agent restart</userinput>
<prompt>#</prompt> <userinput>service neutron-l3-agent restart</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>service neutron-server restart</userinput>
<prompt>#</prompt> <userinput>service neutron-openvswitch-agent restart</userinput>
<prompt>#</prompt> <userinput>service neutron-dhcp-agent restart</userinput>
<prompt>#</prompt> <userinput>service neutron-l3-agent restart</userinput>
<prompt>#</prompt> <userinput>chkconfig neutron-server on</userinput>
<prompt>#</prompt> <userinput>chkconfig neutron-openvswitch-agent on</userinput>
<prompt>#</prompt> <userinput>chkconfig neutron-dhcp-agent on</userinput>
<prompt>#</prompt> <userinput>chkconfig neutron-l3-agent on</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl restart neutron-server</userinput>
<prompt>#</prompt> <userinput>systemctl restart neutron-openvswitch-agent</userinput>
<prompt>#</prompt> <userinput>systemctl restart neutron-dhcp-agent</userinput>
<prompt>#</prompt> <userinput>systemctl restart neutron-l3-agent</userinput>
<prompt>#</prompt> <userinput>systemctl enable neutron-server</userinput>
<prompt>#</prompt> <userinput>systemctl enable neutron-openvswitch-agent</userinput>
<prompt>#</prompt> <userinput>systemctl enable neutron-dhcp-agent</userinput>
<prompt>#</prompt> <userinput>systemctl enable neutron-l3-agent</userinput></screen>
<note>
<para>To debug errors that prevent the Networking Service from
starting, review the
<filename>/var/log/neutron/*.log</filename>
files.</para>
</note></step>
</procedure>
</section>
</section>