Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias If AttributeLoad NameLoad attr body Import alias orelse If AttributeLoad NameLoad attr body Import alias identifier Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword Dict Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str body For NameStore SubscriptLoad NameLoad Index Str body If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Str Str Str Call AttributeLoad NameLoad attr Str Str Str Str Call AttributeLoad NameLoad attr Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str keyword Dict Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call AttributeLoad NameLoad attr Str Str keyword ListLoad Str Str Call AttributeLoad NameLoad attr Str Str keyword ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Str ListLoad Str Str Str Call AttributeLoad NameLoad attr Str Str ListLoad Str Str Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Call AttributeLoad NameLoad attr Str Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Num Str Call AttributeLoad NameLoad attr Str Num Str Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword Num keyword Num Call AttributeLoad NameLoad attr Str keyword Num keyword Num Call AttributeLoad NameLoad attr Str keyword Num keyword Num Call AttributeLoad NameLoad attr Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Str Num Call AttributeLoad NameLoad attr Str Str Num Call AttributeLoad NameLoad attr Str Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Str Str Str Call AttributeLoad NameLoad attr Str Str Str Str Call AttributeLoad NameLoad attr Str Str Str Str Call AttributeLoad NameLoad attr Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad decorator_list
N/A N/A copy N/A six N/A unittest2 oslo_config cfg bareon.actions partitioning bareon.drivers.data nailgun bareon objects bareon.tests test_nailgun N/A N/A six PY2 N/A N/A mock N/A N/A N/A six PY3 N/A N/A unittest.mock mock N/A CONF N/A cfg CONF TestPartitioningAction N/A N/A unittest2 TestCase N/A setUp N/A N/A self mock_lbd mock_image_meta N/A N/A N/A N/A N/A N/A super TestPartitioningAction self setUp N/A N/A mock_lbd return_value N/A test_nailgun LIST_BLOCK_DEVICES_SAMPLE N/A N/A self drv N/A N/A nailgun Nailgun N/A test_nailgun PROVISION_SAMPLE_DATA N/A N/A self action N/A N/A partitioning PartitioningAction N/A self drv N/A N/A N/A mock patch bareon.drivers.data.nailgun.Nailgun.parse_image_meta return_value N/A N/A N/A mock patch bareon.drivers.data.nailgun.hu.list_block_devices test_do_partitioning_with_keep_data_flag N/A N/A self mock_fu mock_lbd mock_image_meta N/A N/A N/A N/A mock_lbd return_value N/A test_nailgun LIST_BLOCK_DEVICES_SAMPLE N/A data N/A N/A copy deepcopy N/A test_nailgun PROVISION_SAMPLE_DATA N/A disk N/A N/A N/A data N/A ks_meta N/A pm_data N/A ks_spaces N/A N/A volume N/A disk N/A volumes N/A N/A N/A N/A N/A volume N/A type pv N/A N/A volume N/A vg image N/A N/A N/A volume N/A keep_data True N/A N/A self drv N/A N/A nailgun Nailgun data N/A N/A self action N/A N/A partitioning PartitioningAction N/A self drv N/A N/A N/A N/A self action execute N/A mock_fu_mf_expected_calls N/A N/A N/A mock call ext2 /dev/sda3 N/A N/A mock call ext2 /dev/sda4 N/A N/A mock call swap /dev/mapper/os-swap N/A N/A N/A self assertEqual mock_fu_mf_expected_calls N/A N/A mock_fu make_fs call_args_list N/A N/A N/A mock patch bareon.drivers.data.nailgun.Nailgun.parse_image_meta return_value N/A N/A N/A mock patch bareon.drivers.data.nailgun.hu.list_block_devices N/A N/A N/A mock patch object partitioning fu autospec True test_do_partitioning_md N/A N/A self mock_pu mock_fu mock_lu mock_mu mock_utils mock_os N/A N/A N/A N/A N/A N/A mock_os path exists return_value True N/A N/A N/A N/A self drv partition_scheme mds N/A N/A N/A objects MD fake_md1 mirror devices N/A /dev/sda1 /dev/sdb1 N/A N/A objects MD fake_md2 mirror devices N/A /dev/sdb3 /dev/sdc1 N/A N/A N/A N/A self action execute N/A N/A N/A self assertEqual N/A N/A N/A mock call fake_md1 mirror N/A /dev/sda1 /dev/sdb1 default N/A N/A mock call fake_md2 mirror N/A /dev/sdb3 /dev/sdc1 default N/A N/A mock_mu mdcreate call_args_list N/A N/A N/A N/A mock patch object partitioning os autospec True N/A N/A N/A mock patch object partitioning utils autospec True N/A N/A N/A mock patch object partitioning mu autospec True N/A N/A N/A mock patch object partitioning lu autospec True N/A N/A N/A mock patch object partitioning fu autospec True N/A N/A N/A mock patch object partitioning pu autospec True test_do_partitioning N/A N/A self mock_pu mock_fu mock_lu mock_mu mock_utils mock_os N/A N/A N/A N/A N/A N/A mock_os path exists return_value True N/A N/A N/A N/A self action execute N/A N/A N/A N/A mock_utils unblacklist_udev_rules assert_called_once_with udev_rules_dir /etc/udev/rules.d udev_rename_substr .renamedrule N/A N/A N/A N/A mock_utils blacklist_udev_rules assert_called_once_with udev_rules_dir /etc/udev/rules.d udev_rules_lib_dir /lib/udev/rules.d udev_empty_rule empty_rule udev_rename_substr .renamedrule N/A mock_pu_ml_expected_calls N/A N/A N/A mock call /dev/sda gpt N/A N/A mock call /dev/sdb gpt N/A N/A mock call /dev/sdc gpt N/A N/A N/A self assertEqual mock_pu_ml_expected_calls N/A N/A mock_pu make_label call_args_list N/A mock_pu_mp_expected_calls N/A N/A N/A mock call /dev/sda 1 25 primary N/A N/A mock call /dev/sda 25 225 primary N/A N/A mock call /dev/sda 225 425 primary N/A N/A mock call /dev/sda 425 625 primary N/A N/A mock call /dev/sda 625 20063 primary N/A N/A mock call /dev/sda 20063 65660 primary N/A N/A mock call /dev/sda 65660 65680 primary N/A N/A mock call /dev/sdb 1 25 primary N/A N/A mock call /dev/sdb 25 225 primary N/A N/A mock call /dev/sdb 225 65196 primary N/A N/A mock call /dev/sdc 1 25 primary N/A N/A mock call /dev/sdc 25 225 primary N/A N/A mock call /dev/sdc 225 65196 primary N/A N/A N/A self assertEqual mock_pu_mp_expected_calls N/A N/A mock_pu make_partition call_args_list N/A mock_pu_spf_expected_calls N/A N/A N/A mock call /dev/sda 1 bios_grub N/A N/A mock call /dev/sdb 1 bios_grub N/A N/A mock call /dev/sdc 1 bios_grub N/A N/A N/A self assertEqual mock_pu_spf_expected_calls N/A N/A mock_pu set_partition_flag call_args_list N/A mock_pu_sgt_expected_calls N/A N/A N/A mock call /dev/sda 4 fake_guid N/A N/A N/A self assertEqual mock_pu_sgt_expected_calls N/A N/A mock_pu set_gpt_type call_args_list N/A mock_lu_p_expected_calls N/A N/A N/A mock call /dev/sda5 metadatasize 28 metadatacopies 2 N/A N/A mock call /dev/sda6 metadatasize 28 metadatacopies 2 N/A N/A mock call /dev/sdb3 metadatasize 28 metadatacopies 2 N/A N/A mock call /dev/sdc3 metadatasize 28 metadatacopies 2 N/A N/A N/A self assertEqual mock_lu_p_expected_calls N/A N/A mock_lu pvcreate call_args_list N/A mock_lu_v_expected_calls N/A N/A N/A mock call os /dev/sda5 N/A N/A mock call image /dev/sda6 /dev/sdb3 /dev/sdc3 N/A N/A N/A self assertEqual mock_lu_v_expected_calls N/A N/A mock_lu vgcreate call_args_list N/A mock_lu_l_expected_calls N/A N/A N/A mock call os root 15360 N/A N/A mock call os swap 4014 N/A N/A mock call image glance 175347 N/A N/A N/A self assertEqual mock_lu_l_expected_calls N/A N/A mock_lu lvcreate call_args_list N/A mock_fu_mf_expected_calls N/A N/A N/A mock call ext2 /dev/sda3 N/A N/A mock call ext2 /dev/sda4 N/A N/A mock call swap /dev/mapper/os-swap N/A N/A mock call xfs /dev/mapper/image-glance N/A N/A N/A self assertEqual mock_fu_mf_expected_calls N/A N/A mock_fu make_fs call_args_list N/A N/A N/A N/A mock patch object partitioning os autospec True N/A N/A N/A mock patch object partitioning utils autospec True N/A N/A N/A mock patch object partitioning mu autospec True N/A N/A N/A mock patch object partitioning lu autospec True N/A N/A N/A mock patch object partitioning fu autospec True N/A N/A N/A mock patch object partitioning pu autospec True N/A