def handoff(self, volume, destination):
        pushing = maybeDeferred(self.push, volume, destination)

        def pushed(ignored):
            remote_uuid = destination.acquire(volume)
            return volume.change_owner(remote_uuid)
        changing_owner = pushing.addCallback(pushed)
        return changing_owner
Handoff a locally owned volume to a remote destination.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/volume/service.py/VolumeService.handoff