'Create a claim for a rebuild operation.'

@utils.synchronized(COMPUTE_RESOURCE_SEMAPHORE)
def rebuild_claim(self, context, instance, nodename, limits=None, image_meta=None, migration=None):

    instance_type = instance.flavor
    return self._move_claim(context, instance, instance_type, nodename, move_type='evacuation', limits=limits, image_meta=image_meta, migration=migration)
