libvirt/docs/schemas
John Ferlan 5d7659027f docs,rng: Adjust storage pool name grammar checks
https://bugzilla.redhat.com/show_bug.cgi?id=1475250

It's possible to define and start a pool with a '.' in the
name; however, when trying to add a volume to a domain using
the storage pool source with a '.' in the storage pool name,
the domain RNG validation fails because RNG uses 'genericName'
which does not allow a '.' in the name.

Domain XML def parsing has a virXMLValidateAgainstSchema which
generates the error. The Storage Pool XML def parsing has no
call to virXMLValidateAgainstSchema. The only Storage Pool name
validation occurs in virStoragePoolDefParseXML to ensure the
name doesn't have a '/' in it and in storagePoolDefineXML to
call virXMLCheckIllegalChars using the same parameter "\n" as
qemuDomainDefineXMLFlags would check after the RNG check
could be succesful.

In order to resolve this, create a poolName definition in
storagecommon.rng that will mimic the domain name regex that
disallows a newline character, but add the "/" in the exclude
list. Then modify the pool and volume source name definitions
to key off that poolName.
2017-10-05 08:10:46 -04:00
..
basictypes.rng node_device: detect CCW devices 2017-05-26 10:44:05 -04:00
capability.rng rng: Fix formatting 2017-09-12 13:41:21 +02:00
cputypes.rng Add support for CPU cache specification 2017-04-27 22:07:14 +02:00
domain.rng
domaincaps.rng schema: domaincaps: make machine element optional 2017-03-26 18:35:14 +04:00
domaincommon.rng docs,rng: Adjust storage pool name grammar checks 2017-10-05 08:10:46 -04:00
domainsnapshot.rng qemu: Store save cookie in save images and snapshots 2017-06-07 13:36:02 +02:00
interface.rng docs: make interface start mode element optional 2017-03-27 10:22:15 -04:00
network.rng rng: Fix formatting 2017-09-12 13:41:21 +02:00
networkcommon.rng domain_conf: Introduce <mtu/> to <interface/> 2017-01-26 09:59:56 +01:00
nodedev.rng rng: Fix formatting 2017-09-12 13:41:21 +02:00
nwfilter.rng rng: Fix formatting 2017-09-12 13:41:21 +02:00
secret.rng
storagecommon.rng docs,rng: Adjust storage pool name grammar checks 2017-10-05 08:10:46 -04:00
storagepool.rng docs,rng: Adjust storage pool name grammar checks 2017-10-05 08:10:46 -04:00
storagevol.rng