Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opendaylight controller not detecting openvswitch on Openstack controller

Hi All,

I need your help in openvswitch being controlled by opendaylight controller via management interfaces. Below is the topology.

[ODL Controller]10.132.232.4---------[switch]---------10.132.232.9[Openstack controller]

Openstack Controller: Below is my local.conf file. Iam using stable/newton branch for devstack installation on Ubuntu LTS 14.04 machine. After successful devstack installation Iam facing issues which are mentioned below.

1) After devstack installation when the below 2 commands are executed, I dont see the ODL controller[IP: 10.132.232.4] detecting the open vSwitch of the openstack controller[IP: 10.132.232.9].

sudo ovs-vsctl set-manager tcp:10.132.232.4:6640 sudo ovs-vsctl set-controller br-ex tcp:10.132.232.4:6653

The output of "sudo ovs-vsctl show" for manager and controller shows the is_connected=false value.

2) After devstack installation. I am creating a 3 instances and I am able to access the VM's through ssh. But once set-manager and set-controller are executed as mentioned above, I will be not be able to ssh to the instances. I get error "No route to host". Please help me out how can this issue be fixed and also let me know if any changes required in local.conf or system files.

Local.conf

#

[[local|localrc]] HOST_IP=10.132.232.9 SERVICE_HOST=10.132.232.9 MYSQL_HOST=10.132.232.9 RABBIT_HOST=10.132.232.9 GLANCE_HOSTPORT=10.132.232.9:9292 ADMIN_PASSWORD=supersecret DATABASE_PASSWORD=iheartdatabases RABBIT_PASSWORD=flopsymopsy SERVICE_PASSWORD=iheartksl

RECLONE=yes

disable_service n-net

Enable heat services

enable_service h-eng h-api h-api-cfn h-api-cw

Enable heat plugin

enable_plugin heat https://git.openstack.org/openstack/heat

IMAGE_URL_SITE="https://dl.fedoraproject.org" IMAGE_URL_PATH="/pub/archive/fedora/linux/releases/21/Cloud/Images/x86_64/" IMAGE_URL_FILE="Fedora-Cloud-Base-20141203-21.x86_64.qcow2" IMAGE_URLS+=","$IMAGE_URL_SITE$IMAGE_URL_PATH$IMAGE_URL_FILE

enable_service q-svc q-agt q-dhcp q-l3 q-meta neutron

Neutron options

Q_USE_SECGROUP=True FLOATING_RANGE="10.132.232.0/24" IPV4_ADDRS_SAFE_TO_USE="172.0.0.0/22" Q_FLOATING_ALLOCATION_POOL=start=10.132.232.250,end=10.132.232.254 PUBLIC_NETWORK_GATEWAY="10.132.232.1" PUBLIC_INTERFACE=eth2

Open vSwitch provider networking configuration

Q_USE_PROVIDERNET_FOR_PUBLIC=True OVS_PHYSICAL_BRIDGE=br-ex PUBLIC_BRIDGE=br-ex OVS_BRIDGE_MAPPINGS=public:br-ex Q_PLUGIN=ml2

Thanks -Suresh

Opendaylight controller not detecting openvswitch on Openstack controller

Hi All,

I need your help in openvswitch being controlled by opendaylight controller via management interfaces. Below is the topology.

[ODL Controller]10.132.232.4---------[switch]---------10.132.232.9[Openstack controller]

controller]

Openstack Controller: Below is my local.conf file. Iam using stable/newton branch for devstack installation on Ubuntu LTS 14.04 machine. After successful devstack installation Iam facing issues which are mentioned below.

1) After devstack installation when the below 2 commands are executed, I dont see the ODL controller[IP: 10.132.232.4] detecting the open vSwitch of the openstack controller[IP: 10.132.232.9].

sudo ovs-vsctl set-manager tcp:10.132.232.4:6640
sudo ovs-vsctl set-controller br-ex tcp:10.132.232.4:6653

tcp:10.132.232.4:6653

The output of "sudo ovs-vsctl show" for manager and controller shows the is_connected=false value.

2) After devstack installation. I am creating a 3 instances and I am able to access the VM's through ssh. But once set-manager and set-controller are executed as mentioned above, I will be not be able to ssh to the instances. I get error "No route to host". Please help me out how can this issue be fixed and also let me know if any changes required in local.conf or system files.

Local.conf

#

Local.conf
##########

[[local|localrc]]
HOST_IP=10.132.232.9
SERVICE_HOST=10.132.232.9
MYSQL_HOST=10.132.232.9
RABBIT_HOST=10.132.232.9
GLANCE_HOSTPORT=10.132.232.9:9292
ADMIN_PASSWORD=supersecret
DATABASE_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=iheartksl

RECLONE=yes

SERVICE_PASSWORD=iheartksl #RECLONE=yes disable_service n-net

Enable n-net #Enable heat services

services enable_service h-eng h-api h-api-cfn h-api-cw

Enable h-api-cw #Enable heat plugin

plugin enable_plugin heat https://git.openstack.org/openstack/heat

https://git.openstack.org/openstack/heat IMAGE_URL_SITE="https://dl.fedoraproject.org" IMAGE_URL_PATH="/pub/archive/fedora/linux/releases/21/Cloud/Images/x86_64/" IMAGE_URL_FILE="Fedora-Cloud-Base-20141203-21.x86_64.qcow2" IMAGE_URLS+=","$IMAGE_URL_SITE$IMAGE_URL_PATH$IMAGE_URL_FILE

IMAGE_URLS+=","$IMAGE_URL_SITE$IMAGE_URL_PATH$IMAGE_URL_FILE enable_service q-svc q-agt q-dhcp q-l3 q-meta neutron

neutron ## Neutron options

options Q_USE_SECGROUP=True FLOATING_RANGE="10.132.232.0/24" IPV4_ADDRS_SAFE_TO_USE="172.0.0.0/22" Q_FLOATING_ALLOCATION_POOL=start=10.132.232.250,end=10.132.232.254 PUBLIC_NETWORK_GATEWAY="10.132.232.1" PUBLIC_INTERFACE=eth2

PUBLIC_INTERFACE=eth2 # Open vSwitch provider networking configuration

configuration Q_USE_PROVIDERNET_FOR_PUBLIC=True OVS_PHYSICAL_BRIDGE=br-ex PUBLIC_BRIDGE=br-ex OVS_BRIDGE_MAPPINGS=public:br-ex Q_PLUGIN=ml2

Q_PLUGIN=ml2

Thanks -Suresh