Learn more about these different git repos.
Other Git URLs
99c4040
@@ -159,6 +159,10 @@
logger.error('Session expired')
exit_code = 1
break
+ except koji.AuthError:
+ logger.error('Authentication error')
+ exit_code = 1
+ break
except koji.RetryError:
raise
except Exception:
@@ -1159,6 +1159,9 @@
except koji.AuthExpired:
logger.warning("Session expired")
+ logger.warning("Authentication error")
except SystemExit:
logger.warning("Shutting down")
AuthError exceptions were not being caught and dealt with, this PR fixes that.
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
I'm not sure this really deals with them, but they are generally indicative of a non-recoverable error, so probably better to exit than to keep trying.
Granted, both of these have Restart=on-failure in their systemd service config, so it ends up being a heavier-handed form of retry. In the case where a session has been expired, this may well resolve the issue. For other types of AuthError faults (disabled user, access issues, bad client code), a full restart will probably not help.
Restart=on-failure
Longer term, we should probably try to have a cleaner reauth mechanism for expired sessions, but this simple change is fine for now.
Metadata Update from @tkopecek: - Pull-request untagged with: testing-ready - Pull-request tagged with: no_qe
Commit 3cf8cc5 fixes this pull-request
Pull-Request has been merged by tkopecek
AuthError exceptions were not being caught and dealt with, this PR fixes that.