)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"28f86c9c70857f58df314100520cc5e4cf8e9d12","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"4d894951_5a1179c3","updated":"2026-11-24 20:47:02.000000000","message":"recheck","commit_id":"b7924063c6f59abcde675df101cce745416d2b1e"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"bda01fd781a942a339d870d5fd6724bfddfe9362","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"58cd5cc5_e7899db1","updated":"2026-11-25 02:58:23.000000000","message":"recheck","commit_id":"b7924063c6f59abcde675df101cce745416d2b1e"}],"glance_store/_drivers/rbd.py":[{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"8346157bdf58809ec05165b70e15efb708b65798","unresolved":true,"context_lines":[{"line_number":378,"context_line":"            LOG.error(reason)"},{"line_number":379,"context_line":"            raise exceptions.BadStoreConfiguration(store_name\u003d\u0027rbd\u0027,"},{"line_number":380,"context_line":"                                                   reason\u003dreason)"},{"line_number":381,"context_line":"        if self.backend_group:"},{"line_number":382,"context_line":"            self._set_url_prefix()"},{"line_number":383,"context_line":"        self.size \u003d 0"},{"line_number":384,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9be48fe3_3f54b70d","side":"PARENT","line":382,"range":{"start_line":381,"start_character":0,"end_line":382,"end_character":34},"updated":"2026-11-24 11:11:31.000000000","message":"I am little worried here. Before, configure_add() also checked Ceph connection, so bad store was disabled during start-up. Now problem will appear only on first request. Can we add test for this new behavior, and maybe mention in release note that start-up does not fail anymore?","commit_id":"dac0afc41fc9a1c2a8bae1b35f3242e98b842b14"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"df225e430be9f7b468140efbe63fc0e93c3ae23c","unresolved":false,"context_lines":[{"line_number":378,"context_line":"            LOG.error(reason)"},{"line_number":379,"context_line":"            raise exceptions.BadStoreConfiguration(store_name\u003d\u0027rbd\u0027,"},{"line_number":380,"context_line":"                                                   reason\u003dreason)"},{"line_number":381,"context_line":"        if self.backend_group:"},{"line_number":382,"context_line":"            self._set_url_prefix()"},{"line_number":383,"context_line":"        self.size \u003d 0"},{"line_number":384,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3e5bac28_65176dd8","side":"PARENT","line":382,"range":{"start_line":381,"start_character":0,"end_line":382,"end_character":34},"in_reply_to":"00fbada3_e3defcc4","updated":"2026-11-24 15:06:53.000000000","message":"Not needed anymore: configure_add() is unchanged in Patch Set 2, so the start-up check stays.","commit_id":"dac0afc41fc9a1c2a8bae1b35f3242e98b842b14"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"e6135718f6ec188bd57d514a02a5d736027eb081","unresolved":true,"context_lines":[{"line_number":378,"context_line":"            LOG.error(reason)"},{"line_number":379,"context_line":"            raise exceptions.BadStoreConfiguration(store_name\u003d\u0027rbd\u0027,"},{"line_number":380,"context_line":"                                                   reason\u003dreason)"},{"line_number":381,"context_line":"        if self.backend_group:"},{"line_number":382,"context_line":"            self._set_url_prefix()"},{"line_number":383,"context_line":"        self.size \u003d 0"},{"line_number":384,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":385,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"00fbada3_e3defcc4","side":"PARENT","line":382,"range":{"start_line":381,"start_character":0,"end_line":382,"end_character":34},"in_reply_to":"9be48fe3_3f54b70d","updated":"2026-11-24 12:27:02.000000000","message":"Acknowledged","commit_id":"dac0afc41fc9a1c2a8bae1b35f3242e98b842b14"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"8346157bdf58809ec05165b70e15efb708b65798","unresolved":true,"context_lines":[{"line_number":384,"context_line":"        self.size \u003d 0"},{"line_number":385,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"    @property"},{"line_number":388,"context_line":"    def url_prefix(self):"},{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"2b275fae_da927b4f","line":387,"range":{"start_line":387,"start_character":4,"end_line":387,"end_character":13},"updated":"2026-11-24 11:11:31.000000000","message":"Sorry, but I am not fully sure this is safe. url_prefix is used by Glance as simple metadata, not as method which can talk to network. If Ceph is down, this property returns None, and then image location mapping and store detail can give wrong result. Glance uses it in common/store_utils.py:181 and api/v2/discovery.py:147. Can we keep property cheap, or add explicit method for lazy loading? Maybe also test with unreachable Ceph.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"afdfd77fb2ad036abe37e4c2195b27beee00f7a9","unresolved":true,"context_lines":[{"line_number":384,"context_line":"        self.size \u003d 0"},{"line_number":385,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"    @property"},{"line_number":388,"context_line":"    def url_prefix(self):"},{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"6cd80013_b4dcf61e","line":387,"range":{"start_line":387,"start_character":4,"end_line":387,"end_character":13},"in_reply_to":"139bb270_8dbb3a94","updated":"2026-11-24 14:50:28.000000000","message":"Thanks, this is much better.\n\nI would keep it on master and do a separate stable backport. The master change is safe and useful even if Glance master does not fork now.\n\nFor stable, please use eventlet.patcher.original(\u0027threading\u0027) to get a real thread; I prefer that over eventlet.tpool.execute, because tpool keeps global state that may not be safe after fork.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"e6135718f6ec188bd57d514a02a5d736027eb081","unresolved":true,"context_lines":[{"line_number":384,"context_line":"        self.size \u003d 0"},{"line_number":385,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"    @property"},{"line_number":388,"context_line":"    def url_prefix(self):"},{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"47453dec_c9ad0ce4","line":387,"range":{"start_line":387,"start_character":4,"end_line":387,"end_character":13},"in_reply_to":"2b275fae_da927b4f","updated":"2026-11-24 12:27:02.000000000","message":"You are right: url_prefix should not do I/O. I did it because glance stable/2025.1-2026.1 initializes the stores in the parent and then forks the workers (common/wsgi.py), so a librados client created in configure_add() gives all workers the same client nonces (bug 2175714). On master the forking server is gone, and with uWSGI lazy-apps \u003d true init_app() runs once per worker.\n\nI would use an explicit method that loads the prefix, and keep url_prefix cheap. But the call to it would have to be added in glance after the workers are forked, and that only exists in the stable branches (master does not fork). Would you accept that as a stable-only change in glance, or is documenting lazy-apps enough and this change should be dropped?\n\nI am new to OpenStack development, so I may be missing conventions. Please tell me if I should do something differently.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"6ac20f83fcb192bcb93cbfe07d265350429076f4","unresolved":true,"context_lines":[{"line_number":384,"context_line":"        self.size \u003d 0"},{"line_number":385,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"    @property"},{"line_number":388,"context_line":"    def url_prefix(self):"},{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"58c41ef0_45cecc53","line":387,"range":{"start_line":387,"start_character":4,"end_line":387,"end_character":13},"in_reply_to":"47453dec_c9ad0ce4","updated":"2026-11-24 12:38:38.000000000","message":"Thanks for checking. I agree url_prefix should stay cheap. On master, httpd/glance-api-uwsgi.ini:7 already uses lazy-apps \u003d true, so init_app() runs once per worker and this bug is not present there. On stable/2026.1 and 2025.2, glance/common/wsgi.py:491 initializes the stores before run_child(), and run_child() calls os.fork() at glance/common/wsgi.py:689, so the problem is real only there.\n\nI would not make url_prefix do I/O. Please keep it as a simple property, add an explicit method like ensure_url_prefix(), and call it from stable Glance after the workers are forked. Since master is not affected with the supported uWSGI config, I think we should drop this master change and do a stable-only fix instead. Only documenting lazy-apps is not enough for stable users.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"1c7e86ae86a594d7aa952304b775c54c6baf7e52","unresolved":true,"context_lines":[{"line_number":384,"context_line":"        self.size \u003d 0"},{"line_number":385,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"    @property"},{"line_number":388,"context_line":"    def url_prefix(self):"},{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"139bb270_8dbb3a94","line":387,"range":{"start_line":387,"start_character":4,"end_line":387,"end_character":13},"in_reply_to":"58c41ef0_45cecc53","updated":"2026-11-24 13:58:42.000000000","message":"Thank you for the review. I changed the approach, so please ignore my earlier plan (ensure_url_prefix() and a stable-only Glance change). It was more complicated than needed, and I also found that the RBD store is not DRIVER_REUSABLE, so Glance creates a new store object on every call and a lazily loaded url_prefix would not survive.\n\nPatch Set 2 keeps url_prefix and configure_add() unchanged, so the start-up check stays. It only runs connect() in a new thread. librados takes its client nonce from a thread-local random generator, so the new thread gets its own state after fork(). I checked this on a real cluster: with a parent that connected before forking, connecting in the main thread gives 3 different nonces for 12 clients, while connecting in a new thread gives 12 of 12.\n\nMaster has no eventlet now, so a plain thread works there. On stable/2026.1 and 2025.2 the driver still runs under eventlet, where a thread from the threading module is a green thread and does not help (I measured 3 of 12). There it would need a real thread, for example eventlet.patcher.original(\u0027threading\u0027). Would you prefer this on master with a separate stable backport, or only on stable?","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"df225e430be9f7b468140efbe63fc0e93c3ae23c","unresolved":true,"context_lines":[{"line_number":384,"context_line":"        self.size \u003d 0"},{"line_number":385,"context_line":"        self.resize_amount \u003d self.WRITE_CHUNKSIZE"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"    @property"},{"line_number":388,"context_line":"    def url_prefix(self):"},{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"59889afa_d4ba2103","line":387,"range":{"start_line":387,"start_character":4,"end_line":387,"end_character":13},"in_reply_to":"6cd80013_b4dcf61e","updated":"2026-11-24 15:06:53.000000000","message":"Thank you. I will keep Patch Set 2 as it is on master, and once it is merged I will prepare the backports to stable/2026.1 and stable/2025.2 using eventlet.patcher.original(\u0027threading\u0027), as you suggest.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"8346157bdf58809ec05165b70e15efb708b65798","unresolved":true,"context_lines":[{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"},{"line_number":391,"context_line":"                self._set_url_prefix()"},{"line_number":392,"context_line":"            except Exception:"},{"line_number":393,"context_line":"                LOG.exception(\"Unable to determine the RBD url prefix, \""},{"line_number":394,"context_line":"                              \"will retry on next access\")"},{"line_number":395,"context_line":"        return self._url_prefix"}],"source_content_type":"text/x-python","patch_set":1,"id":"ce8e189c_4baac7f3","line":392,"range":{"start_line":392,"start_character":12,"end_line":392,"end_character":29},"updated":"2026-11-24 11:11:31.000000000","message":"Catching all Exception looks too wide. If some coding mistake happens, we will only see log and property will return None. Can we catch only BackendException and BadStoreConfiguration? Or maybe move retry logic to separate method.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"df225e430be9f7b468140efbe63fc0e93c3ae23c","unresolved":false,"context_lines":[{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"},{"line_number":391,"context_line":"                self._set_url_prefix()"},{"line_number":392,"context_line":"            except Exception:"},{"line_number":393,"context_line":"                LOG.exception(\"Unable to determine the RBD url prefix, \""},{"line_number":394,"context_line":"                              \"will retry on next access\")"},{"line_number":395,"context_line":"        return self._url_prefix"}],"source_content_type":"text/x-python","patch_set":1,"id":"2dedbaba_8049a9ba","line":392,"range":{"start_line":392,"start_character":12,"end_line":392,"end_character":29},"in_reply_to":"c5a38404_b711e49b","updated":"2026-11-24 15:06:53.000000000","message":"Not applicable anymore: Patch Set 2 adds no new except clause.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"e6135718f6ec188bd57d514a02a5d736027eb081","unresolved":true,"context_lines":[{"line_number":389,"context_line":"        if self._url_prefix is None and self.backend_group:"},{"line_number":390,"context_line":"            try:"},{"line_number":391,"context_line":"                self._set_url_prefix()"},{"line_number":392,"context_line":"            except Exception:"},{"line_number":393,"context_line":"                LOG.exception(\"Unable to determine the RBD url prefix, \""},{"line_number":394,"context_line":"                              \"will retry on next access\")"},{"line_number":395,"context_line":"        return self._url_prefix"}],"source_content_type":"text/x-python","patch_set":1,"id":"c5a38404_b711e49b","line":392,"range":{"start_line":392,"start_character":12,"end_line":392,"end_character":29},"in_reply_to":"ce8e189c_4baac7f3","updated":"2026-11-24 12:27:02.000000000","message":"Agreed, I will catch only the expected exceptions.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"}],"releasenotes/notes/bug-2175714-12f6f8a233b4708f.yaml":[{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"8346157bdf58809ec05165b70e15efb708b65798","unresolved":true,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    `Bug 2175714 \u003chttps://bugs.launchpad.net/glance-store/+bug/2175714\u003e`_:"},{"line_number":5,"context_line":"    The RBD driver no longer connects to the Ceph cluster in"},{"line_number":6,"context_line":"    ``configure_add()`` when multiple backends are used. When a service"},{"line_number":7,"context_line":"    forked workers after initializing the stores, all workers ended up with"},{"line_number":8,"context_line":"    identical librados client nonces. The ``url_prefix`` is now determined"},{"line_number":9,"context_line":"    lazily, on first use."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"b0624efa_d2593da6","line":6,"updated":"2026-11-24 11:11:31.000000000","message":"Small wording note. This is not only when more than one backend is configured. It is also for one backend in multi-store mode. Maybe say “multi-store mode” instead of “multiple backends”","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"df225e430be9f7b468140efbe63fc0e93c3ae23c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    `Bug 2175714 \u003chttps://bugs.launchpad.net/glance-store/+bug/2175714\u003e`_:"},{"line_number":5,"context_line":"    The RBD driver no longer connects to the Ceph cluster in"},{"line_number":6,"context_line":"    ``configure_add()`` when multiple backends are used. When a service"},{"line_number":7,"context_line":"    forked workers after initializing the stores, all workers ended up with"},{"line_number":8,"context_line":"    identical librados client nonces. The ``url_prefix`` is now determined"},{"line_number":9,"context_line":"    lazily, on first use."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"8f1dd3e9_dc1a3229","line":6,"in_reply_to":"28880815_a660e3ea","updated":"2026-11-24 15:06:53.000000000","message":"The release note was rewritten for the new approach and no longer mentions backends.","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"},{"author":{"_account_id":39653,"name":"Bohdan Chernii","display_name":"dikssen","email":"dikssen1975@gmail.com","username":"Dikssen"},"change_message_id":"e6135718f6ec188bd57d514a02a5d736027eb081","unresolved":true,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    `Bug 2175714 \u003chttps://bugs.launchpad.net/glance-store/+bug/2175714\u003e`_:"},{"line_number":5,"context_line":"    The RBD driver no longer connects to the Ceph cluster in"},{"line_number":6,"context_line":"    ``configure_add()`` when multiple backends are used. When a service"},{"line_number":7,"context_line":"    forked workers after initializing the stores, all workers ended up with"},{"line_number":8,"context_line":"    identical librados client nonces. The ``url_prefix`` is now determined"},{"line_number":9,"context_line":"    lazily, on first use."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"28880815_a660e3ea","line":6,"in_reply_to":"b0624efa_d2593da6","updated":"2026-11-24 12:27:02.000000000","message":"Agreed, I will change it to \"multi-store mode\".","commit_id":"c71f966daa5533d9849668e322ab45c4484ee178"}]}
