def start_fake_taskmanager(conf): topic = conf.taskmanager_queue from trove.common.rpc import service as rpc_service from trove.taskmanager import manager manager_impl = manager.Manager() taskman_service = rpc_service.Service(None, topic=topic, manager=manager_impl) taskman_service.start()
def initialize_trove(config_file): from trove.openstack.common import pastedeploy cfg.CONF(args=[], project='trove', default_config_files=[config_file]) logging.setup(None) topic = CONF.taskmanager_queue from trove.taskmanager import manager manager_impl = manager.Manager() taskman_service = rpc_service.Service(None, topic=topic, manager=manager_impl) taskman_service.start() return pastedeploy.paste_deploy_app(config_file, 'trove', {})