← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1324120] [NEW] NSX: exception when creating a flat network

 

Public bug reported:

2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session RuntimeError: maximum recursion depth exceeded
2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session 

Problem is the line
https://github.com/openstack/neutron/blob/master/neutron/plugins/vmware/plugins/base.py#L1012.
A flat network will return an object instead of 0

** Affects: neutron
     Importance: High
     Assignee: Gary Kotton (garyk)
         Status: New


** Tags: icehouse-backport-potential

** Changed in: neutron
   Importance: Undecided => High

** Changed in: neutron
     Assignee: (unassigned) => Gary Kotton (garyk)

** Changed in: neutron
    Milestone: None => juno-1

** Tags added: icehouse-backport-potential

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1324120

Title:
  NSX: exception when creating a flat network

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session   File "/usr/lib/python2.7/dist-packages/MySQLdb/converters.py", line 97, in Instance2Str
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session     return d[o.__class__](o, d)
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session RuntimeError: maximum recursion depth exceeded
  2014-05-28 05:38:02.696 TRACE neutron.openstack.common.db.sqlalchemy.session 

  Problem is the line
  https://github.com/openstack/neutron/blob/master/neutron/plugins/vmware/plugins/base.py#L1012.
  A flat network will return an object instead of 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1324120/+subscriptions


Follow ups

References