onos_ml2 mechanism driver not found when we are trying to deploy onos with kolla ansible

Bug #1850763 reported by Brijesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Opinion
Undecided
Unassigned

Bug Description

When i am trying to deploy onos with kolla ansible, neutron_server container stuck in restating state.
Error in neutron_server.log:
CRITICAL neutron.plugins.ml2.managers [-] The following mechanism drivers were not found: set(['onos_ml2'])

Expected result: All openstack service should be working fine.

Steps to reproduce: Deploy openstack stein using kolla ansible
set enable_onos: "yes" in /etc/kolla/global.yml
Deployment is completed successfully but neutron_server container on controller is in restarting state.

Environment:
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.6 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Linux controller 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Client: Docker Engine - Community
 Version: 19.03.4
 API version: 1.40
 Go version: go1.12.10
 Git commit: 9013bf583a
 Built: Fri Oct 18 15:53:51 2019
 OS/Arch: linux/amd64
 Experimental: false

Server: Docker Engine - Community
 Engine:
  Version: 19.03.4
  API version: 1.40 (minimum version 1.12)
  Go version: go1.12.10
  Git commit: 9013bf583a
  Built: Fri Oct 18 15:52:23 2019
  OS/Arch: linux/amd64
  Experimental: false
 containerd:
  Version: 1.2.10
  GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version: 1.0.0-rc8+dev
  GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version: 0.18.0
  GitCommit: fec3683

pip show kolla-ansible:
Name: kolla-ansible
Version: 8.0.1
Summary: Ansible Deployment of Kolla containers
Home-page: https://docs.openstack.org/kolla-ansible/latest/
Author: OpenStack
Author-email: <email address hidden>
License: Apache License, Version 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: oslo.utils, jmespath, oslo.config, PyYAML, setuptools, pbr, six, Jinja2, netaddr, cryptography, docker
Required-by:

Revision history for this message
Brijesh (brijesh.mishra) wrote :
tags: added: ansible kolla
tags: added: deployment onos with
Revision history for this message
Brijesh (brijesh.mishra) wrote :
Revision history for this message
Brijesh (brijesh.mishra) wrote :
Revision history for this message
Brijesh (brijesh.mishra) wrote :
Revision history for this message
Mark Goddard (mgoddard) wrote :

Hi Brijesh. We don't currently include the ONOS plugin in our neutron-server image. In fact, it looks like the networking-onos plugin hasn't been released since 2015: https://pypi.org/project/networking-onos/#history. I would consider an alternative.

Changed in kolla-ansible:
status: New → Opinion
Revision history for this message
Brijesh (brijesh.mishra) wrote :

Hi Mark

Where it should be installed, inside neutron-server container?
But my neutron-server container is in restarting state so i am not able to login into that.

Revision history for this message
Mark Goddard (mgoddard) wrote :

I would expect it needs to be installed in neutron-server, yes. Rebuild the image with that package installed. Or if you remove the driver from config it should start ok.

But seriously, the project is dead as far as I can tell.

Revision history for this message
Brijesh (brijesh.mishra) wrote :

So you mean to say that onos will not be supported in kolla ansible, right?

Revision history for this message
Mark Goddard (mgoddard) wrote :

We won't support software that itself is not supported.

Revision history for this message
Brijesh (brijesh.mishra) wrote :

So which SDN is compatible with kolla anisble (For stein release)?

Revision history for this message
Mark Goddard (mgoddard) wrote :

Well it's not just kolla ansible - the networking-onos plugin is no longer maintained.

We have OpenDaylight support, although I have not used it and I understand the version of ODL is quite old now. We are considering adding support for OVN in the next release (Ussuri).

I just checked, and ONOS support was added to kolla-ansible in the Stein release: https://review.opendev.org/#/c/551826/. I would suggest getting in touch with someone from 99cloud (e.g. Jeffrey4l or caoyuan) to ask about how they are using it.

Revision history for this message
Brijesh (brijesh.mishra) wrote :

I have already gone through this review and done all the required changes but still i am getting above error.

Revision history for this message
Mark Goddard (mgoddard) wrote :

That's because we don't install networking-onos in the neutron-server container image. You would need to do that yourself. https://docs.openstack.org/kolla/latest/admin/image-building.html

Revision history for this message
Brijesh (brijesh.mishra) wrote :

Thanks Mark for the info.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Mark, being precise, support was added in Rocky and it broke in Stein. :-)

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Brijesh, OpenStack in general seems to support OpenDaylight, kolla-ansible deploys some old version (which we are deprecating already) but it should be easy to integrate with externally deployed OpenDaylight using config overrides. If you are looking for a fully-fledged SDN solution that works with OpenStack, then ODL is your best bet. Sharing words of wisdom, make sure you really need the SDN platform - it always adds complexity and we have all seen ppl who would be fine with bare Neutron.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.