예제 #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()
예제 #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()
예제 #3
0
파일: main.py 프로젝트: jlozadad/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)
    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))
예제 #4
0
파일: main.py 프로젝트: 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))
예제 #5
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
예제 #6
0
 def setUp(self):
     super(TestJobManager, self).setUp()
     p.patch_minidom_writexml()
     pb.setup_plugins()
     castellan.validate_config()
예제 #7
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
예제 #8
0
 def setUp(self):
     super(TestInternalSwift, self).setUp()
     castellan.validate_config()
예제 #9
0
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
예제 #10
0
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
예제 #11
0
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
예제 #12
0
 def setUp(self):
     super(TestSwiftType, self).setUp()
     castellan.validate_config()
     self.i_s = SwiftType()
예제 #13
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
예제 #14
0
파일: main.py 프로젝트: openstack/sahara
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()
예제 #15
0
파일: test_edp.py 프로젝트: Imperat/sahara
 def setUp(self):
     super(JobBinaryTest, self).setUp()
     castellan.validate_config()
예제 #16
0
파일: test_edp.py 프로젝트: Imperat/sahara
 def setUp(self):
     super(JobExecutionTest, self).setUp()
     castellan.validate_config()
예제 #17
0
파일: test_edp.py 프로젝트: Imperat/sahara
 def setUp(self):
     super(DataSourceTest, self).setUp()
     castellan.validate_config()
예제 #18
0
 def setUp(self):
     super(TestPeriodicBack, self).setUp()
     self.api = manager.ConductorManager()
     castellan.validate_config()
예제 #19
0
파일: main.py 프로젝트: Mimansa04/sahara
def validate_castellan_config():
    with admin_context():
        castellan.validate_config()