OpenStack Mitaka and OpenDayLight Integration fail.

asked 2016-11-20 04:53:34 -0800

carrotis gravatar image

Hello there

I try to integrate OpenStack and OpenDaylight.

My environment are below.

  • Openstack Mitaka and Opendaylight Beryllium-SR4
  • Node 1 : Controller + Network
    (Process : openvswitch-switch,neutron-server,neutron-dhcp-agent,neutron-metadata-agent,neutron-l3-agent,etc)
  • Node 2 : Compute ( Process : nova-compute , openvswitch-switch )
    • Node 3 : ODL ( Process : Only ODL )

I refer below sites.

https://wiki.opendaylight.org/view/Op...andOpenDaylight
http://sciencecloud-community.cs.tu.a...

http://superuser.openstack.org/articl...

Sum-up.

ODL : feature:install odl-ovsdb-openstack, odl-dlux-core, odl-dlux-all

Controller(Network) :

  • ovs-vsctl set OpenvSwitch .... otherconfig={'local_ip'='10.0.0.1'}

  • ovs-vsctl set-manager tcp:ODLIP:6640

  • ovs-vsctl show ( work well)

  • edit /etc/neutron/plugins/ml2/ml2_conf.ini

  • remove neutron-openvswitch-agent

  • reinstall DB

  • Install the networking_odl python module

Compute Node :

  • ovs-vsctl set OpenvSwitch .... otherconfig={'local_ip'='10.0.0.2'}

  • ovs-vsctl set-manager tcp:ODLIP:6640

  • remove neutron-openvswitch-agent

I have two problems.

  1. VMs can't get IP address.

    There is no error log except when create subnet.

  2. When create subnet, got below errors in neutron-server.log.

    But ODL seems work fine. (curl -u admin:admin http://localhost:8080/controller/nb/v... )

    eg. 'neutron subnet-create demo-net2 --name demo-subnet2 --gateway 192.168.201.1 192.168.201.0/24 '

2016-11-19 19:27:17.937 38031 INFO networkingodl.ml2.networktopology [req-fdade32c-8a5c-4f44-94ce-21bb10b04b67 - - - - -] Fetch network topology from ODL. 2016-11-19 19:27:17.967 38031 WARNING networkingodl.common.cache [req-fdade32c-8a5c-4f44-94ce-21bb10b04b67 - - - - -] Error fetching values for keys: "u'controller', '10.10.10.1'" 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache Traceback (most recent call last): 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache File "/usr/local/lib/python2.7/dist-packages/networkingodl/common/cache.py", line 117, in fetchall 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache for key, value in self.fetchall(newentrykeys): 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache File "/usr/local/lib/python2.7/dist-packages/networkingodl/ml2/networktopology.py", line 228, in _fetchandparsenetworktopology 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache ', '.join(addresses))) 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache ValueError: No such topology element for given host addresses: controller, 10.10.10.1 2016-11-19 19:27:17.967 38031 ERROR networkingodl.common.cache 2016-11-19 19:27:17.968 38031 ERROR networkingodl.ml2.networktopology [req-fdade32c-8a5c-4f44-94ce-21bb10b04b67 - - - - -] No such network topology elements for given host u'controller' and given IPs: 10.10.10.1. 2016-11-19 19:27:17.968 38031 ERROR networkingodl.ml2.networktopology Traceback (most recent call last): 2016-11-19 19:27:17.968 38031 ERROR networkingodl.ml2.networktopology File "/usr/local/lib/python2.7/dist-packages/networkingodl/ml2/networktopology.py", line 165, in fetchelementsbyhost 2016-11-19 19:27:17.968 38031 ERROR networkingodl.ml2.networktopology hostaddresses, cachetimeout): 2016-11-19 19:27:17.968 38031 ERROR networkingodl.ml2.networktopology File "/usr/local/lib/python2.7/dist-packages/networkingodl/common/cache.py", line 183, in fetchall 2016-11-19 19 ... (more)

edit retag flag offensive close merge delete

Comments

Your logs are not complete, clicking on more is not working. Can you use http://pastie.org/. And btw did you use networking_odl stable/mitaka release? If not use that,cleanup and then check.

90.suman ( 2016-11-21 21:23:09 -0800 )edit