Exemplo n.º 1
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     self.override_config('plugins', ['fake'])
     pb.setup_plugins()
     castellan.validate_config()
     ds_manager.setup_data_sources()
Exemplo n.º 2
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     self.override_config('plugins', ['fake'])
     pb.setup_plugins()
     castellan.validate_config()
     ds_manager.setup_data_sources()
Exemplo n.º 3
0
def setup_common(possible_topdir, service_name):
    dev_conf = os.path.join(possible_topdir, 'etc', 'sahara', 'sahara.conf')
    config_files = None
    if os.path.exists(dev_conf):
        config_files = [dev_conf]

    config.parse_configs(config_files)
    common_config.set_config_defaults()
    log.setup(CONF, "sahara")

    # Validate other configurations (that may produce logs) here
    cinder.validate_config()
    castellan.validate_config()

    messaging.setup(service_name)

    plugins_base.setup_plugins()

    LOG.info(_LI('Sahara {service} started').format(service=service_name))
Exemplo n.º 4
0
Arquivo: main.py Projeto: uladz/sahara
def setup_common(possible_topdir, service_name):
    dev_conf = os.path.join(possible_topdir,
                            'etc',
                            'sahara',
                            'sahara.conf')
    config_files = None
    if os.path.exists(dev_conf):
        config_files = [dev_conf]

    config.parse_configs(config_files)
    log.setup(CONF, "sahara")

    # Validate other configurations (that may produce logs) here
    cinder.validate_config()
    castellan.validate_config()

    if service_name != 'all-in-one' or cfg.CONF.enable_notifications:
        messaging.setup()

    plugins_base.setup_plugins()

    LOG.info(_LI('Sahara {service} started').format(service=service_name))
Exemplo n.º 5
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
Exemplo n.º 6
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     pb.setup_plugins()
     castellan.validate_config()
Exemplo n.º 7
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
Exemplo n.º 8
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
Exemplo n.º 9
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
Exemplo n.º 10
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
Exemplo n.º 11
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
Exemplo n.º 12
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
Exemplo n.º 13
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
Exemplo n.º 14
0
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()
Exemplo n.º 15
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
Exemplo n.º 16
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
Exemplo n.º 17
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
Exemplo n.º 18
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
Exemplo n.º 19
0
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()