'Updates or creates volume administration metadata.
If delete is True, metadata items that are not specified in the
`metadata` argument will be deleted.'

@wrap_check_policy
def update_volume_admin_metadata(self, context, volume, metadata, delete=False, add=True, update=True):

    utils.check_metadata_properties(metadata)
    db_meta = self.db.volume_admin_metadata_update(context, volume.id, metadata, delete, add, update)
    LOG.info('Update    volume    admin    metadata    completed    successfully.', resource=volume)
    return db_meta
