Module Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword NameLoad Return NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr If UnaryOpNot Call NameLoad NameLoad body Return NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad NameLoad Num body Return Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad BinOpAdd NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Slice body Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad If NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Slice body If Call AttributeLoad NameLoad attr Str Str NameLoad body If CompareIn Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body With Call AttributeLoad NameLoad attr NameStore body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body With NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Str If NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Raise decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn AttributeLoad NameLoad attr ListLoad Str Str body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword AttributeLoad NameLoad attr decorator_list
N/A N/A re N/A threading oslo_config cfg oslo_log log logging sahara conductor c sahara context sahara.i18n _ sahara.i18n _LE sahara.i18n _LW sahara.plugins provisioning plugin_base sahara.utils cluster_progress_ops cpo sahara.utils.openstack base b sahara.utils.openstack cinder sahara.utils.openstack nova sahara.utils poll_utils N/A conductor N/A c API N/A LOG N/A N/A logging getLogger __name__ N/A CONF N/A cfg CONF _get_timeout_for_disk_preparing N/A N/A cluster N/A N/A N/A configs N/A N/A N/A cluster cluster_configs to_dict N/A option_name N/A N/A plugin_base DISKS_PREPARING_TIMEOUT name N/A option_target N/A N/A plugin_base DISKS_PREPARING_TIMEOUT applicable_target N/A N/A N/A N/A int N/A N/A configs N/A option_target N/A option_name N/A N/A N/A Exception N/A N/A N/A int N/A N/A plugin_base DISKS_PREPARING_TIMEOUT default_value N/A _is_xfs_enabled N/A N/A cluster N/A N/A N/A configs N/A N/A N/A cluster cluster_configs to_dict N/A option_name N/A N/A plugin_base XFS_ENABLED name N/A option_target N/A N/A plugin_base XFS_ENABLED applicable_target N/A N/A N/A N/A bool N/A N/A configs N/A option_target N/A option_name N/A N/A N/A Exception N/A N/A N/A bool N/A N/A plugin_base XFS_ENABLED default_value N/A _get_os_distrib N/A N/A remote N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A remote execute_command lsb_release -is N/A 1 strip lower N/A _check_installed_xfs N/A N/A instance N/A N/A N/A redhat rpm -q xfsprogs || yum install -y xfsprogs N/A debian dpkg -s xfsprogs || apt-get -y install xfsprogs N/A cmd_map N/A centos fedora redhatenterpriseserver ubuntu debian redhat redhat redhat debian debian N/A N/A N/A instance remote r N/A N/A distro N/A _get_os_distrib r N/A N/A N/A N/A cmd_map get distro N/A N/A N/A N/A LOG warning N/A N/A N/A _LW Cannot verify installation of XFS tools for unknown distro {distro}. format distro distro N/A False N/A N/A N/A N/A N/A r execute_command N/A N/A cmd_map get distro run_as_root True N/A True N/A N/A N/A Exception N/A e N/A N/A N/A N/A LOG warning N/A N/A N/A _LW Cannot install xfsprogs: {reason} format reason e N/A False N/A _can_use_xfs N/A N/A instances N/A N/A N/A cluster N/A N/A instances N/A 0 cluster N/A N/A N/A _is_xfs_enabled cluster N/A N/A False N/A instance instances N/A N/A N/A N/A _check_installed_xfs instance N/A N/A False N/A True N/A mount_to_instances N/A N/A instances N/A N/A N/A N/A N/A len instances 0 N/A N/A N/A use_xfs N/A _can_use_xfs instances N/A instance instances N/A N/A N/A N/A context set_current_instance_id N/A instance instance_id N/A N/A devices N/A _find_instance_devices instance N/A devices N/A N/A N/A N/A cpo add_provisioning_step N/A instance cluster_id N/A N/A N/A _ Mount volumes to {inst_name} instance format inst_name N/A instance instance_name N/A len devices N/A formatted_devices N/A N/A lock N/A N/A threading Lock N/A N/A N/A context ThreadGroup tg N/A N/A device devices N/A N/A N/A N/A tg spawn N/A format-device-%s device _format_device instance device use_xfs formatted_devices lock N/A N/A N/A conductor instance_update N/A N/A context current instance N/A storage_devices_number N/A len formatted_devices N/A N/A idx dev N/A enumerate formatted_devices N/A N/A N/A _mount_volume_to_node instance N/A idx 1 dev use_xfs N/A _find_instance_devices N/A N/A instance N/A N/A N/A N/A N/A instance remote r N/A N/A N/A code attached_info N/A N/A r execute_command lsblk -r | awk '$6 ~ /disk/ || /part/ {print "/dev/" $1}' N/A attached_dev N/A N/A attached_info split N/A N/A code mounted_info N/A N/A r execute_command mount | awk '$1 ~ /^\/dev/ {print $1}' N/A mounted_dev N/A N/A mounted_info split N/A dev N/A attached_dev N/A N/A N/A idx N/A N/A re sub \D dev N/A idx N/A N/A N/A dev mounted_dev N/A N/A N/A N/A attached_dev remove N/A N/A re sub \d dev N/A N/A N/A attached_dev remove dev N/A dev N/A attached_dev N/A N/A N/A N/A N/A re sub \D dev N/A N/A N/A N/A N/A re sub \d dev attached_dev N/A N/A N/A N/A attached_dev remove dev N/A attached_dev N/A dev N/A dev attached_dev N/A dev mounted_dev N/A attached_dev N/A _mount_volume_to_node N/A N/A instance index device use_xfs N/A N/A N/A N/A N/A LOG debug N/A N/A Mounting volume {device} to instance format device device N/A mount_point N/A N/A N/A instance node_group volume_mount_prefix N/A str index N/A N/A _mount_volume instance device mount_point use_xfs N/A N/A N/A LOG debug Mounted volume to instance N/A N/A N/A cpo event_wrapper mark_successful_on_exit True _format_device N/A N/A instance device use_xfs formatted_devices lock N/A None None N/A N/A N/A N/A instance remote r N/A N/A N/A N/A timeout N/A _get_timeout_for_disk_preparing N/A instance cluster N/A fs_opts -F -m 1 -O dir_index,extents,^has_journal N/A command N/A sudo mkfs.ext4 %s %s N/A fs_opts device N/A use_xfs N/A N/A command N/A sudo mkfs.xfs -f %s device N/A N/A N/A r execute_command command timeout timeout N/A lock N/A N/A lock N/A N/A N/A N/A formatted_devices append device N/A N/A N/A Exception N/A e N/A N/A N/A N/A LOG warning N/A N/A N/A _LW Device {dev} cannot be formatted: {reason} format dev device reason e N/A N/A N/A cpo add_fail_event instance e N/A _mount_volume N/A N/A instance device_path mount_point use_xfs N/A N/A N/A N/A N/A instance remote r N/A N/A N/A N/A timeout N/A _get_timeout_for_disk_preparing N/A instance cluster N/A N/A N/A r execute_command N/A sudo mkdir -p %s mount_point N/A mount_opts -o data=writeback,noatime,nodiratime N/A use_xfs N/A N/A mount_opts -t xfs -o noatime,nodiratime,nobarrier N/A N/A N/A r execute_command N/A sudo mount %s %s %s N/A mount_opts device_path mount_point timeout timeout N/A N/A N/A r execute_command N/A sudo sh -c "grep %s /etc/mtab >> /etc/fstab" device_path N/A N/A N/A Exception N/A N/A N/A N/A LOG error N/A _LE Error mounting volume to instance N/A N/A detach_from_instance N/A N/A instance N/A N/A N/A volume_id N/A instance volumes N/A N/A N/A _detach_volume instance volume_id N/A N/A _delete_volume volume_id N/A _await_detach N/A N/A volume_id N/A N/A N/A volume N/A N/A cinder get_volume volume_id N/A N/A N/A volume status N/A available error N/A N/A False N/A True N/A N/A N/A poll_utils poll_status detach_volume_timeout N/A _ Await for volume become detached sleep 2 _detach_volume N/A N/A instance volume_id N/A N/A N/A volume N/A N/A cinder get_volume volume_id N/A N/A N/A N/A N/A LOG debug N/A N/A Detaching volume {id} from instance format id volume_id N/A N/A N/A b execute_with_retries N/A N/A N/A N/A nova client volumes delete_server_volume N/A instance instance_id volume_id N/A N/A N/A Exception N/A N/A N/A N/A LOG error N/A N/A N/A _LE Can't detach volume {id} format id N/A volume id N/A detach_timeout N/A N/A CONF timeouts detach_volume_timeout N/A N/A N/A LOG debug N/A N/A Waiting {timeout} seconds to detach {id} volume format timeout detach_timeout id volume_id N/A N/A _await_detach volume_id N/A _delete_volume N/A N/A volume_id N/A N/A N/A N/A N/A LOG debug N/A N/A Deleting volume {volume} format volume volume_id N/A volume N/A N/A cinder get_volume volume_id N/A N/A N/A N/A N/A b execute_with_retries N/A volume delete N/A N/A N/A Exception N/A N/A N/A N/A LOG error N/A N/A N/A _LE Can't delete volume {volume} format volume N/A volume id N/A