コード例 #1
0
ファイル: sink.py プロジェクト: NeCTAR-RC/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')

    server = sink_service.Service()
    service.serve(server, workers=CONF['service:sink'].workers)
    service.wait()
コード例 #2
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')

    server = sink_service.Service()
    service.serve(server, workers=CONF['service:sink'].workers)
    service.wait()
コード例 #3
0
ファイル: mdns.py プロジェクト: raychorn/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')

    server = mdns_service.Service.create(binary='designate-mdns')
    service.serve(server, workers=CONF['service:mdns'].workers)
    service.wait()
コード例 #4
0
ファイル: pool_manager.py プロジェクト: openstack/designate
def main():
    utils.read_config('designate', sys.argv)

    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.
    if cfg.CONF['service:worker'].enabled:
        LOG.error('You have designate-worker enabled, starting '
                  'designate-pool-manager is incompatible with '
                  'designate-worker. You need to start '
                  'designate-worker instead.')
        sys.exit(1)

    debtcollector.deprecate('designate-pool-manager is deprecated in favor of '
                            'designate-worker', version='newton',
                            removal_version='rocky')

    server = pool_manager_service.Service(
        threads=CONF['service:pool_manager'].threads
    )

    hookpoints.log_hook_setup()

    service.serve(server, workers=CONF['service:pool_manager'].workers)
    server.heartbeat_emitter.start()
    service.wait()
コード例 #5
0
ファイル: zone_manager.py プロジェクト: mrlesmithjr/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.

    if cfg.CONF['service:worker'].enabled:
        LOG.error('You have designate-worker enabled, starting '
                  'designate-zone-manager is incompatible with '
                  'designate-worker. You need to start '
                  'designate-producer instead.')
        sys.exit(1)

    debtcollector.deprecate('designate-zone-manager Is deprecated in '
                            'favor of the designate-producer',
                            version='newton',
                            removal_version='rocky')

    LOG.warning('Starting designate-producer under the zone-manager name')

    server = producer_service.Service(
        threads=CONF['service:zone_manager'].threads)
    service.serve(server, workers=CONF['service:zone_manager'].workers)
    service.wait()
コード例 #6
0
ファイル: zone_manager.py プロジェクト: markllama/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.

    if CONF['service:worker'].enabled:
        LOG.error('You have designate-worker enabled, starting '
                  'designate-zone-manager is incompatible with '
                  'designate-worker. You need to start '
                  'designate-producer instead.')
        sys.exit(1)

    debtcollector.deprecate(
        'designate-zone-manager Is deprecated in '
        'favor of the designate-producer',
        version='newton',
        removal_version='rocky')

    LOG.warning('Starting designate-producer under the zone-manager name')

    server = producer_service.Service(
        threads=CONF['service:zone_manager'].threads)
    service.serve(server, workers=CONF['service:zone_manager'].workers)
    server.heartbeat_emitter.start()
    service.wait()
コード例 #7
0
ファイル: mdns.py プロジェクト: rvadim/designate
def main():
    utils.read_config("designate", sys.argv)
    logging.setup("designate")

    server = mdns_service.Service.create(binary="designate-mdns")
    service.serve(server, workers=CONF["service:mdns"].workers)
    service.wait()
コード例 #8
0
def main():
    utils.read_config('designate', sys.argv)

    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.
    if cfg.CONF['service:worker'].enabled:
        LOG.error(
            _LE('You have designate-worker enabled, starting '
                'designate-pool-manager is incompatible with '
                'designate-worker. You need to start '
                'designate-worker instead.'))
        sys.exit(1)

    LOG.warning(
        _LW('designate-pool-manager is DEPRECATED in favor of '
            'designate-worker and will be removed during the Ocata '
            'cycle'))

    server = pool_manager_service.Service(
        threads=CONF['service:pool_manager'].threads)

    hookpoints.log_hook_setup()

    service.serve(server, workers=CONF['service:pool_manager'].workers)
    service.wait()
コード例 #9
0
def main():
    utils.read_config('designate', sys.argv)

    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.
    if cfg.CONF['service:worker'].enabled:
        LOG.error('You have designate-worker enabled, starting '
                  'designate-pool-manager is incompatible with '
                  'designate-worker. You need to start '
                  'designate-worker instead.')
        sys.exit(1)

    debtcollector.deprecate('designate-pool-manager is deprecated in favor of '
                            'designate-worker', version='newton',
                            removal_version='rocky')

    server = pool_manager_service.Service(
        threads=CONF['service:pool_manager'].threads
    )

    hookpoints.log_hook_setup()

    service.serve(server, workers=CONF['service:pool_manager'].workers)
    service.wait()
コード例 #10
0
ファイル: agent.py プロジェクト: AnatolyZimin/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    utils.setup_gmr(log_dir=cfg.CONF.log_dir)

    server = agent_service.Service(threads=CONF['service:agent'].threads)
    service.serve(server, workers=CONF['service:agent'].workers)
    service.wait()
コード例 #11
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')

    server = central.Service.create(binary='designate-central',
                                    service_name='central')
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
コード例 #12
0
ファイル: agent.py プロジェクト: akshatknsl/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')

    server = agent_service.Service.create(
        binary='designate-agent')
    service.serve(server, workers=CONF['service:agent'].workers)
    service.wait()
コード例 #13
0
ファイル: central.py プロジェクト: stenstad/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    utils.setup_gmr(log_dir=cfg.CONF.log_dir)

    server = central.Service(threads=CONF['service:central'].threads)
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
コード例 #14
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    utils.setup_gmr(log_dir=cfg.CONF.log_dir)

    server = mdns_service.Service()
    service.serve(server, workers=CONF['service:mdns'].workers)
    service.wait()
コード例 #15
0
ファイル: pool_manager.py プロジェクト: Vegasq/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup('designate')

    server = pool_manager_service.Service.create(
        binary='designate-pool-manager')
    service.serve(server, workers=CONF['service:pool_manager'].workers)
    service.wait()
コード例 #16
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    server = zone_manager_service.Service(
        threads=CONF['service:zone_manager'].threads)
    service.serve(server, workers=CONF['service:zone_manager'].workers)
    service.wait()
コード例 #17
0
ファイル: zone_manager.py プロジェクト: imerali/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    server = zone_manager_service.Service(
        threads=CONF['service:zone_manager'].threads)
    service.serve(server, workers=CONF['service:zone_manager'].workers)
    service.wait()
コード例 #18
0
ファイル: central.py プロジェクト: ISCAS-VDI/designate-base
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = central.Service(threads=CONF['service:central'].threads)
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
コード例 #19
0
ファイル: sink.py プロジェクト: kiall/designate-py3
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    utils.setup_gmr(log_dir=cfg.CONF.log_dir)

    hookpoints.log_hook_setup()

    server = sink_service.Service(threads=CONF['service:sink'].threads)
    service.serve(server, workers=CONF['service:sink'].workers)
    service.wait()
コード例 #20
0
ファイル: central.py プロジェクト: bias/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    utils.setup_gmr(log_dir=cfg.CONF.log_dir)

    hookpoints.log_hook_setup()

    server = central.Service(threads=CONF['service:central'].threads)
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
コード例 #21
0
ファイル: central.py プロジェクト: bopopescu/OpenStack-Ocata
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = central.Service(threads=CONF['service:central'].threads)
    service.serve(server, workers=CONF['service:central'].workers)
    service.wait()
コード例 #22
0
ファイル: mdns.py プロジェクト: openstack/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = mdns_service.Service(threads=CONF['service:mdns'].threads)
    service.serve(server, workers=CONF['service:mdns'].workers)
    server.heartbeat_emitter.start()
    service.wait()
コード例 #23
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = mdns_service.Service(threads=CONF['service:mdns'].threads)
    service.serve(server, workers=CONF['service:mdns'].workers)
    server.heartbeat_emitter.start()
    service.wait()
コード例 #24
0
ファイル: sink.py プロジェクト: tucows/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = sink_service.Service()
    heartbeat = heartbeat_emitter.get_heartbeat_emitter(server.service_name)
    service.serve(server, workers=CONF['service:sink'].workers)
    heartbeat.start()
    service.wait()
コード例 #25
0
ファイル: worker.py プロジェクト: binaryflesh/designate
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    hookpoints.log_hook_setup()

    server = worker_service.Service()
    heartbeat = service.Heartbeat(server.service_name, server.tg)
    service.serve(server, workers=CONF['service:worker'].workers)
    heartbeat.start()
    service.wait()
コード例 #26
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.
    if not cfg.CONF['service:worker'].enabled:
        LOG.error('You do not have designate-worker enabled, starting '
                  'designate-producer is not allowed. '
                  'You need to start designate-zone-manager instead.')
        sys.exit(1)

    hookpoints.log_hook_setup()

    server = producer_service.Service(threads=CONF['service:producer'].threads)
    service.serve(server, workers=CONF['service:producer'].workers)
    service.wait()
コード例 #27
0
def main():
    utils.read_config('designate', sys.argv)
    logging.setup(CONF, 'designate')
    gmr.TextGuruMeditation.setup_autorun(version)

    # NOTE(timsim): This is to ensure people don't start the wrong
    #               services when the worker model is enabled.
    if cfg.CONF['service:worker'].enabled:
        LOG.error(
            _LE('You have designate-worker enabled, starting '
                'designate-zone-manager is incompatible with '
                'designate-worker. You need to start '
                'designate-producer instead.'))
        sys.exit(1)

    LOG.warning(
        _LW('designate-zone-manager is DEPRECATED in favor of '
            'designate-producer, starting designate-producer '
            'under the zone-manager name'))

    server = producer_service.Service(
        threads=CONF['service:zone_manager'].threads)
    service.serve(server, workers=CONF['service:zone_manager'].workers)
    service.wait()