cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16728
Views
0
Helpful
1
Replies

Cannot acces provider network (Openstack Packstack Opendaylight integration)

Hi everyone, I try to integerate Openstack that build with packstack (Centos) with OpenDayLight.

this is my topology

    Openstack Controller : 10.210.210.10 & 10.211.211.10

    - eth1 : 10.211.211.10/24

    - eth0 : 10.210.210.10/24

    Openstack Compute : 10.210.210.20 & 10.211.211.20

    - eth1 : 10.211.211.20/24

    - eth0 : 10.210.210.20/24

    OpenDayLight : 10.210.210.30

    - eth1 : 10.210.210.30/24

    Provider Network : 10.211.211.0/24

    Tenant Network : 10.210.210.0/24

    Openstack Version : Newton

    OpenDayLight Version : Nitrogen SR1

this is my packstack configuration changes

    CONFIG_HEAT_INSTALL=y

    CONFIG_NEUTRON_FWAAS=y

    CONFIG_NEUTRON_VPNAAS=y

    CONFIG_LBAAS_INSTALL=y

    CONFIG_CINDER_INSTALL=n

    CONFIG_SWIFT_INSTALL=n

    CONFIG_CEILOMETER_INSTALL=n

    CONFIG_AODH_INSTALL=n

    CONFIG_GNOCCHI_INSTALL=n

    CONFIG_NAGIOS_INSTALL=n

    CONFIG_PROVISION_DEMO=n

    CONFIG_COMPUTE_HOSTS=10.X0.X0.20

    CONFIG_USE_EPEL=y

    CONFIG_KEYSTONE_ADMIN_PW=rahasia

    CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vxlan,gre,vlan,flat,local

    CONFIG_NEUTRON_ML2_FLAT_NETWORKS=external

    CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=external:br-ex

    CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:eth1

    CONFIG_NEUTRON_OVS_BRIDGES_COMPUTE=br-ex

I try to follow this tutorial : http://docs.opendaylight.org/en/stable-nitrogen/submodules/netvirt/docs/openstack-guide/openstack-with-netvirt.html

the instance is getting dhcp in tenant network and ping the ip tenant router gateway. but i cant ping all of provider network.

this is all of my configuration when integrating with opendaylight

## OPENDAYLIGHT ##

    ** Set ACL

    mkdir -p etc/opendaylight/datastore/initial/config/

    cp system/org/opendaylight/netvirt/aclservice-impl/0.5.1/aclservice-impl-0.5.1-config.xml etc/opendaylight/datastore/initial/config/netvirt-aclservice-config.xml

    sed -i s/stateful/transparent/ etc/opendaylight/datastore/initial/config/netvirt-aclservice-config.xml

    export JAVA_HOME=/usr/java/jdk1.8.0_162/jre

    ./bin/karaf

    ** Install Feature

    feature:install odl-dluxapps-nodes odl-dlux-core odl-dluxapps-topology odl-dluxapps-applications odl-netvirt-openstack odl-netvirt-ui odl-mdsal-apidocs

## OPENSTACK CONTROLLER NODE ##

    systemctl stop neutron-server

    systemctl stop neutron-openvswitch-agent

    systemctl disable neutron-openvswitch-agent

    systemctl stop neutron-l3-agent

    systemctl disable neutron-l3-agent

    systemctl stop openvswitch

    rm -rf /var/log/openvswitch/*

    rm -rf /etc/openvswitch/conf.db

    systemctl start openvswitch

    ovs-vsctl set-manager tcp:10.210.210.30:6640

    ovs-vsctl del-port br-int eth1

    ovs-vsctl add-br br-ex

    ovs-vsctl add-port br-ex eth1

    ovs-vsctl set-controller br-ex tcp:10.210.210.30:6653

    ovs-vsctl set Open_vSwitch . other_config:local_ip=10.210.210.10

    ovs-vsctl get Open_vSwitch . other_config

    yum -y install python-networking-odl

    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers opendaylight

    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan

    cat <<EOT>> /etc/neutron/plugins/ml2/ml2_conf.ini

    [ml2_odl]

    password = admin

    username = admin

    url = http://10.210.210.30:8080/controller/nb/v2/neutron

    EOT

    crudini --set /etc/neutron/plugins/neutron.conf DEFAULT service_plugins odl-router

    crudini --set /etc/neutron/plugins/dhcp_agent.ini OVS ovsdb_interface vsctl

    mysql -e "DROP DATABASE IF EXISTS neutron;"

    mysql -e "CREATE DATABASE neutron CHARACTER SET utf8;"

    neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head

    systemctl start neutron-server

    sudo ovs-vsctl set Open_vSwitch . other_config:provider_mappings=external:eth1

## OPENSTACK COMPUTE NODE ##

    systemctl stop neutron-openvswitch-agent

    systemctl disable neutron-openvswitch-agent

    systemctl stop neutron-l3-agent

    systemctl disable neutron-l3-agent

    systemctl stop openvswitch

    rm -rf /var/log/openvswitch/*

    rm -rf /etc/openvswitch/conf.db

    systemctl start openvswitch

    ovs-vsctl set-manager tcp:10.210.210.30:6640

    ovs-vsctl set-manager tcp:10.210.210.30:6640

    ovs-vsctl del-port br-int eth1

    ovs-vsctl add-br br-ex

    ovs-vsctl add-port br-ex eth1

    ovs-vsctl set-controller br-ex tcp:10.210.210.30:6653

    ovs-vsctl set Open_vSwitch . other_config:local_ip=10.210.210.20

    ovs-vsctl get Open_vSwitch . other_config

    yum -y install python-networking-odl

    sudo ovs-vsctl set Open_vSwitch . other_config:provider_mappings=external:eth1

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

1 Accepted Solution

Accepted Solutions
1 Reply 1

eckelcu
Cisco Employee
Cisco Employee
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:


Cisco Cloud Native resources: