)]}'
{"os_client_config/cloud_config.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"20295957340649f4d5b76786f3a8f09d4fb0bdba","unresolved":false,"context_lines":[{"line_number":183,"context_line":"    def get_session(self):"},{"line_number":184,"context_line":"        \"\"\"Return a keystoneauth session based on the auth credentials.\"\"\""},{"line_number":185,"context_line":"        if self._keystone_session is None:"},{"line_number":186,"context_line":"            if not self._auth and self.config[\u0027auth_type\u0027]:"},{"line_number":187,"context_line":"                raise exceptions.OpenStackConfigException("},{"line_number":188,"context_line":"                    \"Problem with auth parameters\")"},{"line_number":189,"context_line":"            (verify, cert) \u003d self.get_requests_verify_args()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a7b0d38_24a9f67b","line":186,"range":{"start_line":186,"start_character":38,"end_line":186,"end_character":39},"updated":"2015-12-24 15:02:27.000000000","message":"So this conditional will never not fail with the way everything is bolted together currently.\n\nIf explicitly feed None in, the auth_type value at this point is \u0027password\u0027\nIf I explicitly feed a value of \u0027None\u0027, since things coming from Ansible can be a string, a value of \u0027None\u0027 is what surfaces here.  (For what its worth, this seems to be the likely default)\n\nAs a result of the value being a string, exception is thrown. :\\\n\nEven if I correct the conditional locally, I still end up getting a nasty backtrace rooted at:\n\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 304, in get_legacy_client\n    endpoint \u003d self.get_session_endpoint(service_key)\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 253, in get_session_endpoint\n    region_name\u003dself.region)\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py\", line 614, in get_endpoint\n    auth \u003d self._auth_required(auth, \u0027determine endpoint URL\u0027)\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py\", line 558, in _auth_required\n    raise exceptions.MissingAuthPlugin(msg_fmt % msg)\nkeystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL","commit_id":"a3fadc861e48a8f1f09c86c59b4e4be73ba028ae"}],"os_client_config/config.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"20295957340649f4d5b76786f3a8f09d4fb0bdba","unresolved":false,"context_lines":[{"line_number":732,"context_line":""},{"line_number":733,"context_line":"    def _get_auth_loader(self, config):"},{"line_number":734,"context_line":"        if config[\u0027auth_type\u0027] in (None, \"None\", \u0027\u0027):"},{"line_number":735,"context_line":"            return None"},{"line_number":736,"context_line":"        return loading.get_plugin_loader(config[\u0027auth_type\u0027])"},{"line_number":737,"context_line":""},{"line_number":738,"context_line":"    def _validate_auth_ksc(self, config):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a7b0d38_1ed76224","line":735,"updated":"2015-12-24 15:02:27.000000000","message":"I think removing the explicit setting of admin_token causes the endpoint to be looked up, which results in a nice backtrace shown below when using invoking os_ironic in noauth mode.\n\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 304, in get_legacy_client\n    endpoint \u003d self.get_session_endpoint(service_key)\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 253, in get_session_endpoint\n    region_name\u003dself.region)\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py\", line 614, in get_endpoint\n    auth \u003d self._auth_required(auth, \u0027determine endpoint URL\u0027)\n  File \"/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py\", line 558, in _auth_required\n    raise exceptions.MissingAuthPlugin(msg_fmt % msg)\nkeystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL","commit_id":"a3fadc861e48a8f1f09c86c59b4e4be73ba028ae"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"8e589bdc7d95aed5722c9d09d15315564b57ddf5","unresolved":false,"context_lines":[{"line_number":909,"context_line":"            try:"},{"line_number":910,"context_line":"                loader \u003d self._get_auth_loader(config)"},{"line_number":911,"context_line":"                if not loader:"},{"line_number":912,"context_line":"                    auth_plugin \u003d None"},{"line_number":913,"context_line":"                else:"},{"line_number":914,"context_line":"                    config \u003d self._validate_auth(config, loader)"},{"line_number":915,"context_line":"                    auth_plugin \u003d loader.load_from_options(**config[\u0027auth\u0027])"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_edc77a43","line":912,"updated":"2015-12-30 19:33:22.000000000","message":"I\u0027m still seeing the \"An auth plugin is required to determine endpoint URL\" trace that Julia pointed out, since shade calls ironicclient calls keystoneauth which requires auth to be set.","commit_id":"b00bf0f80ba93381fde23350d57a7448d5dad998"}],"os_client_config/tests/test_config.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"20295957340649f4d5b76786f3a8f09d4fb0bdba","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                                   secure_files\u003d[self.no_yaml])"},{"line_number":146,"context_line":"        args \u003d {"},{"line_number":147,"context_line":"            \u0027auth-type\u0027: None,"},{"line_number":148,"context_line":"            \u0027auth\u0027: None,"},{"line_number":149,"context_line":"            \u0027ironic-url\u0027: \u0027http://example.com/v1\u0027,"},{"line_number":150,"context_line":"        }"},{"line_number":151,"context_line":"        cc \u003d c.get_one_cloud(**args)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a7b0d38_5ec40a5e","line":148,"updated":"2015-12-24 15:02:27.000000000","message":"String values should likely be tested as well since we know we might not get actual nulls being passed through.","commit_id":"a3fadc861e48a8f1f09c86c59b4e4be73ba028ae"}]}
