← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1248342] Re: database connection should be defined via sql_connection

 

** Changed in: neutron
       Status: New => Invalid

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

Title:
  database connection should be defined via sql_connection

Status in OpenStack Neutron (virtual network service):
  Invalid

Bug description:
  The database string defined inside ovs_neutron_plugin.ini used to be
  set using sql_connection - as is the case with just about every other
  OpenStack project configuration.  Somewhere between quantum and
  neutron releases, this was changed to use 'connection' and is now
  different from the rest of the OpenStack projects.

  sqlalchemy's driver sets up the connection using sql_connection:

  Initializing:

  * Call set_defaults with the minimal of the following kwargs:
      sql_connection, sqlite_db

    Example:

      session.set_defaults(
          sql_connection="sqlite:///var/lib/neutron/sqlite.db",
          sqlite_db="/var/lib/neutron/sqlite.db")

  
  However, the inline documentation instructs the administrator to use the string 'connection=':

  #-----------------------------------------------------------------------------
  # Sample Configurations.
  #-----------------------------------------------------------------------------
  #
  # 1. With VLANs on eth1.
  # [database]
  # connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron

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