Example #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()
Example #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()
Example #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))
Example #4
0
File: main.py Project: 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))
Example #5
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
Example #6
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     pb.setup_plugins()
     castellan.validate_config()
Example #7
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
Example #8
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
Example #9
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
Example #10
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
Example #11
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
Example #12
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
Example #13
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
Example #14
0
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()
Example #15
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
Example #16
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
Example #17
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
Example #18
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
Example #19
0
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()