From 677865def5816c233bbe6199e97eee8aaa3cdd7b Mon Sep 17 00:00:00 2001 From: Matt Kassawara Date: Sun, 13 Apr 2014 14:13:18 -0600 Subject: [PATCH] Updated nova networking sections According to bug #1284633, the configuration included with nova packages on SUSE apparently doesn't default to nova-networking. We should avoid implicit configuration assumptions on all distributions and explicitly configure the following keys in nova.conf on the controller and compute nodes for nova-networking: network_api_class = nova.network.api.API security_group_api = nova Prior to this issue, we only included compute node configuration for nova-networking. I added a new section for the controller node to resolve this issue. This patch also includes some minor structural changes and clarifications to conform with other portions of the guide. Change-Id: I8224f32062f279b6032aa06ee0a72ea28f549a4d Closes-Bug: #1284633 --- doc/install-guide/ch_networking.xml | 1 + .../section_nova-networking-compute-node.xml | 77 ++++++++++--------- ...ection_nova-networking-controller-node.xml | 35 +++++++++ 3 files changed, 76 insertions(+), 37 deletions(-) create mode 100644 doc/install-guide/section_nova-networking-controller-node.xml diff --git a/doc/install-guide/ch_networking.xml b/doc/install-guide/ch_networking.xml index 5f9f985657..7115c80236 100644 --- a/doc/install-guide/ch_networking.xml +++ b/doc/install-guide/ch_networking.xml @@ -58,6 +58,7 @@
Legacy networking +
diff --git a/doc/install-guide/section_nova-networking-compute-node.xml b/doc/install-guide/section_nova-networking-compute-node.xml index 2571a9516e..e1b613e20a 100644 --- a/doc/install-guide/section_nova-networking-compute-node.xml +++ b/doc/install-guide/section_nova-networking-compute-node.xml @@ -3,55 +3,60 @@ xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="nova-networking-compute-node"> Configure compute node - Legacy networking only involves compute nodes. This section covers - deployment of a simple flat network that provides - IP addresses to your instances via DHCP. If your - environment includes multiple compute nodes, the - multi-host feature provides redundancy by spreading - network functions across compute nodes. + This section covers deployment of a simple + flat network that provides IP addresses to your + instances via DHCP. If your environment includes + multiple compute nodes, the multi-host feature + provides redundancy by spreading network functions across compute + nodes. - To use legacy networking + To install legacy networking components - Install the packages: # apt-get install nova-network nova-api-metadata # yum install openstack-nova-network openstack-nova-api # zypper install openstack-nova-network openstack-nova-api + + + To configure legacy networking - Configure parameters in the - /etc/nova/nova.conf file: - - - Under the [DEFAULT] section: - # openstack-config --set /etc/nova/nova.conf DEFAULT \ + Run the following commands: + # openstack-config --set /etc/nova/nova.conf DEFAULT \ + network_api_class nova.network.api.API +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + security_group_api nova +# openstack-config --set /etc/nova/nova.conf DEFAULT \ network_manager nova.network.manager.FlatDHCPManager # openstack-config --set /etc/nova/nova.conf DEFAULT \ firewall_driver nova.virt.libvirt.firewall.IptablesFirewallDriver -# openstack-config --set /etc/nova/nova.conf DEFAULT network_size 254 -# openstack-config --set /etc/nova/nova.conf DEFAULT allow_same_net_traffic False -# openstack-config --set /etc/nova/nova.conf DEFAULT multi_host True -# openstack-config --set /etc/nova/nova.conf DEFAULT send_arp_for_ha True -# openstack-config --set /etc/nova/nova.conf DEFAULT share_dhcp_address True -# openstack-config --set /etc/nova/nova.conf DEFAULT force_dhcp_release True -# openstack-config --set /etc/nova/nova.conf DEFAULT flat_interface eth1 -# openstack-config --set /etc/nova/nova.conf DEFAULT flat_network_bridge br100 -# openstack-config --set /etc/nova/nova.conf DEFAULT public_interface eth1 - -# openstack-config --set /etc/nova/nova.conf DEFAULT network_api_class nova.network.api.API -# openstack-config --set /etc/nova/nova.conf DEFAULT security_group_api nova - - +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + network_size 254 +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + allow_same_net_traffic False +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + multi_host True +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + send_arp_for_ha True +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + share_dhcp_address True +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + force_dhcp_release True +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + flat_interface eth1 +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + flat_network_bridge br100 +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + public_interface eth1 - Edit the /etc/nova/nova.conf file: - - - Add the following keys under the [DEFAULT] - section: - [DEFAULT] + Edit the /etc/nova/nova.conf file and add the + following keys to the [DEFAULT] section: + [DEFAULT] ... -network_manager = nova.network.manager.FlatDHCPManager +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 @@ -61,8 +66,6 @@ force_dhcp_release = True flat_network_bridge = br100 flat_interface = eth1 public_interface = eth1 - - Restart the services: diff --git a/doc/install-guide/section_nova-networking-controller-node.xml b/doc/install-guide/section_nova-networking-controller-node.xml new file mode 100644 index 0000000000..a631f1c9a5 --- /dev/null +++ b/doc/install-guide/section_nova-networking-controller-node.xml @@ -0,0 +1,35 @@ +
+ Configure controller node + Legacy networking primarily involves compute nodes. However, you must + configure the controller node to use it. + + To configure legacy networking + + Run the following commands: + # openstack-config --set /etc/nova/nova.conf DEFAULT \ + network_api_class nova.network.api.API +# openstack-config --set /etc/nova/nova.conf DEFAULT \ + security_group_api nova + + + Edit the /etc/nova/nova.conf file and add the + following keys to the [DEFAULT] section: + [DEFAULT] +... +network_api_class = nova.network.api.API +security_group_api = nova + + + Restart the Compute services: + # service openstack-nova-api restart +# service openstack-nova-scheduler restart +# service openstack-nova-conductor restart + # service nova-api restart +# service nova-scheduler restart +# service nova-conductor restart + + +