metaplugin fails with table doesn't exist

Bug #1206717 reported by fumihiko kakuma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
fumihiko kakuma

Bug Description

While I use metaplugin on neutron, I found a bug.
It is that a variable _ENGINE in db/api.py was renamed to _DB_ENGINE
but it in meta_neutron_plugin.py is not renamed.
It cases errors around the following.

2013-07-30 15:49:36.766 3819 TRACE neutron.service ProgrammingError: (ProgrammingError) (1146, "Table 'neutron_metaplugin.network_states' doesn't exist") 'SELECT network_states.physical_network AS network_states_physical_network, network_states.vlan_id AS network_states_vlan_id, network_states.allocated AS network_states_allocated \nFROM network_states' ()

I attached a patch file for this bug.

Revision history for this message
fumihiko kakuma (kakuma) wrote :
tags: added: db low-hanging-fruit metaplugin
Changed in neutron:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
fumihiko kakuma (kakuma) wrote :

Thank you for your check. This occurs in case of loading the second plugin.

Revision history for this message
Nachi Ueno (nati-ueno) wrote :

Hi Kakuma-san

Thank you for your finding this
Could you send your patch for gerrit review?

Revision history for this message
fumihiko kakuma (kakuma) wrote :

Hi Ueno-san

I am sending a patch for gerrit now.

regards

Changed in neutron:
assignee: nobody → fumihiko kakuma (kakuma)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/39860
Committed: http://github.com/openstack/neutron/commit/19cc71d6331753f439bea24d0e9fb0ee7c39ef36
Submitter: Jenkins
Branch: master

commit 19cc71d6331753f439bea24d0e9fb0ee7c39ef36
Author: fumihiko kakuma <email address hidden>
Date: Fri Aug 2 13:38:23 2013 +0900

    Rename a variable name _ENGINE to _DB_ENGINE in metaplugin.

    fixes bug 1206717

    Change-Id: I9050021a9198b06d6796098282effd34ecd61710

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
milestone: none → havana-3
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-3 → 2013.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.