Seems like db is now in both api and reg

This commit is contained in:
Joshua Harlow
2012-06-04 13:46:25 -07:00
parent 5b8b98907f
commit c1af6eafb0

View File

@@ -129,9 +129,9 @@ class GlanceInstaller(GlanceMixin, comp.PythonInstallComponent):
config.set('DEFAULT', 'debug', True)
config.set('DEFAULT', 'verbose', True)
config.set('DEFAULT', 'bind_port', params['endpoints']['registry']['port'])
config.remove_option('DEFAULT', 'log_file')
config.set('DEFAULT', 'sql_connection',
dbhelper.fetch_dbdsn(self.cfg, DB_NAME, utf8=True))
config.remove_option('DEFAULT', 'log_file')
config.set('paste_deploy', 'flavor', 'keystone')
return config.stringify(fn)
return contents
@@ -166,6 +166,8 @@ class GlanceInstaller(GlanceMixin, comp.PythonInstallComponent):
config.set('DEFAULT', 'default_store', 'file')
config.set('DEFAULT', 'filesystem_store_datadir', img_store_dir)
config.set('DEFAULT', 'bind_port', params['endpoints']['public']['port'])
config.set('DEFAULT', 'sql_connection',
dbhelper.fetch_dbdsn(self.cfg, DB_NAME, utf8=True))
config.remove_option('DEFAULT', 'log_file')
config.set('paste_deploy', 'flavor', 'keystone')
LOG.info("Ensuring file system store directory %r exists and is empty." % (img_store_dir))