]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add check for non scsi_host parent during vport delete
authorJohn Ferlan <jferlan@redhat.com>
Tue, 4 Apr 2017 18:06:42 +0000 (14:06 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 13 Apr 2017 14:26:37 +0000 (10:26 -0400)
commit84f178bdc7ab38011cc1f76759b0a41335285a4f
tree5f9fe3c7abd8ca60ac45f3dbf47118c3b39b383d
parent4143b194ce29867929b05517c178ef9371ebb8b4
conf: Add check for non scsi_host parent during vport delete

https://bugzilla.redhat.com/show_bug.cgi?id=1420740

If the parent is not a scsi_host, then we can just happily return since
we won't be removing a vport.

Fixes a bug with the following output:

$ virsh pool-destroy host4_hba_pool
error: Failed to destroy pool host4_hba_pool
error: internal error: Invalid adapter name 'pci_0000_10_00_1' for SCSI pool

$
src/conf/node_device_conf.c