'Create a volume on a Blockbridge EPS backend.
:param volume: volume reference'

def create_volume(self, volume):

    ctxt = context.get_admin_context()
    create_params = {'name': self._get_dbref_name(volume), 'query': self._get_query_string(ctxt, volume), 'capacity': int((volume['size'] * units.Gi))}
    LOG.debug("Provisioning    %(capacity)s    byte    volume    with    query    '%(query)s'", create_params, resource=volume)
    return self._create_volume(volume['id'], create_params, user_id=volume['user_id'], project_id=volume['project_id'])
