NSX: exception when creating a flat network

Bug #1324120 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Gary Kotton
Icehouse
Fix Released
Undecided
Unassigned

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

Gary Kotton (garyk)
Changed in neutron:
importance: Undecided → High
assignee: nobody → Gary Kotton (garyk)
milestone: none → juno-1
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/96168

Changed in neutron:
status: New → In Progress
Aaron Rosen (arosen)
tags: added: nicira
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/96168
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=84dfaa8a87cce660aa20619bd93263e645bbb2d0
Submitter: Jenkins
Branch: master

commit 84dfaa8a87cce660aa20619bd93263e645bbb2d0
Author: Gary Kotton <email address hidden>
Date: Wed May 28 06:37:16 2014 -0700

    NSX: fix bug for flat provider network

    The flat provider network would cause an exception when writing to
    database. This is due to the fact that the DB expected an integer
    and received an object instead.

    Change-Id: Ib9d38711c0c2ef16d8bf74bfae44864a1bc272b1
    Closes-bug: #1324120

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/96672

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/icehouse)

Reviewed: https://review.openstack.org/96672
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a4b467d19a52f4a628cc8e360131ea5ab07f0392
Submitter: Jenkins
Branch: stable/icehouse

commit a4b467d19a52f4a628cc8e360131ea5ab07f0392
Author: Gary Kotton <email address hidden>
Date: Wed May 28 06:37:16 2014 -0700

    NSX: fix bug for flat provider network

    The flat provider network would cause an exception when writing to
    database. This is due to the fact that the DB expected an integer
    and received an object instead.

    Change-Id: Ib9d38711c0c2ef16d8bf74bfae44864a1bc272b1
    Closes-bug: #1324120
    (cherry picked from commit 84dfaa8a87cce660aa20619bd93263e645bbb2d0)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Chuck Short (zulcss)
tags: removed: icehouse-backport-potential
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
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.