Sometimes libvirt service closes current connection during test execution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Dennis Dmitriev |
Bug Description
This is a floating bug related to the connection from fuel-devops to libvirt-bin service.
Sometimes the libvirt-bin service closes the connection to the libvirt client, so the connection should be re-established.
But in fuel-devops3.0.3 the connection is cached, so after the first failure, fuel-devops tries to re-use already closed connection:
-------
2016-11-04 11:51:16 - DEBUG - libvirt_
2016-11-04 11:51:16 - DEBUG - decorators.py:113 -- Exception libvirtError(
onds.
Traceback (most recent call last):
File "/home/
return func(*args, **kwargs)
File "/home/
self.
File "/home/
if ret is None:raise libvirtError(
libvirtError: Cannot recv data: Connection reset by peer
2016-11-04 11:51:18 - DEBUG - decorators.py:120 -- Retrying devops.
2016-11-04 11:51:18 - DEBUG - libvirt_
2016-11-04 11:51:18 - DEBUG - decorators.py:113 -- Exception libvirtError(
s.
Traceback (most recent call last):
File "/home/
return func(*args, **kwargs)
File "/home/
self.
File "/home/
if ret is None:raise libvirtError(
libvirtError: internal error: client socket is closed
...
2016-11-04 11:51:20 - DEBUG - decorators.py:120 -- Retrying devops.
...
libvirtError: internal error: client socket is closed
...
-------
Changed in fuel: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/393776 /git.openstack. org/cgit/ openstack/ fuel-devops/ commit/ ?id=b5a5886c37d 1aeda37e7de5553 708fc76639bfe2
Committed: https:/
Submitter: Jenkins
Branch: master
commit b5a5886c37d1aed a37e7de5553708f c76639bfe2
Author: Dennis Dmitriev <email address hidden>
Date: Fri Nov 4 15:41:59 2016 +0200
Reconnect to libvirt service if previous connection is lost
re-trying a requiest doesn't help in cases when chached connection
was closed.
- do not cache the connection in a property
- check conn.isAlive() each time when already existing connection
is picked
Closes- Bug:#1639788 a03fc2950c41d13 b83f350fee2
Change-Id: I23c65162e32c97