def prepare_inband_cleaning(task, manage_boot=True):
    prepare_cleaning_ports(task)

    # Append required config parameters to node's driver_internal_info
    # to pass to IPA.
    agent_add_clean_params(task)

    if manage_boot:
        ramdisk_opts = build_agent_options(task.node)

        # TODO(rameshg87): Below code is to make sure that bash ramdisk
        # invokes pass_deploy_info vendor passthru when it is booted
        # for cleaning. Remove the below code once we stop supporting
        # bash ramdisk in Ironic. Do a late import to avoid circular
        # import.
        from ironic.drivers.modules import iscsi_deploy
        ramdisk_opts.update(
            iscsi_deploy.build_deploy_ramdisk_options(task.node))
        task.driver.boot.prepare_ramdisk(task, ramdisk_opts)

    manager_utils.node_power_action(task, states.REBOOT)

    # Tell the conductor we are waiting for the agent to boot.
    return states.CLEANWAIT
Handle the printing of pull statuses
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/deploy_utils.py/prepare_inband_cleaning--crossover with--dataset/ETHPy150Open tethysplatform/tethys/tethys_apps/cli/docker_commands.py/log_pull_stream