Bug 1598087
Summary: | Improve documentation description for 'virsh detach-device-alias' cmd | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | jiyan <jiyan> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | jiyan <jiyan> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.6 | CC: | dyuan, jdenemar, jiyan, lhuang, lmen, mprivozn, xuzhang, yalzhang |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-4.5.0-2.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-30 09:57:31 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
jiyan
2018-07-04 10:11:46 UTC
I don't think this is a bug. The documentation states: * In contrast to virDomainDetachDeviceFlags() this API is * asynchronous - it returns immediately after sending the detach * request to the hypervisor. It's caller's responsibility to * wait for VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event to signal * actual device removal. Right, the caller should get VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED event in this case. I think we should improve the documentation to mention this event too. Okay. Patch proposed upstream: https://www.redhat.com/archives/libvir-list/2018-July/msg00271.html Hi Michal, got it. And there is another doc problem. Could you please modify it? # man virsh detach-device-alias domain alias [[[--live] [--config] | [--current]] | [--persistent]] Detach a device with given alias from the domain. If --live is specified, affect a running domain. If --config is specified, affect the next startup of a persistent domain. If --current is specified, affect the current domain state. Both --live and --config flags may be given, but --current is exclusive. # virsh detach-device-alias b1 ua-9874229d-d867-4932-ad28-279e9a777f37 --persistent error: command 'detach-device-alias' doesn't support option --persistent Verified in libvirt-4.5.0-2.el7.x86_64. The two problems have already been fixed, move this bug to be verified. 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://access.redhat.com/errata/RHSA-2018:3113 |