]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
node-proxy: catch RequestException in reporter
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 7 Jun 2023 12:23:57 +0000 (14:23 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:43:30 +0000 (14:43 +0000)
commit6d9198519d7b0d51e00d785d7be1f06e2e7509e3
tree192efac5afdcaa67870f3282533f223dd39bd8e6
parentc8653e4cf64af5156d571d5e2ffe7e912ac0a78e
node-proxy: catch RequestException in reporter

This catches the requests.exceptions.RequestException
exception in the reporter agent so we can better handle the
case where it can't reach the endpoint when trying to send the
collected data.
Before this change, if for some reason the refreshed data couldn't be
sent to the endpoint, it wouldn't have retried because
`self.system.previous_data` was overwritten anyway.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/cephadm/node-proxy/reporter.py