'Create a snapshot entry in the DB.
Return the entry ID.'

def _create_snapshot_db_entry(self, display_name='test_snapshot', display_description='test    snapshot', status=fields.SnapshotStatus.AVAILABLE, size=1, volume_id=str(uuid.uuid4()), provider_location=None):

    kwargs = {}
    kwargs['size'] = size
    kwargs['user_id'] = str(uuid.uuid4())
    kwargs['project_id'] = str(uuid.uuid4())
    kwargs['status'] = status
    kwargs['display_name'] = display_name
    kwargs['display_description'] = display_description
    kwargs['volume_id'] = volume_id
    kwargs['cgsnapshot_id'] = None
    kwargs['volume_size'] = size
    kwargs['metadata'] = {}
    kwargs['provider_location'] = provider_location
    snapshot_obj = objects.Snapshot(context=self.ctxt, **kwargs)
    snapshot_obj.create()
    return snapshot_obj
