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

def _create_backup_db_entry(self, volume_id=str(uuid.uuid4()), restore_volume_id=None, display_name='test_backup', display_description='this    is    a    test    backup', container='volumebackups', status=fields.BackupStatus.CREATING, size=1, object_count=0, project_id=str(uuid.uuid4()), service=None, temp_volume_id=None, temp_snapshot_id=None, snapshot_id=None, metadata=None, parent_id=None):

    kwargs = {}
    kwargs['volume_id'] = volume_id
    kwargs['restore_volume_id'] = restore_volume_id
    kwargs['user_id'] = str(uuid.uuid4())
    kwargs['project_id'] = project_id
    kwargs['host'] = 'testhost'
    kwargs['availability_zone'] = '1'
    kwargs['display_name'] = display_name
    kwargs['display_description'] = display_description
    kwargs['container'] = container
    kwargs['status'] = status
    kwargs['fail_reason'] = ''
    kwargs['service'] = (service or CONF.backup_driver)
    kwargs['snapshot_id'] = snapshot_id
    kwargs['parent_id'] = parent_id
    kwargs['size'] = size
    kwargs['object_count'] = object_count
    kwargs['temp_volume_id'] = temp_volume_id
    kwargs['temp_snapshot_id'] = temp_snapshot_id
    kwargs['metadata'] = (metadata or {})
    backup = objects.Backup(context=self.ctxt, **kwargs)
    backup.create()
    return backup
