<div dir="ltr">Hi everyone, I try to integerate Openstack that build with packstack (Centos) with OpenDayLight.<br>this is my topology<br><br> Openstack Controller : 10.210.210.10 & 10.211.211.10<br> - eth1 : <a href="http://10.211.211.10/24" target="_blank">10.211.211.10/24</a><br> - eth0 : <a href="http://10.210.210.10/24" target="_blank">10.210.210.10/24</a><br><br> Openstack Compute : 10.210.210.20 & 10.211.211.20<br> - eth1 : <a href="http://10.211.211.20/24" target="_blank">10.211.211.20/24</a><br> - eth0 : <a href="http://10.210.210.20/24" target="_blank">10.210.210.20/24</a><br><br> OpenDayLight : 10.210.210.30<br> - eth1 : <a href="http://10.210.210.30/24" target="_blank">10.210.210.30/24</a><br><br> Provider Network : <a href="http://10.211.211.0/24" target="_blank">10.211.211.0/24</a><br> Tenant Network : <a href="http://10.210.210.0/24" target="_blank">10.210.210.0/24</a><br><br> Openstack Version : Newton<br> OpenDayLight Version : Nitrogen SR1<br><br>this is my packstack configuration changes<br><br> CONFIG_HEAT_INSTALL=y<br> CONFIG_NEUTRON_FWAAS=y<br> CONFIG_NEUTRON_VPNAAS=y<br> CONFIG_LBAAS_INSTALL=y<br> <br> CONFIG_CINDER_INSTALL=n<br> CONFIG_SWIFT_INSTALL=n<br> CONFIG_CEILOMETER_INSTALL=n<br> CONFIG_AODH_INSTALL=n<br> CONFIG_GNOCCHI_INSTALL=n<br> CONFIG_NAGIOS_INSTALL=n<br> CONFIG_PROVISION_DEMO=n<br> <br> CONFIG_COMPUTE_HOSTS=10.X0.X0.<wbr>20<br> CONFIG_USE_EPEL=y<br> CONFIG_KEYSTONE_ADMIN_PW=<wbr>rahasia<br> CONFIG_NEUTRON_ML2_TYPE_<wbr>DRIVERS=vxlan,gre,vlan,flat,<wbr>local<br> CONFIG_NEUTRON_ML2_FLAT_<wbr>NETWORKS=external<br> CONFIG_NEUTRON_OVS_BRIDGE_<wbr>MAPPINGS=external:br-ex<br> CONFIG_NEUTRON_OVS_BRIDGE_<wbr>IFACES=br-ex:eth1<br> CONFIG_NEUTRON_OVS_BRIDGES_<wbr>COMPUTE=br-ex<br><br>I try to follow this tutorial : <a href="http://docs.opendaylight.org/en/stable-nitrogen/submodules/netvirt/docs/openstack-guide/openstack-with-netvirt.html" target="_blank">http://docs.opendaylight.org/<wbr>en/stable-nitrogen/submodules/<wbr>netvirt/docs/openstack-guide/<wbr>openstack-with-netvirt.html</a><br><br>the instance is getting dhcp in tenant network and ping the ip tenant router gateway. but i cant ping all of provider network. <br><br>this is all of my configuration when integrating with opendaylight<br><br>## OPENDAYLIGHT ##<br><br> ** Set ACL<br> mkdir -p etc/opendaylight/datastore/<wbr>initial/config/<br> cp system/org/opendaylight/<wbr>netvirt/aclservice-impl/0.5.1/<wbr>aclservice-impl-0.5.1-config.<wbr>xml etc/opendaylight/datastore/<wbr>initial/config/netvirt-<wbr>aclservice-config.xml<br> sed -i s/stateful/transparent/ etc/opendaylight/datastore/<wbr>initial/config/netvirt-<wbr>aclservice-config.xml<br> <br> export JAVA_HOME=/usr/java/jdk1.8.0_<wbr>162/jre<br> ./bin/karaf <br> <br> ** Install Feature<br>
feature:install odl-dluxapps-nodes odl-dlux-core odl-dluxapps-topology
odl-dluxapps-applications odl-netvirt-openstack odl-netvirt-ui
odl-mdsal-apidocs odl-l2switch-all<br><br>## OPENSTACK CONTROLLER NODE ##<br><br> systemctl stop neutron-server<br> systemctl stop neutron-openvswitch-agent<br> systemctl disable neutron-openvswitch-agent<br> systemctl stop neutron-l3-agent<br> systemctl disable neutron-l3-agent<br> <br> systemctl stop openvswitch<br> rm -rf /var/log/openvswitch/*<br> rm -rf /etc/openvswitch/conf.db<br> systemctl start openvswitch<br> <br> ovs-vsctl set-manager tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a><br> ovs-vsctl del-port br-int eth1<br> ovs-vsctl add-br br-ex<br> ovs-vsctl add-port br-ex eth1<br> ovs-vsctl set-controller br-ex tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a><br> <br> ovs-vsctl set Open_vSwitch . other_config:local_ip=10.210.<wbr>210.10<br> ovs-vsctl get Open_vSwitch . other_config<br> <br> yum -y install python-networking-odl<br> <br> crudini --set /etc/neutron/plugins/ml2/ml2_<wbr>conf.ini ml2 mechanism_drivers opendaylight <br> crudini --set /etc/neutron/plugins/ml2/ml2_<wbr>conf.ini ml2 tenant_network_types vxlan<br> <br> cat <<EOT>> /etc/neutron/plugins/ml2/ml2_<wbr>conf.ini <br> [ml2_odl]<br> password = admin<br> username = admin<br> url = <a href="http://10.210.210.30:8080/controller/nb/v2/neutron" target="_blank">http://10.210.210.30:8080/<wbr>controller/nb/v2/neutron</a><br> EOT<br> <br> crudini --set /etc/neutron/plugins/neutron.<wbr>conf DEFAULT service_plugins odl-router<br> crudini --set /etc/neutron/plugins/dhcp_<wbr>agent.ini OVS ovsdb_interface vsctl<br> <br> mysql -e "DROP DATABASE IF EXISTS neutron;"<br> mysql -e "CREATE DATABASE neutron CHARACTER SET utf8;"<br> neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_<wbr>conf.ini upgrade head<br> <br> systemctl start neutron-server<br> sudo ovs-vsctl set Open_vSwitch . other_config:provider_<wbr>mappings=external:br-ex<br><br>## OPENSTACK COMPUTE NODE ##<br><br> systemctl stop neutron-openvswitch-agent<br> systemctl disable neutron-openvswitch-agent<br> systemctl stop neutron-l3-agent<br> systemctl disable neutron-l3-agent<br> <br> systemctl stop openvswitch<br> rm -rf /var/log/openvswitch/*<br> rm -rf /etc/openvswitch/conf.db<br> <br> systemctl start openvswitch<br> <br> ovs-vsctl set-manager tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a><br> ovs-vsctl set-manager tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a><br> ovs-vsctl del-port br-int eth1<br> ovs-vsctl add-br br-ex<br> ovs-vsctl add-port br-ex eth1<br> ovs-vsctl set-controller br-ex tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a><br><br> ovs-vsctl set Open_vSwitch . other_config:local_ip=10.210.<wbr>210.20<br> ovs-vsctl get Open_vSwitch . other_config<br> <br> yum -y install python-networking-odl<br> <br> sudo ovs-vsctl set Open_vSwitch . other_config:provider_<wbr>mappings=external:br-ex<br><br>## REPORT ##<br>############<br><br>## OVS-VSCTL SHOW ##<br>### CONTROLLER ###<br>[root@pod21-controller ~]# ovs-vsctl show<br>525fbe7c-e60c-4135-b0a5-<wbr>178d76c04529<br> Manager "ptcp:6640:127.0.0.1"<br> is_connected: true<br> Bridge br-tun<br> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>"<br> is_connected: true<br> fail_mode: secure<br> Port "gre-0ad2d214"<br> Interface "gre-0ad2d214"<br> type: gre<br> options: {df_default="true", in_key=flow, local_ip="10.210.210.10", out_key=flow, remote_ip="10.210.210.20"}<br> Port br-tun<br> Interface br-tun<br> type: internal<br> Port "vxlan-0ad2d214"<br> Interface "vxlan-0ad2d214"<br> type: vxlan<br>
options: {df_default="true", in_key=flow, local_ip="10.210.210.10",
out_key=flow, remote_ip="10.210.210.20"} <wbr> <wbr> <wbr> <wbr> <br> Port patch-int <wbr> <wbr> <wbr> <br> Interface patch-int <wbr> <wbr> <wbr> <br> type: patch <wbr> <wbr> <wbr> <br> options: {peer=patch-tun} <wbr> <wbr> <wbr> <br> Bridge br-ex <wbr> <wbr> <wbr> <br> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>" <wbr> <wbr> <wbr> <br> is_connected: true <wbr> <wbr> <wbr> <br> fail_mode: secure <wbr> <wbr> <wbr> <br> Port phy-br-ex <wbr> <wbr> <wbr> <br> Interface phy-br-ex<br> type: patch<br> options: {peer=int-br-ex}<br> Port "eth1"<br> Interface "eth1"<br> Port br-ex<br> Interface br-ex<br> type: internal<br> Bridge br-int<br> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>"<br> is_connected: true<br> fail_mode: secure<br> Port br-int<br> Interface br-int<br> type: internal<br> Port int-br-ex<br> Interface int-br-ex<br> type: patch<br> options: {peer=phy-br-ex}<br> Port patch-tun<br> Interface patch-tun<br> type: patch<br> options: {peer=patch-int}<br> ovs_version: "2.6.1"<br><br>### COMPUTE ###<br>[root@pod21-compute ~]# ovs-vsctl show<br>f4466d5a-c1f5-4c5c-91c3-<wbr>636944cd0f97<br> Manager "ptcp:6640:127.0.0.1"<br> is_connected: true<br> Bridge br-ex<br> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>"<br> is_connected: true<br> fail_mode: secure<br> Port phy-br-ex<br> Interface phy-br-ex<br> type: patch<br> options: {peer=int-br-ex}<br> Port br-ex<br> Interface br-ex<br> type: internal<br> Port "eth1"<br> Interface "eth1"<br> Bridge br-int<br> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>"<br> is_connected: true<br> fail_mode: secure <wbr> <wbr> <wbr> <br> Port int-br-ex <wbr> <wbr> <wbr> <br> Interface int-br-ex <wbr> <wbr> <wbr> <br> type: patch <wbr> <wbr> <wbr> <br> options: {peer=phy-br-ex} <wbr> <wbr> <wbr> <br> Port br-int <wbr> <wbr> <wbr> <br> Interface br-int <wbr> <wbr> <wbr> <br> type: internal <wbr> <wbr> <wbr> <br> Port patch-tun <wbr> <wbr> <wbr> <br> Interface patch-tun <wbr> <wbr> <wbr> <br> type: patch<br> options: {peer=patch-int}<br> Bridge br-tun<br> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>"<br> is_connected: true<br> fail_mode: secure<br> Port patch-int<br> Interface patch-int<br> type: patch<br> options: {peer=patch-tun}<br> Port "gre-0ad2d20a"<br> Interface "gre-0ad2d20a"<br> type: gre<br> options: {df_default="true", in_key=flow, local_ip="10.210.210.20", out_key=flow, remote_ip="10.210.210.10"}<br> Port br-tun<br> Interface br-tun<br> type: internal<br> Port "vxlan-0ad2d20a"<br> Interface "vxlan-0ad2d20a"<br> type: vxlan<br> options: {df_default="true", in_key=flow, local_ip="10.210.210.20", out_key=flow, remote_ip="10.210.210.10"}<br> ovs_version: "2.6.1"<br><br>### OVS-VSCTL AFTER CONFIG ###<br><br>### CONTROLLER ###<br>[root@pod21-controller ~]# ovs-vsctl show<br>71b22ef2-fbea-4cd4-ba6a-<wbr>883b3df9c5f1<br> Manager "tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a>"<br> is_connected: true<br> Bridge br-int<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> fail_mode: secure<br> Port br-int<br> Interface br-int<br> type: internal<br> Bridge br-ex<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> Port br-ex<br> Interface br-ex<br> type: internal<br> Port "eth1"<br> Interface "eth1"<br> ovs_version: "2.6.1"<br><br>### COMPUTE ###<br>[root@pod21-compute ~]# ovs-vsctl show<br>3bede8e2-eb29-4dbb-97f0-<wbr>4cbadb2c0195<br> Manager "tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a>"<br> is_connected: true<br> Bridge br-ex<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> Port br-ex<br> Interface br-ex<br> type: internal<br> Port "eth1"<br> Interface "eth1"<br> Bridge br-int<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> fail_mode: secure<br> Port br-int<br> Interface br-int<br> type: internal<br> ovs_version: "2.6.1"<br><br><br>### AFTER ADDING INSTANCE ###<br><br>### CONTROLLER ###<br>[root@pod21-controller ~(keystone_admin)]# ovs-vsctl show<br>71b22ef2-fbea-4cd4-ba6a-<wbr>883b3df9c5f1<br> Manager "ptcp:6640:127.0.0.1"<br> is_connected: true<br> Manager "tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a>"<br> is_connected: true<br> Bridge br-int<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> fail_mode: secure<br> Port "tapab981c1e-4b"<br> Interface "tapab981c1e-4b"<br> type: internal<br> Port "qr-cba77b1d-73"<br> Interface "qr-cba77b1d-73"<br> type: internal<br> Port br-int<br> Interface br-int<br> type: internal<br> Port "tun7314cbc7b3e"<br> Interface "tun7314cbc7b3e"<br> type: vxlan<br> options: {key=flow, local_ip="10.210.210.10", remote_ip="10.210.210.20"}<br> Bridge br-ex<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> Port "qg-1ba8c01a-15"<br> Interface "qg-1ba8c01a-15"<br> type: internal<br> Port br-ex<br> Interface br-ex<br> type: internal<br> Port "eth1"<br> Interface "eth1"<br> ovs_version: "2.6.1"<br><br><br>### COMPUTE ###<br>[root@pod21-compute ~]# ovs-vsctl show<br>3bede8e2-eb29-4dbb-97f0-<wbr>4cbadb2c0195<br> Manager "tcp:<a href="http://10.210.210.30:6640" target="_blank">10.210.210.30:6640</a>"<br> is_connected: true<br> Bridge br-ex<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> Port br-ex<br> Interface br-ex<br> type: internal<br> Port "eth1"<br> Interface "eth1"<br> Bridge br-int<br> Controller "tcp:<a href="http://10.210.210.30:6653" target="_blank">10.210.210.30:6653</a>"<br> is_connected: true<br> fail_mode: secure<br> Port "tun51bba5158fe"<br> Interface "tun51bba5158fe"<br> type: vxlan<br> options: {key=flow, local_ip="10.210.210.20", remote_ip="10.210.210.10"}<br> Port "tap1e71587f-32"<br> Interface "tap1e71587f-32"<br> Port "tap5c0a404b-75"<br> Interface "tap5c0a404b-75"<br> Port br-int<br> Interface br-int<br> type: internal<br> ovs_version: "2.6.1"87<br><br>i
try to mapping to eth1 or br-ex but its same. i cant ping all provider
network. (only the gateway 10.211.211.1 from controller or compute
node). thanks :)<br></div>