]> git.ipfire.org Git - thirdparty/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)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:35:02 +0000 (15:35 -0400)
commit5040c8daa53dfc2ef02e5038c87718e7bd59ffff
treea573deb603b2cc4c729103fb46d7bb174c8fa4f7
parent268c7e085aa5dd615b1bd1f8800de0c7eee3dd0e
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

$

(cherry picked from commit 84f178bdc7ab38011cc1f76759b0a41335285a4f)
src/conf/node_device_conf.c