Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword Str keyword Str Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Assign NameStore Dict TryExcept body With Call NameLoad AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword AttributeLoad NameLoad attr Return Dict Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict TryExcept body With Call NameLoad AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Return BinOpAdd Call NameLoad Call NameLoad decorator_list
N/A N/A hashlib oslo_config cfg oslo_log log sahara context sahara exceptions ex sahara.i18n _ sahara.i18n _LW sahara.utils.openstack base b sahara.utils.openstack nova sahara.utils xmlutils x N/A TOPOLOGY_CONFIG N/A topology.node.switch.mapping.impl topology.script.file.name org.apache.hadoop.net.ScriptBasedMapping /etc/hadoop/topology.sh N/A LOG N/A N/A log getLogger __name__ N/A opts N/A N/A N/A cfg BoolOpt enable_data_locality default False help Enables data locality for hadoop cluster. Also enables data locality for Swift used by hadoop. If enabled, 'compute_topology' and 'swift_topology' configuration parameters should point to OpenStack and Swift topology correspondingly. N/A N/A cfg BoolOpt enable_hypervisor_awareness default True help Enables four-level topology for data locality. Works only if corresponding plugin supports such mode. N/A N/A cfg StrOpt compute_topology_file default etc/sahara/compute.topology help File with nova compute topology. It should contain mapping between nova computes and racks. N/A N/A cfg StrOpt swift_topology_file default etc/sahara/swift.topology help File with Swift topology.It should contain mapping between Swift nodes and racks. N/A CONF N/A cfg CONF N/A N/A N/A CONF register_opts opts _read_swift_topology N/A N/A N/A N/A N/A N/A N/A LOG debug N/A N/A Reading Swift nodes topology from {config} format config N/A CONF swift_topology_file N/A topology N/A N/A N/A N/A N/A open N/A CONF swift_topology_file f N/A N/A line f N/A N/A line N/A N/A line strip N/A N/A line N/A N/A N/A N/A host path N/A N/A line split N/A N/A topology N/A host path N/A N/A N/A IOError N/A N/A N/A N/A LOG warning N/A N/A N/A _LW Unable to read Swift nodes topology from {config} format config N/A CONF swift_topology_file N/A N/A N/A topology N/A _read_compute_topology N/A N/A N/A N/A N/A N/A N/A LOG debug N/A N/A Reading compute nodes topology from {config} format config N/A CONF compute_topology_file N/A ctx N/A N/A context ctx N/A tenant_id N/A str N/A ctx tenant_id N/A topology N/A N/A N/A N/A N/A open N/A CONF compute_topology_file f N/A N/A line f N/A N/A line N/A N/A line strip N/A N/A line N/A N/A N/A N/A host path N/A N/A line split N/A sha_hash N/A N/A hashlib sha224 N/A tenant_id host N/A N/A topology N/A N/A N/A sha_hash hexdigest path N/A N/A N/A IOError N/A N/A N/A N/A ex NotFoundException N/A CONF compute_topology_file N/A _ Unable to find file %s with compute topology N/A topology N/A generate_topology_map N/A N/A cluster is_node_awareness N/A N/A N/A mapping N/A _read_compute_topology N/A nova_client N/A N/A nova client N/A topology_mapping N/A N/A ng N/A cluster node_groups N/A N/A i N/A ng instances N/A N/A ni N/A N/A b execute_with_retries N/A N/A nova_client servers get N/A i instance_id N/A hostId N/A ni hostId N/A N/A hostId mapping N/A N/A N/A N/A ex NotFoundException N/A i instance_id N/A _ Was not able to find compute node topology for VM %s N/A rack N/A mapping N/A hostId N/A is_node_awareness N/A N/A rack N/A / hostId N/A N/A topology_mapping N/A N/A i instance_name rack N/A N/A topology_mapping N/A N/A i management_ip rack N/A N/A topology_mapping N/A N/A i internal_ip rack N/A N/A N/A topology_mapping update N/A _read_swift_topology N/A topology_mapping N/A vm_awareness_core_config N/A N/A N/A N/A N/A c N/A N/A x load_hadoop_xml_defaults topology/resources/core-template.xml N/A result N/A cfg N/A cfg c N/A cfg N/A value N/A N/A N/A CONF enable_hypervisor_awareness N/A N/A param N/A next N/A prop N/A prop result N/A N/A prop N/A name net.topology.impl None N/A param N/A N/A N/A param N/A value org.apache.hadoop.net.NetworkTopology N/A N/A N/A LOG debug N/A N/A Vm awareness will add following configs in core-site params: {result} format result result N/A result N/A vm_awareness_mapred_config N/A N/A N/A N/A N/A c N/A N/A x load_hadoop_xml_defaults topology/resources/mapred-template.xml N/A result N/A cfg N/A cfg c N/A cfg N/A value N/A N/A N/A LOG debug N/A N/A Vm awareness will add following configs in map-red params: {result} format result result N/A result N/A vm_awareness_all_config N/A N/A N/A N/A N/A N/A N/A vm_awareness_core_config N/A vm_awareness_mapred_config N/A