networking-odl with ovs-dpdk in devstack

Asked by Jason

Hello guys,

I am trying to build my devstack with networking-odl and networking-ovs-dpdk both enabled.
Now I am facing some issues that I cannot solve it and I believe the problem would be some errors in my local.conf file.
Since there is no local.conf sample with integrated networking-odl and ovs-dpdk, I tried to integrate local,conf sample from both projects.
Here are my env:
ubuntu 16.04 with kernel 4.4 lowlatency
devstack newton

After running the stack.sh we can start doing our jobs.
I tried to create an instance from webpage and some errors shown.

error from webpage:
 Last exception: Unexpected error while running command. Command: sudo nova-rootwrap /etc/nova/rootwrap.conf ip link set br-int mtu 14
After checking log, I found when we firest bring up devstack, I can see br-int in the system, but after create the instance, netwoking-odl will delete br-int and report this error.

error from q-svc:
2016-12-06 10:42:29.970 ERROR networking_odl.ml2.network_topology [req-da91fafd-db4a-4168-9792-092d197d377b None None] No such network topology elements for given host u'faca-UCSC-C240-M4L' and given IPs: 127.0.0.1, 127.0.1.1.
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology Traceback (most recent call last):
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/ml2/network_topology.py", line 165, in _fetch_elements_by_host
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology host_addresses, cache_timeout):
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/common/cache.py", line 186, in fetch_all
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology missing_keys=missing_keys, cause_exc_info=cause_exc_info)
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology CacheFetchError: 'No such topology element for given host addresses: faca-UCSC-C240-M4L, 127.0.0.1, 127.0.1.1'
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology
2016-12-06 10:42:29.970 ERROR networking_odl.ml2.network_topology [req-da91fafd-db4a-4168-9792-092d197d377b None None] Error fetching elements for host u'faca-UCSC-C240-M4L'.
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology Traceback (most recent call last):
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/ml2/network_topology.py", line 72, in bind_port
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology elements.extend(self._fetch_elements_by_host(host_name))
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/ml2/network_topology.py", line 186, in _fetch_elements_by_host
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology error.reraise_cause()
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/common/cache.py", line 197, in reraise_cause
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology six.reraise(*self.cause_exc_info)
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/common/cache.py", line 120, in fetch_all
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology for key, value in self._fetch_all(new_entry_keys):
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology File "/opt/stack/networking-odl/networking_odl/ml2/network_topology.py", line 228, in _fetch_and_parse_network_topology
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology .format(', '.join(addresses)))
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology ValueError: No such topology element for given host addresses: faca-UCSC-C240-M4L, 127.0.0.1, 127.0.1.1
2016-12-06 10:42:29.970 TRACE networking_odl.ml2.network_topology.

Here is the local.conf I am using:
[[local|localrc]]
LOGFILE=stack.sh.log
SCREEN_LOGDIR=/opt/stack/data/log
LOG_COLOR=True

HOST_IP_IFACE=enp7s0f1
HOST_NAME=$(hostname)
HOST_IP=10.60.6.146
SERVICE_HOST=$HOST_IP
MYSQL_PASSWORD=openstack
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
ADMIN_PASSWORD=openstack
SERVICE_PASSWORD=openstack
HORIZON_PASSWORD=openstack
SERVICE_TOKEN=tokentoken

VNCSERVER_PROXYCLIENT_ADDRESS=$SERVICE_HOST
VNCSERVER_LISTEN=0.0.0.0

disable_service q-agt
disable_service swift
disable_service cinder
disable_service n-net
enable_service q-svc
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-vpn
enable_service q-metering
enable_service q-lbaas
enable_service q-fwaas
enable_service neutron
enable_service tempest
enable_service n-cpu

ODL_L3=False
SKIP_OVS_INSTALL=True
enable_plugin networking-odl http://git.openstack.org/openstack/networking-odl
enable_plugin networking-ovs-dpdk https://github.com/openstack/networking-ovs-dpdk

#ODL_NETVIRT_KARAF_FEATURE=odl-restconf-all,odl-aaa-authn,odl-dlux-core,odl-mdsal-apidocs,odl-netvirt-vpnservice-openstack
#ODL_BOOT_WAIT_URL=restconf/operational/network-topology:network-topology/
ODL_RELEASE=boron-snapshot-0.5.1
ODL_SNAPSHOT_VERSION=0.5.1-SNAPSHOT

ENABLE_TENANT_TUNNELS=True

#Horizon
ENABLED_SERVICES+=,horizon
#Heat
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
#Glance
ENABLED_SERVICES+=,g-api,g-reg

# OVS DPDK
Q_ML2_PLUGIN_MECHANISM_DRIVERS=opendaylight
Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,flat,local,vxlan
Q_ML2_TENANT_NETWORK_TYPE=vlan
ENABLE_TENANT_VLANS=True
ML2_VLAN_RANGES=default:1000:2000,default2:2001:3000

# vxlan tenant networks only
#Q_ML2_TENANT_NETWORK_TYPE=vxlan
#ENABLE_TENANT_VLANS=False
#ENABLE_TENANT_TUNNELS=True
#OVS_TUNNEL_CIDR_MAPPING=br-enp132s0f1:192.168.50.1/24
#Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS=(vni_ranges=400:500)

OVS_BRIDGE_MAPPINGS="default:br-enp132s0f1","default2:br-enp134s0f0"
OVS_DATAPATH_TYPE=netdev
OVS_LOG_DIR=/opt/stack/logs
OVS_PMD_CORE_MASK=80008000
#Dual socket platform with 64GB RAM,14336*2048kB hugepages leaves ~6G for the system.
OVS_NUM_HUGEPAGES=8192
OVS_DPDK_MODE=controller_ovs_dpdk

# set VNC version to avoid vnc bug
NOVNC_BRANCH=v0.6.0
[[post-config|$NOVA_CONF]]
[DEFAULT]
vcpu_pin_set = 12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
firewall_driver=nova.virt.firewall.NoopFirewallDriver
scheduler_default_filters=RamFilter,ComputeFilter,AvailabilityZoneFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,PciPassthroughFilter,NUMATopologyFilter,AggregateInstanceExtraSpecsFilter
[libvirt]
cpu_mode=host-model

Any help would be thanksful, or can someone provide a sample local.conf for both dpdk and networking-odl included?
Thank you.

BR,

Jason

Question information

Language:
English Edit question
Status:
Expired
For:
networking-odl Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.