Fixup resync
This commit is contained in:
parent
313b9d1603
commit
2b605025c1
@ -7,20 +7,20 @@ from oslo.config import cfg
|
|||||||
from billingstack.openstack.common import log as logging
|
from billingstack.openstack.common import log as logging
|
||||||
|
|
||||||
from billingstack import service
|
from billingstack import service
|
||||||
from billingstack.rating.storage import get_connection
|
from billingstack.biller.storage import get_connection
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
cfg.CONF.import_opt('storage_driver', 'billingstack.rating.storage',
|
cfg.CONF.import_opt('storage_driver', 'billingstack.biller.storage',
|
||||||
group='service:rating')
|
group='service:biller')
|
||||||
|
|
||||||
cfg.CONF.import_opt('state_path', 'billingstack.paths')
|
cfg.CONF.import_opt('state_path', 'billingstack.paths')
|
||||||
|
|
||||||
cfg.CONF.import_opt('database_connection',
|
cfg.CONF.import_opt('database_connection',
|
||||||
'billingstack.rating.storage.impl_sqlalchemy',
|
'billingstack.biller.storage.impl_sqlalchemy',
|
||||||
group='rating:sqlalchemy')
|
group='biller:sqlalchemy')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
@ -7,26 +7,26 @@ from oslo.config import cfg
|
|||||||
from billingstack.openstack.common import log as logging
|
from billingstack.openstack.common import log as logging
|
||||||
|
|
||||||
from billingstack import service
|
from billingstack import service
|
||||||
from billingstack.identity.base import IdentityPlugin
|
from billingstack.rater.storage import get_connection
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
cfg.CONF.import_opt('storage_driver', 'billingstack.identity.api',
|
cfg.CONF.import_opt('storage_driver', 'billingstack.rater.storage',
|
||||||
group='service:identity_api')
|
group='service:rater')
|
||||||
|
|
||||||
cfg.CONF.import_opt('state_path', 'billingstack.paths')
|
cfg.CONF.import_opt('state_path', 'billingstack.paths')
|
||||||
|
|
||||||
cfg.CONF.import_opt('database_connection',
|
cfg.CONF.import_opt('database_connection',
|
||||||
'billingstack.identity.impl_sqlalchemy',
|
'billingstack.rater.storage.impl_sqlalchemy',
|
||||||
group='identity:sqlalchemy')
|
group='rater:sqlalchemy')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
service.prepare_service(sys.argv)
|
service.prepare_service(sys.argv)
|
||||||
plugin = IdentityPlugin.get_plugin()()
|
connection = get_connection()
|
||||||
|
|
||||||
LOG.info("Re-Syncing database")
|
LOG.info("Re-Syncing database")
|
||||||
plugin.teardown_schema()
|
connection.teardown_schema()
|
||||||
plugin.setup_schema()
|
connection.setup_schema()
|
Loading…
x
Reference in New Issue
Block a user