<s> from oslo_config import cfg <EOL> DEFAULT_GROUP_NAME = "<STR_LIT>" <EOL> METRICS_GROUP_NAME = "<STR_LIT>" <EOL> TRUSTED_GROUP_NAME = "<STR_LIT>" <EOL> host_subset_size_opt = cfg . IntOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:1> , <EOL> help = """<STR_LIT>""" ) <EOL> bm_default_filter_opt = cfg . ListOpt ( "<STR_LIT>" , <EOL> default = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] , <EOL> help = """<STR_LIT>""" ) <EOL> use_bm_filters_opt = cfg . BoolOpt ( "<STR_LIT>" , <EOL> default = False , <EOL> help = """<STR_LIT>""" ) <EOL> host_mgr_avail_filt_opt = cfg . MultiStrOpt ( "<STR_LIT>" , <EOL> default = [ "<STR_LIT>" ] , <EOL> help = """<STR_LIT>""" ) <EOL> host_mgr_default_filt_opt = cfg . ListOpt ( "<STR_LIT>" , <EOL> default = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] , <EOL> help = """<STR_LIT>""" ) <EOL> host_mgr_sched_wgt_cls_opt = cfg . ListOpt ( "<STR_LIT>" , <EOL> default = [ "<STR_LIT>" ] , <EOL> help = """<STR_LIT>""" ) <EOL> host_mgr_tracks_inst_chg_opt = cfg . BoolOpt ( "<STR_LIT>" , <EOL> default = True , <EOL> help = """<STR_LIT>""" ) <EOL> rpc_sched_topic_opt = cfg . StrOpt ( "<STR_LIT>" , <EOL> default = "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) <EOL> scheduler_json_config_location_opt = cfg . StrOpt ( <EOL> "<STR_LIT>" , <EOL> default = "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) <EOL> sched_driver_host_mgr_opt = cfg . StrOpt ( "<STR_LIT>" , <EOL> default = "<STR_LIT>" , <EOL> choices = ( "<STR_LIT>" , "<STR_LIT>" ) , <EOL> help = """<STR_LIT>""" ) <EOL> driver_opt = cfg . StrOpt ( "<STR_LIT>" , <EOL> default = "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) <EOL> driver_period_opt = cfg . IntOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT> , <EOL> help = """<STR_LIT>""" ) <EOL> isolated_img_opt = cfg . ListOpt ( "<STR_LIT>" , <EOL> default = [ ] , <EOL> help = """<STR_LIT>""" ) <EOL> isolated_host_opt = cfg . ListOpt ( "<STR_LIT>" , <EOL> default = [ ] , <EOL> help = """<STR_LIT>""" ) <EOL> restrict_iso_host_img_opt = cfg . BoolOpt ( <EOL> "<STR_LIT>" , <EOL> default = True , <EOL> help = """<STR_LIT>""" ) <EOL> trusted_opts = [ <EOL> cfg . StrOpt ( "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . StrOpt ( "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . StrOpt ( "<STR_LIT>" , <EOL> default = "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . StrOpt ( "<STR_LIT>" , <EOL> default = "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . StrOpt ( "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . IntOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT> , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . BoolOpt ( "<STR_LIT>" , <EOL> default = False , <EOL> help = """<STR_LIT>""" ) , <EOL> ] <EOL> max_io_ops_per_host_opt = cfg . IntOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:8> , <EOL> help = """<STR_LIT>""" ) <EOL> agg_img_prop_iso_namespace_opt = cfg . StrOpt ( <EOL> "<STR_LIT>" , <EOL> help = """<STR_LIT>""" ) <EOL> agg_img_prop_iso_separator_opt = cfg . StrOpt ( <EOL> "<STR_LIT>" , <EOL> default = "<STR_LIT:.>" , <EOL> help = """<STR_LIT>""" ) <EOL> max_instances_per_host_opt = cfg . IntOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:50> , <EOL> help = """<STR_LIT>""" ) <EOL> ram_weight_mult_opt = cfg . FloatOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:1.0> , <EOL> help = """<STR_LIT>""" ) <EOL> disk_weight_mult_opt = cfg . FloatOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:1.0> , <EOL> help = "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> io_ops_weight_mult_opt = cfg . FloatOpt ( "<STR_LIT>" , <EOL> default = - <NUM_LIT:1.0> , <EOL> help = """<STR_LIT>""" ) <EOL> metrics_weight_opts = [ <EOL> cfg . FloatOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:1.0> , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . ListOpt ( "<STR_LIT>" , <EOL> default = [ ] , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . BoolOpt ( "<STR_LIT>" , <EOL> default = True , <EOL> help = """<STR_LIT>""" ) , <EOL> cfg . FloatOpt ( "<STR_LIT>" , <EOL> default = float ( - <NUM_LIT> ) , <EOL> help = """<STR_LIT>""" ) , <EOL> ] <EOL> scheduler_max_att_opt = cfg . IntOpt ( "<STR_LIT>" , <EOL> default = <NUM_LIT:3> , <EOL> help = """<STR_LIT>""" ) <EOL> soft_affinity_weight_opt = cfg . FloatOpt ( '<STR_LIT>' , <EOL> default = <NUM_LIT:1.0> , <EOL> help = '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> soft_anti_affinity_weight_opt = cfg . FloatOpt ( <EOL> '<STR_LIT>' , <EOL> default = <NUM_LIT:1.0> , <EOL> help = '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> default_opts = [ host_subset_size_opt , <EOL> bm_default_filter_opt , <EOL> use_bm_filters_opt , <EOL> host_mgr_avail_filt_opt , <EOL> host_mgr_default_filt_opt , <EOL> host_mgr_sched_wgt_cls_opt , <EOL> host_mgr_tracks_inst_chg_opt , <EOL> rpc_sched_topic_opt , <EOL> sched_driver_host_mgr_opt , <EOL> driver_opt , <EOL> driver_period_opt , <EOL> scheduler_json_config_location_opt , <EOL> isolated_img_opt , <EOL> isolated_host_opt , <EOL> restrict_iso_host_img_opt , <EOL> max_io_ops_per_host_opt , <EOL> agg_img_prop_iso_namespace_opt , <EOL> agg_img_prop_iso_separator_opt , <EOL> max_instances_per_host_opt , <EOL> ram_weight_mult_opt , <EOL> disk_weight_mult_opt , <EOL> io_ops_weight_mult_opt , <EOL> scheduler_max_att_opt , <EOL> soft_affinity_weight_opt , <EOL> soft_anti_affinity_weight_opt , <EOL> ] <EOL> def register_opts ( conf ) : <EOL> conf . register_opts ( default_opts ) <EOL> trust_group = cfg . OptGroup ( name = TRUSTED_GROUP_NAME , <EOL> title = "<STR_LIT>" ) <EOL> conf . register_group ( trust_group ) <EOL> conf . register_opts ( trusted_opts , group = trust_group ) <EOL> conf . register_opts ( metrics_weight_opts , group = METRICS_GROUP_NAME ) <EOL> def list_opts ( ) : <EOL> return { DEFAULT_GROUP_NAME : default_opts , <EOL> TRUSTED_GROUP_NAME : trusted_opts , <EOL> METRICS_GROUP_NAME : metrics_weight_opts , <EOL> } </s>
