Bug 1033398
Summary: | Nodedev-destroy commands both doc and error message when destroy HBA are not clear | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luwen Su <lsu> |
Component: | libvirt | Assignee: | John Ferlan <jferlan> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | dyuan, mzhan, pzhang, rbalakri, xuzhang, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.7-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 07:26:13 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Luwen Su
2013-11-22 03:11:22 UTC
One more thing , Will dumpxml a non-exist nodes error not exposed in terminal ? Like # virsh nodedev-dumpxml 1 error: Could not find matching device '1' error: invalid node device pointer in virNodeDeviceFree <---here commit ec2fb767bbd087c30b421b6c10eb2de25e90aa62 Author: Osier Yang <jyang> Date: Fri Nov 22 20:55:25 2013 +0800 Doc: Explicitly declaring that nodedev-destroy only works for vHBA Though trying to destroy a physical HBA doesn't make sense at all, it's still a bit misleading with saying "only works for HBA". Signed-off-by: Osier Yang <jyang> v1.2.0-21-gec2fb76 verify version: libvirt-1.2.8-10.el7.x86_64 install libvirt-1.2.8-10.el7.src.rpm # vim src/libvirt.c ...... /** * virNodeDeviceDestroy: * @dev: a device object * * Destroy the device object. The virtual device (only works for vHBA * currently) is removed from the host operating system. This function * may require privileged access. * ...... # vim tools/virsh.pod ...... name or wwn pair in "wwnn,wwpn" format (only works for vHBA currently). Note that this makes libvirt quit managing a host device, and may even make that device unusable by the rest of the physical host until a reboot. ...... move to verified. verify in libvirt.org and man page : check http://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceDestroy ...... Destroy the device object. The virtual device (only works for vHBA currently) is removed from the host operating system. This function may require privileged access. ...... check man page : ...... nodedev-destroy device Destroy (stop) a device on the host. device can be either device name or wwn pair in "wwnn,wwpn" format (only works for vHBA currently). Note that this makes libvirt quit managing a host device, and may even make that device unusable by the rest of the physical host until a reboot. ...... Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0323.html |