try to close failing connection
This commit is contained in:
parent
22c88fcce3
commit
7cc3fe6a52
1 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,10 @@ class LibvirtCallable(object):
|
|||
logging.getLogger("koji.vm").warning(
|
||||
'Internal libvirt error: %s, retry #%d/%d' % (ex, retry, max_retries))
|
||||
time.sleep(5)
|
||||
try:
|
||||
self.conn._conn.close()
|
||||
except Exception:
|
||||
pass
|
||||
self.conn._conn = libvirt.open(None)
|
||||
else:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue