{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2870","repository_url":"https://api.github.com/repos/fedora-infra/bodhi","labels_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2870/labels{/name}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2870/comments","events_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2870/events","html_url":"https://github.com/fedora-infra/bodhi/issues/2870","id":392416565,"node_id":"MDU6SXNzdWUzOTI0MTY1NjU=","number":2870,"title":"Frequent koji.AuthError since switching to Python 3","user":{"login":"bowlofeggs","id":354506,"node_id":"MDQ6VXNlcjM1NDUwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/354506?v=4","gravatar_id":"","url":"https://api.github.com/users/bowlofeggs","html_url":"https://github.com/bowlofeggs","followers_url":"https://api.github.com/users/bowlofeggs/followers","following_url":"https://api.github.com/users/bowlofeggs/following{/other_user}","gists_url":"https://api.github.com/users/bowlofeggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bowlofeggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bowlofeggs/subscriptions","organizations_url":"https://api.github.com/users/bowlofeggs/orgs","repos_url":"https://api.github.com/users/bowlofeggs/repos","events_url":"https://api.github.com/users/bowlofeggs/events{/privacy}","received_events_url":"https://api.github.com/users/bowlofeggs/received_events","type":"User","site_admin":false},"labels":[{"id":250792239,"node_id":"MDU6TGFiZWwyNTA3OTIyMzk=","url":"https://api.github.com/repos/fedora-infra/bodhi/labels/Composer","name":"Composer","color":"e11d21","default":false},{"id":455979090,"node_id":"MDU6TGFiZWw0NTU5NzkwOTA=","url":"https://api.github.com/repos/fedora-infra/bodhi/labels/Crash","name":"Crash","color":"b60205","default":false},{"id":430423677,"node_id":"MDU6TGFiZWw0MzA0MjM2Nzc=","url":"https://api.github.com/repos/fedora-infra/bodhi/labels/High%20priority","name":"High priority","color":"d93f0b","default":false},{"id":724626558,"node_id":"MDU6TGFiZWw3MjQ2MjY1NTg=","url":"https://api.github.com/repos/fedora-infra/bodhi/labels/python3","name":"python3","color":"b7f49f","default":false},{"id":511861977,"node_id":"MDU6TGFiZWw1MTE4NjE5Nzc=","url":"https://api.github.com/repos/fedora-infra/bodhi/labels/reliability","name":"reliability","color":"911911","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-19T02:36:58Z","updated_at":"2018-12-20T16:36:37Z","closed_at":null,"author_association":"MEMBER","body":"I've observed that Koji frequently raises ```koji.AuthError``` since Bodhi switched to Python 3:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/consumers/masher.py\", line 344, in run\r\n    self.work()\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/consumers/masher.py\", line 415, in work\r\n    self._compose_updates()\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/consumers/masher.py\", line 949, in _compose_updates\r\n    uinfo = self._generate_updateinfo()\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/consumers/masher.py\", line 1018, in _generate_updateinfo\r\n    self.db, self.mash_dir)\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/metadata.py\", line 149, in __init__\r\n    self.add_update(update)\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/metadata.py\", line 235, in add_update\r\n    koji = get_session()\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/buildsys.py\", line 639, in get_session\r\n    return _buildsystem()\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/buildsys.py\", line 672, in get_koji_login\r\n    return koji_login(config=settings, authenticate=authenticate)\r\n  File \"/usr/lib/python3.7/site-packages/bodhi/server/buildsys.py\", line 596, in koji_login\r\n    if authenticate and not koji_client.krb_login(**get_krb_conf(config)):\r\n  File \"/usr/lib/python3.7/site-packages/koji/__init__.py\", line 2119, in krb_login\r\n    if self.gssapi_login(principal, keytab, ccache, proxyuser=proxyuser):\r\n  File \"/usr/lib/python3.7/site-packages/koji/__init__.py\", line 2271, in gssapi_login\r\n    raise AuthError('unable to obtain a session')\r\nkoji.AuthError: unable to obtain a session\r\n```\r\n\r\nWe should catch this and retry. Something like https://github.com/litl/backoff/ might be nice to use to do it."},"comment":{"url":"https://api.github.com/repos/fedora-infra/bodhi/issues/comments/449058667","html_url":"https://github.com/fedora-infra/bodhi/issues/2870#issuecomment-449058667","issue_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/2870","id":449058667,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTA1ODY2Nw==","user":{"login":"bowlofeggs","id":354506,"node_id":"MDQ6VXNlcjM1NDUwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/354506?v=4","gravatar_id":"","url":"https://api.github.com/users/bowlofeggs","html_url":"https://github.com/bowlofeggs","followers_url":"https://api.github.com/users/bowlofeggs/followers","following_url":"https://api.github.com/users/bowlofeggs/following{/other_user}","gists_url":"https://api.github.com/users/bowlofeggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bowlofeggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bowlofeggs/subscriptions","organizations_url":"https://api.github.com/users/bowlofeggs/orgs","repos_url":"https://api.github.com/users/bowlofeggs/repos","events_url":"https://api.github.com/users/bowlofeggs/events{/privacy}","received_events_url":"https://api.github.com/users/bowlofeggs/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T16:36:37Z","updated_at":"2018-12-20T16:36:37Z","author_association":"MEMBER","body":"There is now an infrastructure ticket about this as well: https://pagure.io/fedora-infrastructure/issue/7458"}}
{"actor":{"display_login":"bowlofeggs"}}