]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
sql_dbpool_enabled not passed to configured_db nvp_plugin
authorAaron Rosen <arosen@nicira.com>
Thu, 3 Jan 2013 23:18:51 +0000 (15:18 -0800)
committerAaron Rosen <arosen@nicira.com>
Fri, 4 Jan 2013 01:08:08 +0000 (17:08 -0800)
Introduced in 7b5f6fd6. Fixes bug 1095856

Change-Id: I34cca7cb489013b033a7426b37bbf9989f87e7ec

quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py

index 2838d1f35af3d348bbc518cc4e70a9b662593cfb..0241576485006607ed404785f6159d268ab3477e 100644 (file)
@@ -174,13 +174,6 @@ class NvpPluginV2(db_base_plugin_v2.QuantumDbPluginV2):
             cluster.api_client.login()
             self.clusters[c_opts['name']] = cluster
 
-        # Connect and configure nvp_quantum db
-        options = {
-            'sql_connection': self.db_opts['sql_connection'],
-            'sql_max_retries': self.db_opts['sql_max_retries'],
-            'reconnect_interval': self.db_opts['reconnect_interval'],
-            'base': models_v2.model_base.BASEV2,
-        }
         def_cluster_name = self.nvp_opts.default_cluster_name
         if def_cluster_name and def_cluster_name in self.clusters:
             self.default_cluster = self.clusters[def_cluster_name]
@@ -196,7 +189,7 @@ class NvpPluginV2(db_base_plugin_v2.QuantumDbPluginV2):
             # otherwise set 1st cluster as default
             self.default_cluster = self.clusters[first_cluster_name]
 
-        db.configure_db(options)
+        db.configure_db(self.db_opts)
         # Extend the fault map
         self._extend_fault_map()
         # Set up RPC interface for DHCP agent