)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"677b81dffa22f1d4b59c037b32161755346b3960","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"82d1f9fd_cb2edb54","updated":"2026-09-22 18:20:12.000000000","message":"This feels like a serious bug, so we probably want to fix it, but the driver is becoming less and less readable, so we will probably need to rewrite parts of it at some point :/ \n\nCould you add a release note?","commit_id":"6c981519875da9a4f05ac103a4303c42a4fbf406"},{"author":{"_account_id":37800,"name":"Sebastian Krott","display_name":"Sebastian Krott","email":"sebastian.krott@sap.com","username":"sebkro_sap"},"change_message_id":"87f914aa34b5062c94906d2d0030814c95c443c9","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"327f7a16_4f5fcd51","in_reply_to":"82d1f9fd_cb2edb54","updated":"2026-09-23 20:04:04.000000000","message":"Done.","commit_id":"6c981519875da9a4f05ac103a4303c42a4fbf406"}],"glance_store/_drivers/swift/store.py":[{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"ae9903a0f05a2728d17fcf3f453788bb6f2f5fb5","unresolved":true,"context_lines":[{"line_number":1631,"context_line":"                self.conf, self.backend_group).swift_store_container"},{"line_number":1632,"context_line":"        else:"},{"line_number":1633,"context_line":"            self.container \u003d self.conf.glance_store.swift_store_container"},{"line_number":1634,"context_line":"        self.scheme \u003d None"},{"line_number":1635,"context_line":"        self.storage_url \u003d None"},{"line_number":1636,"context_line":"        self._storage_netloc \u003d None"},{"line_number":1637,"context_line":"        if self.backend_group:"},{"line_number":1638,"context_line":"            self._set_url_prefix()"},{"line_number":1639,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"558603dc_43907b81","line":1636,"range":{"start_line":1634,"start_character":8,"end_line":1636,"end_character":35},"updated":"2026-04-15 08:59:07.000000000","message":"I think you can initilize these before line 1629 and then call self._set_url_prefix() after line 1631 to avoid duplication of if condition","commit_id":"b5a09dd1b1368896c82f225de64250382ea4c22b"},{"author":{"_account_id":37800,"name":"Sebastian Krott","display_name":"Sebastian Krott","email":"sebastian.krott@sap.com","username":"sebkro_sap"},"change_message_id":"edba684f62123cac1017c6faa0dd3af415234d6b","unresolved":false,"context_lines":[{"line_number":1631,"context_line":"                self.conf, self.backend_group).swift_store_container"},{"line_number":1632,"context_line":"        else:"},{"line_number":1633,"context_line":"            self.container \u003d self.conf.glance_store.swift_store_container"},{"line_number":1634,"context_line":"        self.scheme \u003d None"},{"line_number":1635,"context_line":"        self.storage_url \u003d None"},{"line_number":1636,"context_line":"        self._storage_netloc \u003d None"},{"line_number":1637,"context_line":"        if self.backend_group:"},{"line_number":1638,"context_line":"            self._set_url_prefix()"},{"line_number":1639,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"a1ea9b67_9036a2a6","line":1636,"range":{"start_line":1634,"start_character":8,"end_line":1636,"end_character":35},"in_reply_to":"558603dc_43907b81","updated":"2026-04-15 17:15:01.000000000","message":"Good point, done.","commit_id":"b5a09dd1b1368896c82f225de64250382ea4c22b"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"677b81dffa22f1d4b59c037b32161755346b3960","unresolved":true,"context_lines":[{"line_number":1746,"context_line":"        # Attempt to resolve self._storage_netloc and self.scheme if unset"},{"line_number":1747,"context_line":"        if not self._storage_netloc or not self.scheme:"},{"line_number":1748,"context_line":"            try:"},{"line_number":1749,"context_line":"                self._get_endpoint(context)"},{"line_number":1750,"context_line":"            except exceptions.BadStoreConfiguration:"},{"line_number":1751,"context_line":"                pass"},{"line_number":1752,"context_line":"        # Validate scheme"}],"source_content_type":"text/x-python","patch_set":2,"id":"1272a4d9_2768b7e6","line":1749,"range":{"start_line":1749,"start_character":34,"end_line":1749,"end_character":35},"updated":"2026-09-22 18:20:12.000000000","message":"So \"matches_uri\" may call _get_endpoint to set the value of self._storage_netloc and self.scheme. I would much rather that matches_uri did not change anything about the state of self. Is there anyway to call _get_endpoint from somewhere else?","commit_id":"6c981519875da9a4f05ac103a4303c42a4fbf406"},{"author":{"_account_id":37800,"name":"Sebastian Krott","display_name":"Sebastian Krott","email":"sebastian.krott@sap.com","username":"sebkro_sap"},"change_message_id":"e82aef6069012db4b92a165063a17fcfa3d20398","unresolved":true,"context_lines":[{"line_number":1746,"context_line":"        # Attempt to resolve self._storage_netloc and self.scheme if unset"},{"line_number":1747,"context_line":"        if not self._storage_netloc or not self.scheme:"},{"line_number":1748,"context_line":"            try:"},{"line_number":1749,"context_line":"                self._get_endpoint(context)"},{"line_number":1750,"context_line":"            except exceptions.BadStoreConfiguration:"},{"line_number":1751,"context_line":"                pass"},{"line_number":1752,"context_line":"        # Validate scheme"}],"source_content_type":"text/x-python","patch_set":2,"id":"d461e302_a7079160","line":1749,"range":{"start_line":1749,"start_character":34,"end_line":1749,"end_character":35},"in_reply_to":"0a18112f_c258b7b9","updated":"2026-11-08 18:46:33.000000000","message":"Technically, yes, it\u0027s possible for `matches_uri` to use the scheme and netloc only temporarily instead of lazy-initializing the `self` attributes. But `init_client` \u003e `_set_url_prefix` as well as `create_location` also do the lazy initialization. \n\nThe downsides of not modifying `self` are:\n1. until the endpoint attributes have been initialized by some other function, each execution of `matches_uri` would unnecessarily reexecute the request to keystone for the service catalog\n2. you\u0027d essentially reimplement `_get_endpoint` with the exact same functionality. Or (more likely) add some kind of `set_attributes` flag to the existing function. AFAICS this has no practical benefit but rather adds more complexity/inconsistencies to the endpoint resolution, decreases performance and increases dependency on keystone being responsive\n3. it feels like this would hide away where the endpoint attributes are actually used and that they should probably rather be resolved at an earlier stage / during configure time. IMO it makes more sense to keep this obvious and aim to fix it properly by adjusting `configure_add`\n\nSo mutating `self` here seems more beneficial, consistent and cleaner to me. But if people feel otherwise it can be adjusted.","commit_id":"6c981519875da9a4f05ac103a4303c42a4fbf406"},{"author":{"_account_id":37800,"name":"Sebastian Krott","display_name":"Sebastian Krott","email":"sebastian.krott@sap.com","username":"sebkro_sap"},"change_message_id":"87f914aa34b5062c94906d2d0030814c95c443c9","unresolved":true,"context_lines":[{"line_number":1746,"context_line":"        # Attempt to resolve self._storage_netloc and self.scheme if unset"},{"line_number":1747,"context_line":"        if not self._storage_netloc or not self.scheme:"},{"line_number":1748,"context_line":"            try:"},{"line_number":1749,"context_line":"                self._get_endpoint(context)"},{"line_number":1750,"context_line":"            except exceptions.BadStoreConfiguration:"},{"line_number":1751,"context_line":"                pass"},{"line_number":1752,"context_line":"        # Validate scheme"}],"source_content_type":"text/x-python","patch_set":2,"id":"89870c04_d711fb6c","line":1749,"range":{"start_line":1749,"start_character":34,"end_line":1749,"end_character":35},"in_reply_to":"1272a4d9_2768b7e6","updated":"2026-09-23 20:04:04.000000000","message":"The issue is that `matches_uri` needs `self.scheme` and `self._storage_netloc` for any meaningful comparison. So `_get_endpoint` would need to be called some point before.\n\nAfaics there is no simple way to accomplish this without larger changes. The most promising candidates seem `init_client` and `configure_add`. \n\nBut the problem with `init_client` is that it might not be called before `matches_uri`, so it does not help.\n\nAnd `configure_add` does not have a context parameter. So it will only help if `conf_endpoint` is defined, i.e. `swift_store_endpoint` is configured.\n\nI suppose the cleanest fix would be passing a proper service user context with `service_catalog` as a parameter to `configure_add` (or some separate store initialization function). But that feels a bit out of scope for this change.","commit_id":"6c981519875da9a4f05ac103a4303c42a4fbf406"},{"author":{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},"change_message_id":"6754eda4da8192657f3ade6ee829619441bcb2ae","unresolved":true,"context_lines":[{"line_number":1746,"context_line":"        # Attempt to resolve self._storage_netloc and self.scheme if unset"},{"line_number":1747,"context_line":"        if not self._storage_netloc or not self.scheme:"},{"line_number":1748,"context_line":"            try:"},{"line_number":1749,"context_line":"                self._get_endpoint(context)"},{"line_number":1750,"context_line":"            except exceptions.BadStoreConfiguration:"},{"line_number":1751,"context_line":"                pass"},{"line_number":1752,"context_line":"        # Validate scheme"}],"source_content_type":"text/x-python","patch_set":2,"id":"0a18112f_c258b7b9","line":1749,"range":{"start_line":1749,"start_character":34,"end_line":1749,"end_character":35},"in_reply_to":"89870c04_d711fb6c","updated":"2026-09-29 07:50:24.000000000","message":"Agreed we cannot always set this in configure_add. Could matches_uri keep the lookup in local variables (or a helper that returns scheme/netloc) so it does not mutate self?","commit_id":"6c981519875da9a4f05ac103a4303c42a4fbf406"}]}
