'Create snapshot of existing volume.
:param snapshot: shapshot reference'

def create_snapshot(self, snapshot):

    create_params = {'name': self._get_dbref_name(snapshot)}
    LOG.debug('Creating    snapshot    of    volume    %(volume_id)s', snapshot, resource=snapshot)
    return self._create_snapshot(snapshot['volume_id'], snapshot['id'], create_params, user_id=snapshot['user_id'], project_id=snapshot['project_id'])
