Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad TryExcept body TryExcept body Expr Call AttributeLoad NameLoad attr Str Str NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Str NameLoad Index Num For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore GeneratorExp Call AttributeLoad NameLoad attr Str Num comprehension NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Str Str body Continue If CompareEq Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Return BinOpAdd Str Call AttributeLoad NameLoad attr Str orelse Assign NameStore BinOpMod Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore NameLoad Assign NameStore NameLoad TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Str BinOpAdd NameLoad Str If NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Str If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str Str NameLoad NameLoad NameLoad keyword NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str NameLoad NameLoad keyword NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad finalbody Assign NameStore Str Assign NameStore NameLoad TryExcept body If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad NameLoad keyword Num keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str BinOpAdd NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Str keyword Num keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str BinOpAdd NameLoad Str NameLoad If UnaryOpNot NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A os N/A shlex N/A shutil N/A tempfile oslo_concurrency processutils oslo_log log ironic_python_agent errors ironic_python_agent.extensions base ironic_python_agent.extensions iscsi ironic_python_agent hardware ironic_python_agent utils N/A LOG N/A N/A log getLogger __name__ N/A BIND_MOUNTS N/A /dev /proc _get_partition N/A N/A device uuid N/A N/A N/A Find the partition of a given device. N/A N/A N/A LOG debug Find the partition %(uuid)s on device %(dev)s N/A dev uuid device uuid N/A N/A N/A N/A N/A N/A N/A utils execute partx -u device attempts 3 delay_on_retry True N/A N/A N/A utils execute udevadm settle N/A N/A N/A N/A processutils ProcessExecutionError N/A N/A N/A N/A LOG warning N/A Couldn't re-read the partition table on device %s device N/A report N/A N/A N/A utils execute lsblk -PbioKNAME,UUID,TYPE device N/A 0 N/A line N/A N/A report split N/A N/A part N/A N/A vals N/A N/A shlex split line N/A N/A key val N/A N/A N/A v split = 1 N/A v vals N/A N/A N/A part N/A key N/A N/A val strip N/A N/A N/A N/A part get TYPE part N/A N/A N/A N/A N/A N/A part get UUID uuid N/A N/A N/A N/A LOG debug Partition %(uuid)s found on device %(dev)s N/A uuid dev uuid device N/A N/A /dev/ N/A N/A part get KNAME N/A N/A error_msg N/A No partition with UUID %(uuid)s found on device %(dev)s N/A uuid dev uuid device N/A N/A N/A LOG error error_msg N/A N/A N/A errors DeviceNotFound error_msg N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A error_msg N/A Finding the partition with UUID %(uuid)s on device %(dev)s failed with %(err)s N/A uuid dev err uuid device e N/A N/A N/A LOG error error_msg N/A N/A N/A errors CommandExecutionError error_msg N/A _install_grub2 N/A N/A device root_uuid efi_system_part_uuid N/A None N/A N/A Install GRUB2 bootloader on a given device. N/A N/A N/A LOG debug Installing GRUB2 bootloader on device %s device N/A root_partition N/A _get_partition device uuid root_uuid N/A efi_partition None N/A efi_partition_mount_point None N/A N/A N/A N/A N/A path N/A N/A tempfile mkdtemp N/A efi_system_part_uuid N/A N/A efi_partition N/A _get_partition device uuid efi_system_part_uuid N/A efi_partition_mount_point N/A N/A N/A os path join path boot/efi N/A N/A N/A utils execute mount root_partition path N/A fs BIND_MOUNTS N/A N/A N/A N/A utils execute mount -o bind fs N/A path fs N/A N/A N/A utils execute mount -t sysfs none N/A path /sys N/A efi_partition N/A N/A N/A N/A N/A N/A os path exists efi_partition_mount_point N/A N/A N/A N/A os makedirs efi_partition_mount_point N/A N/A N/A utils execute mount efi_partition efi_partition_mount_point N/A binary_name grub N/A N/A N/A N/A os path exists N/A N/A N/A os path join path usr/sbin/grub2-install N/A N/A binary_name grub2 N/A path_variable N/A N/A N/A os environ get PATH N/A path_variable N/A %s:/bin path_variable N/A N/A N/A utils execute N/A chroot %(path)s /bin/bash -c "/usr/sbin/%(bin)s-install %(dev)s" N/A path bin dev path binary_name device shell True env_variables N/A PATH path_variable N/A N/A N/A utils execute N/A chroot %(path)s /bin/bash -c "/usr/sbin/%(bin)s-mkconfig -o /boot/%(bin)s/grub.cfg" N/A path bin path binary_name shell True env_variables N/A PATH path_variable N/A N/A N/A LOG info GRUB2 successfully installed on %s device N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A error_msg N/A Installing GRUB2 boot loader to device %(dev)s failed with %(err)s. N/A dev err device e N/A N/A N/A LOG error error_msg N/A N/A N/A errors CommandExecutionError error_msg N/A N/A umount_warn_msg Unable to umount %(path)s. Error: %(error)s N/A umount_binds_fail False N/A N/A N/A efi_partition N/A N/A N/A N/A utils execute umount efi_partition_mount_point attempts 3 delay_on_retry True N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A error_msg N/A Umounting efi system partition failed. Attempted 3 times. Error: %s e N/A N/A N/A LOG error error_msg N/A N/A N/A errors CommandExecutionError error_msg N/A fs BIND_MOUNTS N/A N/A N/A N/A N/A N/A utils execute umount N/A path fs attempts 3 delay_on_retry True N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A umount_binds_fail True N/A N/A N/A LOG warning umount_warn_msg N/A path error N/A path fs e N/A N/A N/A N/A N/A utils execute umount N/A path /sys attempts 3 delay_on_retry True N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A umount_binds_fail True N/A N/A N/A LOG warning umount_warn_msg N/A path error N/A path /sys e N/A N/A umount_binds_fail N/A N/A N/A N/A N/A N/A utils execute umount path attempts 3 delay_on_retry True N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A N/A N/A LOG warning umount_warn_msg N/A path error path e N/A N/A N/A N/A shutil rmtree path N/A ImageExtension N/A N/A base BaseAgentExtension N/A install_bootloader N/A N/A self root_uuid efi_system_part_uuid N/A None N/A N/A Install the GRUB2 bootloader on the image.

        :param root_uuid: The UUID of the root partition.
        :param efi_system_part_uuid: The UUID of the efi system partition.
            To be used only for uefi boot mode.  For uefi boot mode, the
            boot loader will be installed here.
        :raises: CommandExecutionError if the installation of the
                 bootloader fails.
        :raises: DeviceNotFound if the root partition is not found.

         N/A device N/A N/A hardware dispatch_to_managers get_os_install_device N/A N/A N/A iscsi clean_up device N/A N/A _install_grub2 device root_uuid root_uuid efi_system_part_uuid efi_system_part_uuid N/A N/A N/A base sync_command install_bootloader N/A