'Snapshot an instance in its cell.'

def snapshot_instance(self, message, instance, image_id):

    instance.refresh()
    instance.task_state = task_states.IMAGE_SNAPSHOT_PENDING
    instance.save(expected_task_state=[None])
    self.compute_rpcapi.snapshot_instance(message.ctxt, instance, image_id)
