)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"4bf3528a606092d3050f9d09044e1b7e3534bddb","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"894217cb_f4bd1f6f","updated":"2026-12-01 13:43:33.000000000","message":"In case you want to backport this later please report a bug first.\n\nIMHO we should also add the required test cases to verify the arguments but that can be done separately.","commit_id":"0688b0b763980951309cd26999a9649a456ca94d"},{"author":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"change_message_id":"d18686b138688db995ca0cd4982d24d8ef6c7ff8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"34b6e62b_4816ad59","updated":"2026-11-27 08:57:59.000000000","message":"before LLM, change was... simplier:\n```\ndiff --git a/observabilityclient/prometheus_client.py b/observabilityclient/prometheus_client.py\nindex 430c9fc..d321cb1 100644\n--- a/observabilityclient/prometheus_client.py\n+++ b/observabilityclient/prometheus_client.py\n@@ -16,6 +16,7 @@ import logging\n import ssl\n import urllib.parse\n\n+from keystoneauth1.exceptions import http as keystone_http\n import requests\n from requests.adapters import HTTPAdapter\n from urllib3.util.ssl_ import create_urllib3_context\n@@ -69,6 +70,9 @@ class PrometheusAPIClientError(Exception):\n                     decoded \u003d self.resp.json()\n                     if \u0027error\u0027 in decoded:\n                         return f\u0027[{self.resp.status_code}] {decoded[\"error\"]}\u0027\n+                    if \u0027error_message\u0027 in decoded:\n+                        # NOTE(dpawlik): wsme error body, e.g. from aetos\n+                        return decoded[\u0027error_message\u0027][\u0027faultstring\u0027]\n                 except requests.JSONDecodeError:\n                     # If an https endpoint is accessed as http,\n                     # we get 400 status with plain text instead of\n@@ -152,9 +156,17 @@ class PrometheusAPIClient:\n\n     def _get(self, endpoint, params\u003dNone):\n         url \u003d self._get_url(endpoint)\n-        resp \u003d self._session.get(url, params\u003dparams,\n-                                 headers\u003d{\u0027Accept\u0027: \u0027application/json\u0027,\n-                                          \u0027Accept-Encoding\u0027: \u0027identity\u0027})\n+        # NOTE(dpawlik): A keystoneauth session raises its own HttpError\n+        # for error responses before PrometheusAPIClientError can be\n+        # raised here, and its message doesn\u0027t understand the error body\n+        # of every service (\"Unrecognized schema in response body\"),\n+        # hiding the service\u0027s own error message.\n+        try:\n+            resp \u003d self._session.get(url, params\u003dparams,\n+                                     headers\u003d{\u0027Accept\u0027: \u0027application/json\u0027,\n+                                              \u0027Accept-Encoding\u0027: \u0027identity\u0027})\n+        except keystone_http.HttpError as exc:\n+            raise PrometheusAPIClientError(exc.response) from exc\n         if resp.status_code !\u003d requests.codes.ok:\n             raise PrometheusAPIClientError(resp)\n         decoded \u003d resp.json()\n@@ -165,8 +177,11 @@ class PrometheusAPIClient:\n\n     def _post(self, endpoint, params\u003dNone):\n         url \u003d self._get_url(endpoint)\n-        resp \u003d self._session.post(url, params\u003dparams,\n-                                  headers\u003d{\u0027Accept\u0027: \u0027application/json\u0027})\n+        try:\n+            resp \u003d self._session.post(url, params\u003dparams,\n+                                      headers\u003d{\u0027Accept\u0027: \u0027application/json\u0027})\n+        except keystone_http.HttpError as exc:\n+            raise PrometheusAPIClientError(exc.response) from exc\n         if resp.status_code !\u003d requests.codes.ok:\n             raise PrometheusAPIClientError(resp)\n         decoded \u003d resp.json()\n```","commit_id":"0688b0b763980951309cd26999a9649a456ca94d"},{"author":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"change_message_id":"fc00ba2e888bb67b460e3998e2b95de94b1754c4","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"346180d8_ce8343c4","updated":"2026-11-30 10:13:08.000000000","message":"recheck","commit_id":"0688b0b763980951309cd26999a9649a456ca94d"},{"author":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"change_message_id":"addfd7875a388fdbf15b7e51e9b972d48087cd97","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"50c94488_c81390f1","updated":"2026-11-27 16:07:11.000000000","message":"recheck","commit_id":"0688b0b763980951309cd26999a9649a456ca94d"},{"author":{"_account_id":20676,"name":"daniel.pawlik","display_name":"Daniel Pawlik","email":"dpawlik@redhat.com","username":"daniel.pawlik"},"change_message_id":"318c1c6e3dc483ca7ff811b47b8d2cfb1d8ca22a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"cff86fa4_cb75f497","updated":"2026-11-27 11:11:11.000000000","message":"recheck","commit_id":"0688b0b763980951309cd26999a9649a456ca94d"}]}
