Bug 885386 - libvirtd --timeout doesn't work
Summary: libvirtd --timeout doesn't work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-09 00:31 UTC by Cole Robinson
Modified: 2016-04-26 19:33 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-09 19:34:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Cole Robinson 2012-12-09 00:31:57 UTC
libvirtd --timeout 5
(wait forever, nothing happens)

and there's even some other weirdness here: --timeout=1  can't be killed with control-c, and it hangs qemu instances launched to fetch capabilities info. So something is probably firing behind the scenes but not doing a complete job.

--timeout=30 is used for autolaunching libvirt with qemu:///session, so this isn't entirely minor.

Comment 1 Daniel Berrangé 2012-12-10 14:01:05 UTC
In current libvirt releases, any active resource will block shutdown. eg if you have any active storage pools, networks, or domains, it will be blocked. A directory based storagepool is the usual issue, since those can't even be de-activated. Upstream code has completely changed so that only domains prevent shutdown.

The timeout=1/Ctrl-C issue might be related to the fact that startup of the virStateInitialize will still be taking place in another thread, which might be badly interacting with shutdown/timeouts. Upstream doesn't start the timeout until after initialization is complete now.

Comment 2 Cole Robinson 2016-03-09 19:34:07 UTC
Seems long since fixed


Note You need to log in before you can comment on or make changes to this bug.