Commit 08c0dac0 authored by Jan Siersch's avatar Jan Siersch
Browse files

ml2_odl first steps

parent 72038c15
......@@ -30,3 +30,6 @@ STORAGENODE_IF_DATA="eth0"
STORAGENODE_IP_DATA="10.1.2.12"
STORAGENODE_IF_PBLC="eth1"
STORAGENODE_IP_PBLC="134.60.64.12"
SDNCONTROL_IF_CTRL="eth1"
SDNCONTROL_IP_CTRL="10.1.1.13"
......@@ -299,6 +299,34 @@ openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ovs ena
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" securitygroup firewall_driver "neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" securitygroup enable_security_group "True"
# (ListOpt) () An ordered list of networking mechanism driver entrypoints to be loaded from the neutron.ml2.mechanism_drivers namespace.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2 mechanism_drivers "opendaylight,linuxbridge"
# (StrOpt) (None) HTTP username for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl username "admin"
# (StrOpt) (None) HTTP password for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl password "admin"
# (StrOpt) (None) HTTP URL of OpenDaylight REST interface.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl url "http://sdncontrol:8383/"
# (IntOpt) (30) Tomcat session timeout in minutes.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl session_timeout "30"
# (IntOpt) (10) HTTP timeout in seconds.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl timeout "10"
# (StrOpt) (None) HTTP password for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl password "True"
# (IntOpt) (30) Tomcat session timeout in minutes.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl session_timeout "True"
# (IntOpt) (10) HTTP timeout in seconds.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl timeout "True"
# (StrOpt) (None) HTTP URL of OpenDaylight REST interface.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl url "True"
# (StrOpt) (None) HTTP username for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl username "True"
# To configure the Open vSwitch (OVS) service
# The OVS service provides the underlying virtual networking framework for instances.
# The integration bridge br-int handles internal instance network traffic within OVS.
......@@ -347,8 +375,8 @@ sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' "/etc/init.d/
service openstack-nova-compute restart
# Start the Open vSwitch (OVS) agent and configure it to start when the system boots:
service neutron-openvswitch-agent restart
chkconfig neutron-openvswitch-agent on
service neutron-openvswitch-agent stop
chkconfig neutron-openvswitch-agent off
# 9. Add the Block Storage service
# 9.2 Configure a Block Storage service node
......
......@@ -567,6 +567,25 @@ openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_type_gre tun
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" securitygroup firewall_driver "neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" securitygroup enable_security_group "True"
# (ListOpt) () An ordered list of networking mechanism driver entrypoints to be loaded from the neutron.ml2.mechanism_drivers namespace.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2 mechanism_drivers "opendaylight"
# (StrOpt) (None) HTTP username for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl username "admin"
# (StrOpt) (None) HTTP password for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl password "admin"
# (StrOpt) (None) HTTP URL of OpenDaylight REST interface.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl url "http://sdncontrol:8383/"
# (IntOpt) (30) Tomcat session timeout in minutes.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl session_timeout "30"
# (IntOpt) (10) HTTP timeout in seconds.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl timeout "10"
# To configure Compute to use Networking
# By default, most distributions configure Compute to use legacy networking.
# You must reconfigure Compute to manage networks through Networking.
......
......@@ -24,6 +24,7 @@ echo -e "127.0.0.1\tlocalhost" > /etc/hosts
echo -e "127.0.1.1\t$(hostname)" >> /etc/hosts
echo -e "$CONTROLNODE_IP_CTRL\tcontrolnode" >> /etc/hosts
echo -e "$STORAGENODE_IP_CTRL\tstoragenode" >> /etc/hosts
echo -e "$SDNCONTROL_IP_CTRL\tsdncontrol" >> /etc/hosts
for i in $(seq 1 $COMPNODE_COUNT); do
# note: remember leading zeros
if (( i < 10 )); then
......@@ -246,7 +247,6 @@ openstack-config --set "/etc/neutron/metadata_agent.ini" DEFAULT verbose
# The ML2 plug-in uses the Open vSwitch (OVS) mechanism (agent) to build virtual networking framework for instances.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2 type_drivers "gre"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2 tenant_network_types "gre"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2 mechanism_drivers "openvswitch"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_type_gre tunnel_id_ranges "1:1000"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ovs local_ip "INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ovs tunnel_type "gre"
......@@ -254,6 +254,32 @@ openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ovs ena
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" securitygroup firewall_driver "neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" securitygroup enable_security_group "True"
# (ListOpt) () An ordered list of networking mechanism driver entrypoints to be loaded from the neutron.ml2.mechanism_drivers namespace.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2 mechanism_drivers "opendaylight"
# (StrOpt) (None) HTTP username for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl username "admin"
# (StrOpt) (None) HTTP password for authentication
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl password "admin"
# (StrOpt) (None) HTTP URL of OpenDaylight REST interface.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl url "http://sdncontrol:8383/"
# (IntOpt) (30) Tomcat session timeout in minutes.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl session_timeout "30"
# (IntOpt) (10) HTTP timeout in seconds.
openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" ml2_odl timeout "10"
# from "https://openstack.redhat.com/OpenDaylight_integration"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl nodes "???"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl network_vlan_ranges "<vlan_min>:<vlan_max>"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl tunnel_id_ranges "<tunnel_id_min>:<tunnel_id_max>"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl tun_peer_patch_port "patch-tun"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl int_peer_patch_port "patch-int"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl tenant_network_type "vlan"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl tunnel_bridge "br-tun"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl integration_bridge "br-int"
#openstack-config --set "/etc/neutron/plugins/ml2/ml2_conf.ini" odl controllers "$(SDNCONTROL_IP_CTRL):8383:admin:admin"
# To configure the Open vSwitch (OVS) service
# The OVS service provides the underlying virtual networking framework for instances.
# The integration bridge br-int handles internal instance network traffic within OVS.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment