'Migrate a volume to the specified host.'

@wsgi.action('os-migrate_volume')
def _migrate_volume(self, req, id, body):

    context = req.environ['cinder.context']
    self.authorize(context, 'migrate_volume')
    volume = self._get(context, id)
    params = body['os-migrate_volume']
    (cluster_name, host) = common.get_cluster_host(req, params, '3.16')
    force_host_copy = utils.get_bool_param('force_host_copy', params)
    lock_volume = utils.get_bool_param('lock_volume', params)
    self.volume_api.migrate_volume(context, volume, host, cluster_name, force_host_copy, lock_volume)
    return webob.Response(status_int=http_client.ACCEPTED)
