Bug 1972586

Summary: RFE: Support XMLs validation flags for the APIs of creation or definition
Product: Red Hat Enterprise Linux 9 Reporter: Han Han <hhan>
Component: libvirtAssignee: khanicov
libvirt sub component: General QA Contact: Han Han <hhan>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: low CC: jdenemar, khanicov, meili, pkrempa, virt-maint, xuzhang
Version: 9.0Keywords: FutureFeature, Triaged, Upstream
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-7.8.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-03 10:40:18 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Han Han 2021-06-16 09:45:42 UTC
Description of problem:
Currently these XML validation flags are supported:
VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE
VIR_DOMAIN_START_VALIDATE
VIR_DOMAIN_DEFINE_VALIDATE
VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE
VIR_CONNECT_COMPARE_CPU_VALIDATE_XML

However libvirt has APIs to create or define the XMLs of network, nodedev, nwfilter, interface, networkport, secret, storagepool, storagevol. The XML validation flags could be added for these APIs, too.

Comment 2 khanicov 2022-09-30 12:18:08 UTC
Moving this to POST because the validate option was added almost to all the APIs where it was possible.

Relevant commits merged in the upstream:
a3d88c9d
ec5561c0
7e7747cc
5ca09c6b
6779fca4
8f8eeb37
4d31c02f

Comment 3 Jiri Denemark 2022-10-03 10:40:18 UTC
This was all implemented more than a year ago and thus it is already present in RHEL-9 since 9.0.0.