@task
def evacuate(name_config=None, debug=None, iteration=False):
    init(name_config, debug)
    try:
        iteration = int(iteration)
    except __HOLE__:
        LOG.error("Invalid value provided as 'iteration' argument, it must be "
                  "integer")
        return
    env.key_filename = cfglib.CONF.migrate.key_filename
    cloud = cloud_ferry.CloudFerry(cfglib.CONF)
    LOG.info("running evacuation")
    evacuation_chain.process_chain(cloud, iteration)

    freed_nodes = get_freed_nodes(iteration)

    if not freed_nodes:
        LOG.warning("Evacuation cannot be completed, because there are no "
                    "available compute nodes, that should be freed")
        return

    LOG.info("Following nodes will be freed once in-cloud migration finishes, "
             "and can be moved from source to destination: %s", freed_nodes)
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/fabfile.py/evacuate