)]}'
{"swiftclient/client.py":[{"author":{"_account_id":9216,"name":"Joel Wright","email":"joel.wright@gmail.com","username":"jjw-sohonet"},"change_message_id":"736ababd4e42f97e669f0f43037890147a0e7e7c","unresolved":false,"context_lines":[{"line_number":568,"context_line":"    except exceptions.Unauthorized:"},{"line_number":569,"context_line":"        if \u0027auth_token\u0027 in os_options:"},{"line_number":570,"context_line":"            # If an auth token was provided as an option, pop it from the"},{"line_number":571,"context_line":"            # options (as it probably expired) and try again"},{"line_number":572,"context_line":"            del os_options[\u0027auth_token\u0027]"},{"line_number":573,"context_line":"            return get_auth_keystone(auth_url, user, key, os_options, **kwargs)"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        msg \u003d \u0027Unauthorized. Check username, password and tenant name/id.\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba5201f7_00a48005","line":572,"range":{"start_line":571,"start_character":12,"end_line":572,"end_character":40},"updated":"2017-01-08 20:00:28.000000000","message":"I feel a little bit uncomfortable with the \u0027it probably expired so delete it and try again\u0027 style... is there no way we can detect the specific case of an expired auth token and try again only if we have a decent chance of succeeding?\n\nMaybe I\u0027m being unnecessarily negative, or maybe the word \u0027probably\u0027 in the comment has given me the wrong impression.","commit_id":"229454eb9c43eeaeeeafa2e88e7d3a990c53bedb"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"0b3edfabf653ca1ba37780964188231503c788ea","unresolved":false,"context_lines":[{"line_number":568,"context_line":"    except exceptions.Unauthorized:"},{"line_number":569,"context_line":"        if \u0027auth_token\u0027 in os_options:"},{"line_number":570,"context_line":"            # If an auth token was provided as an option, pop it from the"},{"line_number":571,"context_line":"            # options (as it probably expired) and try again"},{"line_number":572,"context_line":"            del os_options[\u0027auth_token\u0027]"},{"line_number":573,"context_line":"            return get_auth_keystone(auth_url, user, key, os_options, **kwargs)"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        msg \u003d \u0027Unauthorized. Check username, password and tenant name/id.\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a430d35_81bfe5a8","line":572,"range":{"start_line":571,"start_character":12,"end_line":572,"end_character":40},"in_reply_to":"1a430d35_f34c3272","updated":"2017-02-07 23:22:52.000000000","message":"Sure enough, sending an invalid token with your password-based auth request 401s (at least back on Juno). I stand by the need to drop it and try again.","commit_id":"229454eb9c43eeaeeeafa2e88e7d3a990c53bedb"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"74fd987883170e78d0575f211696685f302b1e60","unresolved":false,"context_lines":[{"line_number":568,"context_line":"    except exceptions.Unauthorized:"},{"line_number":569,"context_line":"        if \u0027auth_token\u0027 in os_options:"},{"line_number":570,"context_line":"            # If an auth token was provided as an option, pop it from the"},{"line_number":571,"context_line":"            # options (as it probably expired) and try again"},{"line_number":572,"context_line":"            del os_options[\u0027auth_token\u0027]"},{"line_number":573,"context_line":"            return get_auth_keystone(auth_url, user, key, os_options, **kwargs)"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        msg \u003d \u0027Unauthorized. Check username, password and tenant name/id.\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a430d35_f34c3272","line":572,"range":{"start_line":571,"start_character":12,"end_line":572,"end_character":40},"in_reply_to":"ba5201f7_00a48005","updated":"2017-02-07 20:10:58.000000000","message":"The way I figure it, either the token expired or the creds are bad. There\u0027s nothing we can do about the latter (and the retry will just fail again), so may as well take a chance on the former.\n\nThat said, the customer issue that prompted this ultimately came down to a bug in my (server-side) auth code... need to check out how keystone proper behaves.","commit_id":"229454eb9c43eeaeeeafa2e88e7d3a990c53bedb"}]}
