Bug 831049
| Summary: | Update libvirtd manpage to describe how --timeout works & its usage limitations | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | yanbing du <ydu> |
| Component: | libvirt | Assignee: | Gunannan Ren <gren> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.3 | CC: | acathrow, berrange, dallan, dyasny, dyuan, mzhan, rwu, whuang |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-0.10.0-0rc0.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-21 07:17:00 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
yanbing du
2012-06-12 05:26:30 UTC
This is working entirely as designed. The timeout option is *supposed* to take account of any running resources, so if you autostart things, it will not shutdown. The timeout option is primarily intended for use with the non-privileged libvirtd when it has been auto-spawned by a client app. (In reply to comment #1) > This is working entirely as designed. The timeout option is *supposed* to > take account of any running resources, so if you autostart things, it will > not shutdown. The timeout option is primarily intended for use with the > non-privileged libvirtd when it has been auto-spawned by a client app. Thanks, i see. So, if we need update the man page to give a detail explanation for timeout option? For now: #man libvirtd <snip> -t, --timeout SECONDS Exit after timeout period (in seconds) expires. </snip> I agree with Dan that the behavior is correct as designed. It does however seem that confusion arises pretty much every time someone tries to use this feature, so perhaps some additional documentation in the manpage will help clarify things. I'm reopening to track the manpage addition. how to test it: 1 start libvirtd /usr/sbin/libvirtd --timeout=2 2 check registered drivers, ensure no active resouces. virsh net-list --all virsh pool-list --all virsh nwfilter-list virsh -c qemu:///system list --all virsh -c lxc:/// list --all virsh -c uml:///system list --all for these registered drivers: network, storage, nwfilter, qemu, lxc, uml, libxl 3, When all active resource, for example, domain is shutdown, the libvirtd will stop automatically. patch sent to upstream https://www.redhat.com/archives/libvir-list/2012-July/msg01393.html commit a077c562f60aa42cb9a665f5f596bb1d2cae2550
Author: Guannan Ren <gren>
Date: Thu Jul 26 00:22:53 2012 +0800
doc: add more description on libvirtd option timeout
(In reply to comment #4) > how to test it: > 1 start libvirtd > /usr/sbin/libvirtd --timeout=2 > 2 check registered drivers, ensure no active resouces. > virsh net-list --all > virsh pool-list --all > virsh nwfilter-list > virsh -c qemu:///system list --all > virsh -c lxc:/// list --all > virsh -c uml:///system list --all > > for these registered drivers: network, storage, nwfilter, qemu, lxc, uml, > libxl > > 3, When all active resource, for example, domain is shutdown, the libvirtd > will stop automatically. This test already passed before, and check the manpage of libvirtd, can find more description on libvirtd option timeout For libvirt-0.9.13-3.el6.x86_64 #man libvirtd ------ -t, --timeout SECONDS Exit after timeout period (in seconds) expires. ------ For libvirt-0.10.0-0rc0.el6.x86_64 #man libvirtd ------ -t, --timeout SECONDS Exit after timeout period (in seconds) elapse with no client connections or registered resources. Be aware that resources such as autostart networks will result in never reaching the timeout, even when there are no client connections. ------ So move this bug to verify. 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. http://rhn.redhat.com/errata/RHSA-2013-0276.html |