libvirt/docs/schemas
John Ferlan 5530f248db storage: Introduce 'managed' for the fchost parent
https://bugzilla.redhat.com/show_bug.cgi?id=1160926

Introduce a 'managed' attribute to allow libvirt to decide whether to
delete a vHBA vport created via external means such as nodedev-create.
The code currently decides whether to delete the vHBA based solely on
whether the parent was provided at creation time. However, that may not
be the desired action, so rather than delete and force someone to create
another vHBA via an additional nodedev-create allow the configuration of
the storage pool to decide the desired action.

During createVport when libvirt does the VPORT_CREATE, set the managed
value to YES if not already set to indicate to the deleteVport code that
it should delete the vHBA when the pool is destroyed.

If libvirtd is restarted all the memory only state was lost, so for a
persistent storage pool, use the virStoragePoolSaveConfig in order to
write out the managed value.

Because we're now saving the current configuration, we need to be sure
to not save the parent in the output XML if it was undefined at start.
Saving the name would cause future starts to always use the same parent
which is not the expected result when not providing a parent. By not
providing a parent, libvirt is expected to find the best available
vHBA port for each subsequent (re)start.

At deleteVport, use the new managed value to decide whether to execute
the VPORT_DELETE.  Since we no longer save the parent in memory or in
XML when provided, if it was not provided, then we have to look it up.
2014-11-12 10:18:28 -05:00
..
basictypes.rng storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
capability.rng schemas: finish virTristate{Bool,Switch} transition 2014-09-17 16:10:26 +02:00
domain.rng conf: set up for per-grammar overrides in schemas 2014-04-15 21:07:59 +02:00
domaincaps.rng domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domaincommon.rng domaincommon.rng: Add 'bootloader' to os=hvm schema for Bhyve 2014-11-12 09:55:22 +01:00
domainsnapshot.rng conf: split <disk> schema into more pieces 2014-04-16 10:45:55 +02:00
interface.rng schemas: finish virTristate{Bool,Switch} transition 2014-09-17 16:10:26 +02:00
Makefile.am Introduce domain_capabilities 2014-07-03 12:22:37 +02:00
network.rng conf: add trustGuestRxFilters attribute to network and domain interface 2014-10-06 11:49:10 -04:00
networkcommon.rng Add '<nat>' element to '<forward>' network schemas 2013-09-05 13:45:49 +02:00
nodedev.rng Add unique_id to nodedev output 2014-07-21 12:55:11 -04:00
nwfilter.rng schemas: finish virTristate{Bool,Switch} transition 2014-09-17 16:10:26 +02:00
secret.rng schemas: finish virTristate{Bool,Switch} transition 2014-09-17 16:10:26 +02:00
storagecommon.rng conf: set up for per-grammar overrides in schemas 2014-04-15 21:07:59 +02:00
storagepool.rng storage: Fix logical pool fmt type 2014-09-29 05:59:09 -04:00
storagevol.rng storagevol: add nocow to vol xml 2014-07-16 13:35:20 +02:00