343a57570e
Currently a new connection is created for every API call which is never closed. This results in open connections accumulating over time due to periodic calls like power state polling, which is further compounded by the number of ovirt nodes deployed. This change converts _getvm into a generator based context manager so that the connection can be closed after every call. Change-Id: I30f9695c591f72dae21467b0b31f6f67fad7cc8a
10 lines
344 B
YAML
10 lines
344 B
YAML
---
|
|
fixes:
|
|
- |
|
|
oVirt driver: Close connection after each API call
|
|
|
|
A new connection was being created for every API call which was
|
|
never closed. This resulted in open connections accumulating over time
|
|
due to periodic calls like power state polling, which was further
|
|
compounded by the number of ovirt nodes deployed.
|