From f8c7ad28e40a86176d385b3405a2f84798ffd77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 29 Mar 2022 09:50:59 +0200 Subject: [PATCH] kojiwrapper: Add retries to login call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gssapi_login call is not retried automatically by Koji yet (see koji#3170). Let's try to work around that by retrying in the calling code. JIRA: RHELCMP-8700 Signed-off-by: Lubomír Sedlář --- pungi/wrappers/kojiwrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pungi/wrappers/kojiwrapper.py b/pungi/wrappers/kojiwrapper.py index b11f5e6f..d53da5d9 100644 --- a/pungi/wrappers/kojiwrapper.py +++ b/pungi/wrappers/kojiwrapper.py @@ -65,6 +65,9 @@ class KojiWrapper(object): self.koji_module.config.server, session_opts ) + # This retry should be removed once https://pagure.io/koji/issue/3170 is + # fixed and released. + @util.retry(wait_on=(xmlrpclib.ProtocolError, koji.GenericError)) def login(self): """Authenticate to the hub.""" auth_type = self.koji_module.config.authtype