mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
On a host with libvirt's modular daemons, a restart of virtstoraged or virtnetworkd (a package update, for one) left the panel's connection to virtproxyd open and alive, but every later storage or network call on it failed with "internal error: client socket is closed". Nothing replaced it: the storage and network pages showed the error and the VM page gave 500 until the panel was restarted, and a clone running then waited in recovery for up to an hour, holding its VM. libvirt reports that error as an RPC internal error and does not say on which connection, so the error handler now has the process retire its open connections at the next get_connection: each opens again when next asked. A retired connection stays with the threads that use them, its close callback unregistered so that it closes once they are done; a connection that failed or is opening keeps its retry delay. On compute1 the pages answered again from the second request on, and the clone's job failed at its first recovery check, 30 s later, freeing its VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| connection.py | ||
| create.py | ||
| hostdetails.py | ||
| instance.py | ||
| interface.py | ||
| libvirt-ssh | ||
| network.py | ||
| nodedevs.py | ||
| nwfilters.py | ||
| storage.py | ||
| util.py | ||
| virtsecrets.py | ||