Ejemplo n.º 1
0
def main():
    # NOTE(jaosorior): This is needed in order for db-sync to also register the
    # keystonemiddleware options. Those options are used by clients that need a
    # keystone session in order to be able to register their actions.
    # This can be removed when mistral moves out of using keystonemiddleware in
    # favor of keystoneauth1.
    for group, opts in keystonemw_opts.list_auth_token_opts():
        CONF.register_opts(opts, group=group)

    CONF.register_cli_opt(config.os_actions_mapping_path)

    logging.register_options(CONF)

    config.parse_args()

    if len(CONF.config_file) == 0:
        print("Usage: sync_db --config-file <path-to-config-file>")
        return exit(1)
    logging.setup(CONF, 'Mistral')

    LOG.info("Starting db_sync")

    LOG.debug("Setting up db")
    db_api.setup_db()

    LOG.debug("populating db")
    action_manager.sync_db()
    workflows.sync_db()
Ejemplo n.º 2
0
def main():
    config.parse_args()

    if len(CONF.config_file) == 0:
        print("Usage: sync_db --config-file <path-to-config-file>")
        return exit(1)

    logging.setup(CONF, 'Mistral')

    db_api.setup_db()

    action_manager.sync_db()
    workflows.sync_db()
Ejemplo n.º 3
0
def main():
    config.parse_args()

    if len(CONF.config_file) == 0:
        print "Usage: sync_db --config-file <path-to-config-file>"
        return exit(1)

    logging.setup('Mistral')

    db_api.setup_db()

    action_manager.sync_db()
    workflows.sync_db()
Ejemplo n.º 4
0
def do_populate(config, cmd):
    action_manager.sync_db()
    workflows.sync_db()
Ejemplo n.º 5
0
def do_populate(config, cmd):
    action_manager.sync_db()
    workflows.sync_db()
Ejemplo n.º 6
0
def do_populate(config, cmd):
    LOG.info("Populating db")
    action_manager.sync_db()
    workflows.sync_db()
Ejemplo n.º 7
0
def do_populate(config, cmd):
    LOG.info("Populating db")
    action_manager.sync_db()
    workflows.sync_db()