Module Expr Str Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr TryExcept body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Str keyword ListLoad Str Str keyword NameLoad keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Call NameLoad Str Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str NameLoad AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str NameLoad AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str SubscriptLoad NameLoad Index Str Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIn Str NameLoad CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore ListLoad orelse If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign NameStore ListLoad Str Str orelse Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpOr CompareEq Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A 
iRMC Boot Driver
 N/A os N/A shutil N/A tempfile ironic_lib utils ironic_utils oslo_config cfg oslo_log log logging oslo_utils importutils ironic.common boot_devices ironic.common exception ironic.common.glance_service service_utils ironic.common.i18n _ ironic.common.i18n _LE ironic.common.i18n _LI ironic.common images ironic.common states ironic.conductor utils manager_utils ironic.drivers base ironic.drivers.modules deploy_utils ironic.drivers.modules.irmc common irmc_common N/A scci N/A N/A importutils try_import scciclient.irmc.scci N/A CONF N/A cfg CONF N/A N/A N/A N/A CONF debug N/A N/A N/A scci DEBUG True N/A N/A N/A Exception N/A N/A N/A opts N/A N/A N/A cfg StrOpt remote_image_share_root default /remote_image_share_root help N/A _ Ironic conductor node's "NFS" or "CIFS" root path N/A N/A cfg StrOpt remote_image_server help N/A _ IP of remote image server N/A N/A cfg StrOpt remote_image_share_type default CIFS choices N/A CIFS NFS ignore_case True help N/A _ Share type of virtual media N/A N/A cfg StrOpt remote_image_share_name default share help N/A _ share name of remote_image_server N/A N/A cfg StrOpt remote_image_user_name help N/A _ User name of remote_image_server N/A N/A cfg StrOpt remote_image_user_password secret True help N/A _ Password of remote_image_user_name N/A N/A cfg StrOpt remote_image_user_domain default help N/A _ Domain name of remote_image_user_name N/A N/A N/A CONF register_opts opts group irmc N/A LOG N/A N/A logging getLogger __name__ N/A REQUIRED_PROPERTIES N/A irmc_deploy_iso N/A _ Deployment ISO image file name. Required. N/A COMMON_PROPERTIES REQUIRED_PROPERTIES _parse_config_option N/A N/A N/A N/A N/A Parse config file options.

    This method checks config file options validity.

    :raises: InvalidParameterValue, if config option has invalid value.
     N/A error_msgs N/A N/A N/A N/A N/A N/A os path isdir N/A N/A CONF irmc remote_image_share_root N/A N/A N/A N/A error_msgs append N/A N/A _ Value '%s' for remote_image_share_root isn't a directory or doesn't exist. N/A N/A CONF irmc remote_image_share_root N/A error_msgs N/A N/A msg N/A N/A _ The following errors were encountered while parsing config file:%s error_msgs N/A N/A N/A exception InvalidParameterValue msg N/A _parse_driver_info N/A N/A node N/A N/A N/A Gets the driver specific Node deployment info.

    This method validates whether the 'driver_info' property of the
    supplied node contains the required or optional information properly
    for this driver to deploy images to the node.

    :param node: a target node of the deployment
    :returns: the driver_info values of the node.
    :raises: MissingParameterValue, if any of the required parameters are
        missing.
    :raises: InvalidParameterValue, if any of the parameters have invalid
        value.
     N/A d_info N/A node driver_info N/A deploy_info N/A N/A N/A deploy_info N/A irmc_deploy_iso N/A N/A d_info get irmc_deploy_iso N/A error_msg N/A _ Error validating iRMC virtual media deploy. Some parameters were missing in node's driver_info N/A N/A N/A deploy_utils check_for_missing_params deploy_info error_msg N/A N/A N/A service_utils is_image_href_ordinary_file_name N/A deploy_info N/A irmc_deploy_iso N/A N/A deploy_iso N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root N/A deploy_info N/A irmc_deploy_iso N/A N/A N/A N/A N/A os path isfile deploy_iso N/A N/A msg N/A N/A _ Deploy ISO file, %(deploy_iso)s, not found for node: %(node)s. N/A deploy_iso node deploy_iso N/A node uuid N/A N/A N/A exception InvalidParameterValue msg N/A deploy_info N/A _parse_instance_info N/A N/A node N/A N/A N/A Gets the instance specific Node deployment info.

    This method validates whether the 'instance_info' property of the
    supplied node contains the required or optional information properly
    for this driver to deploy images to the node.

    :param node: a target node of the deployment
    :returns:  the instance_info values of the node.
    :raises: InvalidParameterValue, if any of the parameters have invalid
        value.
     N/A i_info N/A node instance_info N/A deploy_info N/A N/A N/A N/A i_info get irmc_boot_iso N/A N/A N/A deploy_info N/A irmc_boot_iso N/A i_info N/A irmc_boot_iso N/A N/A N/A service_utils is_image_href_ordinary_file_name N/A deploy_info N/A irmc_boot_iso N/A N/A boot_iso N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root N/A deploy_info N/A irmc_boot_iso N/A N/A N/A N/A N/A os path isfile boot_iso N/A N/A msg N/A N/A _ Boot ISO file, %(boot_iso)s, not found for node: %(node)s. N/A boot_iso node boot_iso N/A node uuid N/A N/A N/A exception InvalidParameterValue msg N/A deploy_info N/A _parse_deploy_info N/A N/A node N/A N/A N/A Gets the instance and driver specific Node deployment info.

    This method validates whether the 'instance_info' and 'driver_info'
    property of the supplied node contains the required information for
    this driver to deploy images to the node.

    :param node: a target node of the deployment
    :returns: a dict with the instance_info and driver_info values.
    :raises: MissingParameterValue, if any of the required parameters are
        missing.
    :raises: InvalidParameterValue, if any of the parameters have invalid
        value.
     N/A deploy_info N/A N/A N/A N/A deploy_info update N/A N/A deploy_utils get_image_instance_info node N/A N/A N/A deploy_info update N/A _parse_driver_info node N/A N/A N/A deploy_info update N/A _parse_instance_info node N/A deploy_info N/A _setup_deploy_iso N/A N/A task ramdisk_options N/A N/A N/A Attaches virtual media and sets it as boot device.

    This method attaches the given deploy ISO as virtual media, prepares the
    arguments for ramdisk in virtual media floppy.

    :param task: a TaskManager instance containing the node to act on.
    :param ramdisk_options: the options to be passed to the ramdisk in virtual
        media floppy.
    :raises: ImageRefValidationFailed if no image service can handle specified
       href.
    :raises: ImageCreationFailed, if it failed while creating the floppy image.
    :raises: IRMCOperationError, if some operation on iRMC failed.
    :raises: InvalidParameterValue if the validation of the
        PowerInterface or ManagementInterface fails.
     N/A d_info N/A N/A task node driver_info N/A deploy_iso_href N/A d_info N/A irmc_deploy_iso N/A N/A N/A service_utils is_image_href_ordinary_file_name deploy_iso_href N/A N/A deploy_iso_file deploy_iso_href N/A N/A deploy_iso_file N/A _get_deploy_iso_name N/A task node N/A deploy_iso_fullpathname N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root deploy_iso_file N/A N/A N/A images fetch N/A task context deploy_iso_href deploy_iso_fullpathname N/A N/A _setup_vmedia_for_boot task deploy_iso_file ramdisk_options N/A N/A N/A manager_utils node_set_boot_device task N/A boot_devices CDROM N/A _get_deploy_iso_name N/A N/A node N/A N/A N/A Returns the deploy ISO file name for a given node.

    :param node: the node for which ISO file name is to be provided.
     N/A N/A deploy-%s.iso N/A node uuid N/A _get_boot_iso_name N/A N/A node N/A N/A N/A Returns the boot ISO file name for a given node.

    :param node: the node for which ISO file name is to be provided.
     N/A N/A boot-%s.iso N/A node uuid N/A _prepare_boot_iso N/A N/A task root_uuid N/A N/A N/A Prepare a boot ISO to boot the node.

    :param task: a TaskManager instance containing the node to act on.
    :param root_uuid: the uuid of the root partition.
    :raises: MissingParameterValue, if any of the required parameters are
        missing.
    :raises: InvalidParameterValue, if any of the parameters have invalid
        value.
    :raises: ImageCreationFailed, if creating boot ISO
       for BIOS boot_mode failed.
     N/A deploy_info N/A _parse_deploy_info N/A task node N/A driver_internal_info N/A N/A task node driver_internal_info N/A N/A N/A deploy_info get irmc_boot_iso N/A N/A boot_iso_href N/A deploy_info N/A irmc_boot_iso N/A N/A N/A service_utils is_image_href_ordinary_file_name boot_iso_href N/A N/A N/A driver_internal_info N/A irmc_boot_iso boot_iso_href N/A N/A boot_iso_filename N/A _get_boot_iso_name N/A task node N/A boot_iso_fullpathname N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root boot_iso_filename N/A N/A N/A images fetch N/A task context boot_iso_href boot_iso_fullpathname N/A N/A driver_internal_info N/A irmc_boot_iso boot_iso_filename N/A N/A image_href N/A deploy_info N/A image_source N/A image_props N/A kernel_id ramdisk_id N/A image_properties N/A N/A images get_image_properties N/A task context image_href image_props N/A kernel_href N/A N/A N/A N/A N/A task node instance_info get kernel N/A image_properties N/A kernel_id N/A ramdisk_href N/A N/A N/A N/A N/A task node instance_info get ramdisk N/A image_properties N/A ramdisk_id N/A deploy_iso_filename N/A _get_deploy_iso_name N/A task node N/A deploy_iso N/A file:// N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root deploy_iso_filename N/A boot_mode N/A N/A deploy_utils get_boot_mode_for_deploy N/A task node N/A kernel_params N/A N/A CONF pxe pxe_append_params N/A boot_iso_filename N/A _get_boot_iso_name N/A task node N/A boot_iso_fullpathname N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root boot_iso_filename N/A N/A N/A images create_boot_iso N/A task context boot_iso_fullpathname kernel_href ramdisk_href deploy_iso root_uuid kernel_params boot_mode N/A N/A driver_internal_info N/A irmc_boot_iso boot_iso_filename N/A N/A N/A task node driver_internal_info driver_internal_info N/A N/A N/A N/A task node save N/A _get_floppy_image_name N/A N/A node N/A N/A N/A Returns the floppy image name for a given node.

    :param node: the node for which image name is to be provided.
     N/A N/A image-%s.img N/A node uuid N/A _prepare_floppy_image N/A N/A task params N/A N/A N/A Prepares the floppy image for passing the parameters.

    This method prepares a temporary vfat filesystem image, which
    contains the parameters to be passed to the ramdisk.
    Then it uploads the file NFS or CIFS server.

    :param task: a TaskManager instance containing the node to act on.
    :param params: a dictionary containing 'parameter name'->'value' mapping
        to be passed to the deploy ramdisk via the floppy image.
    :returns: floppy image filename
    :raises: ImageCreationFailed, if it failed while creating the floppy image.
    :raises: IRMCOperationError, if copying floppy image file failed.
     N/A floppy_filename N/A _get_floppy_image_name N/A task node N/A floppy_fullpathname N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_root floppy_filename N/A N/A N/A tempfile NamedTemporaryFile vfat_image_tmpfile_obj N/A N/A N/A N/A images create_vfat_image N/A vfat_image_tmpfile_obj name parameters params N/A N/A N/A N/A N/A shutil copyfile N/A vfat_image_tmpfile_obj name floppy_fullpathname N/A N/A N/A IOError N/A e N/A N/A operation N/A _ Copying floppy image file N/A N/A N/A exception IRMCOperationError operation operation error e N/A floppy_filename N/A attach_boot_iso_if_needed N/A N/A task N/A N/A N/A Attaches boot ISO for a deployed node if it exists.

    This method checks the instance info of the bare metal node for a
    boot ISO. If the instance info has a value of key 'irmc_boot_iso',
    it indicates that 'boot_option' is 'netboot'. Threfore it attaches
    the boot ISO on the bare metal node and then sets the node to boot from
    virtual media cdrom.

    :param task: a TaskManager instance containing the node to act on.
    :raises: IRMCOperationError if attaching virtual media failed.
    :raises: InvalidParameterValue if the validation of the
        ManagementInterface fails.
     N/A d_info N/A N/A task node driver_internal_info N/A node_state N/A N/A task node provision_state N/A N/A N/A irmc_boot_iso d_info N/A node_state N/A states ACTIVE N/A N/A N/A _setup_vmedia_for_boot task N/A d_info N/A irmc_boot_iso N/A N/A N/A manager_utils node_set_boot_device task N/A boot_devices CDROM N/A _setup_vmedia_for_boot N/A N/A task bootable_iso_filename parameters N/A None N/A N/A Sets up the node to boot from the boot ISO image.

    This method attaches a boot_iso on the node and passes
    the required parameters to it via a virtual floppy image.

    :param task: a TaskManager instance containing the node to act on.
    :param bootable_iso_filename: a bootable ISO image to attach to.
        The iso file should be present in NFS/CIFS server.
    :param parameters: the parameters to pass in a virtual floppy image
        in a dictionary.  This is optional.
    :raises: ImageCreationFailed, if it failed while creating a floppy image.
    :raises: IRMCOperationError, if attaching a virtual media failed.
     N/A N/A N/A LOG info N/A _LI Setting up node %s to boot from virtual media N/A N/A task node uuid N/A N/A _detach_virtual_cd N/A task node N/A N/A _detach_virtual_fd N/A task node N/A parameters N/A N/A floppy_image_filename N/A _prepare_floppy_image task parameters N/A N/A _attach_virtual_fd N/A task node floppy_image_filename N/A N/A _attach_virtual_cd N/A task node bootable_iso_filename N/A _cleanup_vmedia_boot N/A N/A task N/A N/A N/A Cleans a node after a virtual media boot.

    This method cleans up a node after a virtual media boot.
    It deletes floppy and cdrom images if they exist in NFS/CIFS server.
    It also ejects both the virtual media cdrom and the virtual media floppy.

    :param task: a TaskManager instance containing the node to act on.
    :raises: IRMCOperationError if ejecting virtual media failed.
     N/A N/A N/A LOG debug Cleaning up node %s after virtual media boot N/A N/A task node uuid N/A node N/A task node N/A N/A _detach_virtual_cd node N/A N/A _detach_virtual_fd node N/A N/A _remove_share_file N/A _get_floppy_image_name node N/A N/A _remove_share_file N/A _get_deploy_iso_name node N/A _remove_share_file N/A N/A share_filename N/A N/A N/A Remove given file from the share file system.

    :param share_filename: a file name to be removed.
     N/A share_fullpathname N/A N/A N/A os path join N/A N/A CONF irmc remote_image_share_name share_filename N/A N/A N/A ironic_utils unlink_without_raise share_fullpathname N/A _attach_virtual_cd N/A N/A node bootable_iso_filename N/A N/A N/A Attaches the given url as virtual media on the node.

    :param node: an ironic node object.
    :param bootable_iso_filename: a bootable ISO image to attach to.
        The iso file should be present in NFS/CIFS server.
    :raises: IRMCOperationError if attaching virtual media failed.
     N/A N/A N/A irmc_client N/A N/A irmc_common get_irmc_client node N/A cd_set_params N/A N/A scci get_virtual_cd_set_params_cmd N/A N/A CONF irmc remote_image_server N/A N/A CONF irmc remote_image_user_domain N/A N/A scci get_share_type N/A N/A CONF irmc remote_image_share_type N/A N/A CONF irmc remote_image_share_name bootable_iso_filename N/A N/A CONF irmc remote_image_user_name N/A N/A CONF irmc remote_image_user_password N/A N/A irmc_client cd_set_params async False N/A N/A irmc_client N/A scci MOUNT_CD async False N/A N/A N/A N/A scci SCCIClientError N/A irmc_exception N/A N/A N/A N/A LOG exception N/A _LE Error while inserting virtual cdrom into node %(uuid)s. Error: %(error)s N/A uuid error N/A node uuid irmc_exception N/A operation N/A _ Inserting virtual cdrom N/A N/A N/A exception IRMCOperationError operation operation error irmc_exception N/A N/A N/A LOG info N/A _LI Attached virtual cdrom successfully for node %s N/A node uuid N/A _detach_virtual_cd N/A N/A node N/A N/A N/A Detaches virtual cdrom on the node.

    :param node: an ironic node object.
    :raises: IRMCOperationError if eject virtual cdrom failed.
     N/A N/A N/A irmc_client N/A N/A irmc_common get_irmc_client node N/A N/A irmc_client N/A scci UNMOUNT_CD N/A N/A N/A N/A scci SCCIClientError N/A irmc_exception N/A N/A N/A N/A LOG exception N/A _LE Error while ejecting virtual cdrom from node %(uuid)s. Error: %(error)s N/A uuid error N/A node uuid irmc_exception N/A operation N/A _ Ejecting virtual cdrom N/A N/A N/A exception IRMCOperationError operation operation error irmc_exception N/A N/A N/A LOG info N/A _LI Detached virtual cdrom successfully for node %s N/A node uuid N/A _attach_virtual_fd N/A N/A node floppy_image_filename N/A N/A N/A Attaches virtual floppy on the node.

    :param node: an ironic node object.
    :raises: IRMCOperationError if insert virtual floppy failed.
     N/A N/A N/A irmc_client N/A N/A irmc_common get_irmc_client node N/A fd_set_params N/A N/A scci get_virtual_fd_set_params_cmd N/A N/A CONF irmc remote_image_server N/A N/A CONF irmc remote_image_user_domain N/A N/A scci get_share_type N/A N/A CONF irmc remote_image_share_type N/A N/A CONF irmc remote_image_share_name floppy_image_filename N/A N/A CONF irmc remote_image_user_name N/A N/A CONF irmc remote_image_user_password N/A N/A irmc_client fd_set_params async False N/A N/A irmc_client N/A scci MOUNT_FD async False N/A N/A N/A N/A scci SCCIClientError N/A irmc_exception N/A N/A N/A N/A LOG exception N/A _LE Error while inserting virtual floppy into node %(uuid)s. Error: %(error)s N/A uuid error N/A node uuid irmc_exception N/A operation N/A _ Inserting virtual floppy N/A N/A N/A exception IRMCOperationError operation operation error irmc_exception N/A N/A N/A LOG info N/A _LI Attached virtual floppy successfully for node %s N/A node uuid N/A _detach_virtual_fd N/A N/A node N/A N/A N/A Detaches virtual media floppy on the node.

    :param node: an ironic node object.
    :raises: IRMCOperationError if eject virtual media floppy failed.
     N/A N/A N/A irmc_client N/A N/A irmc_common get_irmc_client node N/A N/A irmc_client N/A scci UNMOUNT_FD N/A N/A N/A N/A scci SCCIClientError N/A irmc_exception N/A N/A N/A N/A LOG exception N/A _LE Error while ejecting virtual floppy from node %(uuid)s. Error: %(error)s N/A uuid error N/A node uuid irmc_exception N/A operation N/A _ Ejecting virtual floppy N/A N/A N/A exception IRMCOperationError operation operation error irmc_exception N/A N/A N/A LOG info N/A _LI Detached virtual floppy successfully for node %s N/A node uuid N/A check_share_fs_mounted N/A N/A N/A N/A N/A Check if Share File System (NFS or CIFS) is mounted.

    :raises: InvalidParameterValue, if config option has invalid value.
    :raises: IRMCSharedFileSystemNotMounted, if shared file system is
        not mounted.
     N/A N/A _parse_config_option N/A N/A N/A N/A N/A os path ismount N/A N/A CONF irmc remote_image_share_root N/A N/A N/A N/A exception IRMCSharedFileSystemNotMounted share N/A N/A CONF irmc remote_image_share_root N/A IRMCVirtualMediaBoot N/A N/A base BootInterface N/A N/A iRMC Virtual Media boot-related actions. __init__ N/A N/A self N/A N/A N/A Constructor of IRMCVirtualMediaBoot.

        :raises: IRMCSharedFileSystemNotMounted, if shared file system is
            not mounted.
        :raises: InvalidParameterValue, if config option has invalid value.
         N/A N/A check_share_fs_mounted N/A N/A N/A N/A super IRMCVirtualMediaBoot self __init__ N/A get_properties N/A N/A self N/A N/A N/A COMMON_PROPERTIES N/A validate N/A N/A self task N/A N/A N/A Validate the deployment information for the task's node.

        :param task: a TaskManager instance containing the node to act on.
        :raises: InvalidParameterValue, if config option has invalid value.
        :raises: IRMCSharedFileSystemNotMounted, if shared file system is
            not mounted.
        :raises: InvalidParameterValue, if some information is invalid.
        :raises: MissingParameterValue if 'kernel_id' and 'ramdisk_id' are
            missing in the Glance image, or if 'kernel' and 'ramdisk' are
            missing in the Non Glance image.
         N/A N/A check_share_fs_mounted N/A d_info N/A _parse_deploy_info N/A task node N/A N/A N/A N/A N/A task node driver_internal_info get is_whole_disk_image N/A N/A props N/A N/A N/A N/A N/A service_utils is_glance_image N/A d_info N/A image_source N/A N/A props N/A kernel_id ramdisk_id N/A N/A props N/A kernel ramdisk N/A N/A N/A deploy_utils validate_image_properties N/A task context d_info props N/A prepare_ramdisk N/A N/A self task ramdisk_params N/A N/A N/A Prepares the deploy ramdisk using virtual media.

        Prepares the options for the deployment ramdisk, sets the node to boot
        from virtual media cdrom.

        :param task: a TaskManager instance containing the node to act on.
        :param ramdisk_params: the options to be passed to the deploy ramdisk.
        :raises: ImageRefValidationFailed if no image service can handle
                 specified href.
        :raises: ImageCreationFailed, if it failed while creating the floppy
                 image.
        :raises: InvalidParameterValue if the validation of the
                 PowerInterface or ManagementInterface fails.
        :raises: IRMCOperationError, if some operation on iRMC fails.
         N/A N/A N/A N/A task node provision_state N/A states DEPLOYING N/A N/A N/A deploy_nic_mac N/A N/A deploy_utils get_single_nic_with_vif_port_id task N/A N/A ramdisk_params N/A BOOTIF deploy_nic_mac N/A N/A _setup_deploy_iso task ramdisk_params N/A clean_up_ramdisk N/A N/A self task N/A N/A N/A Cleans up the boot of ironic ramdisk.

        This method cleans up the environment that was setup for booting the
        deploy ramdisk.

        :param task: a task from TaskManager.
        :returns: None
        :raises: IRMCOperationError if iRMC operation failed.
         N/A N/A _cleanup_vmedia_boot task N/A prepare_instance N/A N/A self task N/A N/A N/A Prepares the boot of instance.

        This method prepares the boot of the instance after reading
        relevant information from the node's database.

        :param task: a task from TaskManager.
        :returns: None
         N/A N/A _cleanup_vmedia_boot task N/A node N/A task node N/A iwdi N/A N/A N/A node driver_internal_info get is_whole_disk_image N/A N/A N/A N/A N/A deploy_utils get_boot_option node local iwdi N/A N/A N/A N/A manager_utils node_set_boot_device task N/A boot_devices DISK persistent True N/A N/A driver_internal_info N/A node driver_internal_info N/A root_uuid_or_disk_id N/A driver_internal_info N/A root_uuid_or_disk_id N/A N/A N/A self _configure_vmedia_boot task root_uuid_or_disk_id N/A clean_up_instance N/A N/A self task N/A N/A N/A Cleans up the boot of instance.

        This method cleans up the environment that was setup for booting
        the instance.

        :param task: a task from TaskManager.
        :returns: None
        :raises: IRMCOperationError if iRMC operation failed.
         N/A N/A _remove_share_file N/A _get_boot_iso_name N/A task node N/A driver_internal_info N/A N/A task node driver_internal_info N/A N/A N/A driver_internal_info pop irmc_boot_iso None N/A N/A N/A driver_internal_info pop root_uuid_or_disk_id None N/A N/A N/A task node driver_internal_info driver_internal_info N/A N/A N/A N/A task node save N/A N/A _cleanup_vmedia_boot task N/A _configure_vmedia_boot N/A N/A self task root_uuid_or_disk_id N/A N/A N/A Configure vmedia boot for the node. N/A node N/A task node N/A N/A _prepare_boot_iso task root_uuid_or_disk_id N/A N/A _setup_vmedia_for_boot task N/A N/A node driver_internal_info N/A irmc_boot_iso N/A N/A N/A manager_utils node_set_boot_device task N/A boot_devices CDROM persistent True N/A N/A