src/rgw/setup/rgw.py
def start(conf: MappedConf, index: str):
        """Create rgw admin user and start rgw service."""

        Log.info(f'Configure logrotate for {const.COMPONENT_NAME} at path: {const.LOGROTATE_CONF}')
        Rgw._logrotate_generic(conf)

        # Before starting service,Verify backend store value=motr in rgw config file.
        Rgw._verify_backend_store_value(conf)

        # Create motr trace & addb stob dirctory.
        # Collect fid value of motr to create addb value.
        config_file = Rgw._get_rgw_config_path(conf)
        confstore_url = const.CONFSTORE_FILE_HANDLER + config_file
        Rgw._load_rgw_config(Rgw._conf_idx, confstore_url)
        motr_fid_key = const.MOTR_MY_FID % index
        motr_fid_value = Conf.get(Rgw._conf_idx, motr_fid_key)
        log_path = Rgw._get_log_dir_path(conf)
        motr_trace_dir = os.path.join(log_path, 'motr_trace_files')
        addb_dir = os.path.join(log_path, f'addb_files-{motr_fid_value}')
        os.makedirs(motr_trace_dir, exist_ok=True)
        os.makedirs(addb_dir, exist_ok=True)
        # Create rgw crash file directory
        rgw_core_dir = os.path.join(log_path, 'rgw_debug')
        os.makedirs(rgw_core_dir, exist_ok=True)

        Log.info('Starting radosgw service.')
        log_file = os.path.join(log_path, f'{const.COMPONENT_NAME}_startup.log')

        RgwService.start(conf, config_file, log_file, motr_trace_dir, rgw_core_dir, index)
        Log.info("Started radosgw service.")

        return 0
Create rgw admin user and start rgw service.
Create rgw admin user and start rgw service.
Create rgw admin user and start rgw service .
def start(conf: MappedConf, index: str):
        Log.info(f'Configure logrotate for {const.COMPONENT_NAME} at path: {const.LOGROTATE_CONF}')
        Rgw._logrotate_generic(conf)
        Rgw._verify_backend_store_value(conf)
        config_file = Rgw._get_rgw_config_path(conf)
        confstore_url = const.CONFSTORE_FILE_HANDLER + config_file
        Rgw._load_rgw_config(Rgw._conf_idx, confstore_url)
        motr_fid_key = const.MOTR_MY_FID % index
        motr_fid_value = Conf.get(Rgw._conf_idx, motr_fid_key)
        log_path = Rgw._get_log_dir_path(conf)
        motr_trace_dir = os.path.join(log_path, 'motr_trace_files')
        addb_dir = os.path.join(log_path, f'addb_files-{motr_fid_value}')
        os.makedirs(motr_trace_dir, exist_ok=True)
        os.makedirs(addb_dir, exist_ok=True)
        rgw_core_dir = os.path.join(log_path, 'rgw_debug')
        os.makedirs(rgw_core_dir, exist_ok=True)
        Log.info('Starting radosgw service.')
        log_file = os.path.join(log_path, f'{const.COMPONENT_NAME}_startup.log')
        RgwService.start(conf, config_file, log_file, motr_trace_dir, rgw_core_dir, index)
        Log.info("Started radosgw service.")
        return 0
def start ( conf : MappedConf , index : str ) : Log . info ( f'Configure logrotate for {const.COMPONENT_NAME} at path: {const.LOGROTATE_CONF}' ) Rgw . _logrotate_generic ( conf ) Rgw . _verify_backend_store_value ( conf ) config_file = Rgw . _get_rgw_config_path ( conf ) confstore_url = const . CONFSTORE_FILE_HANDLER + config_file Rgw . _load_rgw_config ( Rgw . _conf_idx , confstore_url ) motr_fid_key = const . MOTR_MY_FID % index motr_fid_value = Conf . get ( Rgw . _conf_idx , motr_fid_key ) log_path = Rgw . _get_log_dir_path ( conf ) motr_trace_dir = os . path . join ( log_path , 'motr_trace_files' ) addb_dir = os . path . join ( log_path , f'addb_files-{motr_fid_value}' ) os . makedirs ( motr_trace_dir , exist_ok = True ) os . makedirs ( addb_dir , exist_ok = True ) rgw_core_dir = os . path . join ( log_path , 'rgw_debug' ) os . makedirs ( rgw_core_dir , exist_ok = True ) Log . info ( 'Starting radosgw service.' ) log_file = os . path . join ( log_path , f'{const.COMPONENT_NAME}_startup.log' ) RgwService . start ( conf , config_file , log_file , motr_trace_dir , rgw_core_dir , index ) Log . info ( "Started radosgw service." ) return 0
Create rgw admin user and start rgw service.
Create rgw admin user and start rgw service .
"""Create rgw admin user and start rgw service.""" # Before starting service,Verify backend store value=motr in rgw config file. # Create motr trace & addb stob dirctory. # Collect fid value of motr to create addb value. # Create rgw crash file directory
conf
MappedConf
index
str