Ejemplo n.º 1
0
def restore_with_frontend(url, engine_name, backup):
    client = ControllerClient(url)
    client.volume_frontend_shutdown()
    cmd.backup_restore(url, backup)
    wait_for_restore_completion(url, backup)
    client.volume_frontend_start(FRONTEND_TGT_BLOCKDEV)
    return
Ejemplo n.º 2
0
def snapshot_revert_with_frontend(url, engine_name, name):
    client = ControllerClient(url)
    client.volume_frontend_shutdown()
    cmd.snapshot_revert(url, name)
    client.volume_frontend_start(FRONTEND_TGT_BLOCKDEV)