def METHOD_NAME(img_spec):
    """Observe sync percentage till image goes to up+replying"""
    sync_percent = 0
    while mirror2.mirror_status("image", img_spec, "state") == "up+syncing":
        curr_sync_percent = int(
            mirror2.mirror_status("image", img_spec, "description")[-3:-1]
        )
        if curr_sync_percent >= sync_percent:
            sync_percent = curr_sync_percent
            continue
        log.info(
            f"img_spec current sync percent:{curr_sync_percent} is greater than or eaqual to previous sync_percent"
        )
        if curr_sync_percent < sync_percent:
            log.err("Syncing seemed to be restarted, test case failed")
            return 1
        time.sleep(2)
    return 0