Zevrap-81 commented on issue #4076:
URL: https://github.com/apache/polaris/issues/4076#issuecomment-4163547759
So the stack trace would be of the rest api that pyiceberg uses:
```
Failed to create table
Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMeasurement:
IllegalArgumentException: Credential vending was requested for table
Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMeasurement, but no
credentials are available
Traceback (most recent call last):
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/__init__.py",
line 919, in load_table
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/requests/models.py",
line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
http://192.168.0.125:8181/api/catalog/v1/senec_catalog_6/namespaces/Senec%1FStage%1FBronze%1FAmpace_V3LFP/tables/BmsAmpaceV3ModuleMeasurement
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/novum_iceberg/iceberg_client.py",
line 192, in _ensure_table_exists_from_config
self.catalog.load_table(full_table_name)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 331, in wrapped_f
return copy(f, *args, **kw)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 470, in __call__
do = self.iter(retry_state=retry_state)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 371, in iter
result = action(retry_state)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 393, in <lambda>
self._add_action_func(lambda rs: rs.outcome.result())
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/concurrent/futures/_base.py", line 401, in
__get_result
raise self._exception
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 473, in __call__
result = fn(*args, **kwargs)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/__init__.py",
line 921, in load_table
_handle_non_200_response(exc, {404: NoSuchTableError})
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/response.py",
line 111, in _handle_non_200_response
raise exception(response) from exc
pyiceberg.exceptions.NoSuchTableError: NoSuchTableException: Table does not
exist: Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMeasurement
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/__init__.py",
line 812, in _create_table
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/requests/models.py",
line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url:
http://192.168.0.125:8181/api/catalog/v1/senec_catalog_6/namespaces/Senec%1FStage%1FBronze%1FAmpace_V3LFP/tables
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/novum_iceberg/iceberg_client.py",
line 179, in initialize_from_yaml
self._ensure_table_exists_from_config(full_table_name, config)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/novum_iceberg/iceberg_client.py",
line 205, in _ensure_table_exists_from_config
self.catalog.create_table(
~~~~~~~~~~~~~~~~~~~~~~~~~^
identifier=full_table_name, schema=schema,
partition_spec=partition_spec, sort_order=sort_order
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 331, in wrapped_f
return copy(f, *args, **kw)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 470, in __call__
do = self.iter(retry_state=retry_state)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 371, in iter
result = action(retry_state)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 393, in <lambda>
self._add_action_func(lambda rs: rs.outcome.result())
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/concurrent/futures/_base.py", line 401, in
__get_result
raise self._exception
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/tenacity/__init__.py",
line 473, in __call__
result = fn(*args, **kwargs)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/__init__.py",
line 827, in create_table
table_response = self._create_table(
identifier=identifier,
...<5 lines>...
stage_create=False,
)
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/__init__.py",
line 814, in _create_table
_handle_non_200_response(exc, {409: TableAlreadyExistsError, 404:
NoSuchNamespaceError})
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/env/lib/python3.13/site-packages/pyiceberg/catalog/rest/response.py",
line 111, in _handle_non_200_response
raise exception(response) from exc
pyiceberg.exceptions.BadRequestError: IllegalArgumentException: Credential
vending was requested for table
Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMeasurement, but no
credentials are available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/scripts/purge_tables.py",
line 7, in <module>
client.initialize_from_yaml("./lfp_tables.yaml")
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File
"/home/parvez/Downloads/23-0325_senec_monitoring/novum-iceberg/novum_iceberg/iceberg_client.py",
line 184, in initialize_from_yaml
raise ConfigurationError(f"Failed to initialize tables from YAML: {e}")
novum_iceberg.iceberg_client.ConfigurationError: Failed to initialize tables
from YAML: IllegalArgumentException: Credential vending was requested for table
Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMeasurement, but no
credentials are available
```
but here are the logs from the polaris container
```
2026-03-31 15:27:57,084 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000029,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:57 +0000] "GET
/api/catalog/v1/config?warehouse=senec_catalog_6 HTTP/1.1" 200
2127
2026-03-31 15:27:57,093 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000030,default] [,,,]
(executor-thread-1) 192.168.0.125 - - [31/Mar/2026:15:27:57 +0000] "POST
/api/catalog/v1/oauth/tokens HTTP/1.1" 200 802
2026-03-31 15:27:57,131 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000031,default] [,,,]
(executor-thread-1) Initializing non-federated catalog
2026-03-31 15:27:57,176 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000031,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:57 +0000] "POST
/api/catalog/v1/senec_catalog_6/namespaces HTTP/1.1" 200 92
2026-03-31 15:27:57,187 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000032,default] [,,,]
(executor-thread-1) Initializing non-federated catalog
2026-03-31 15:27:57,199 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000032,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:57 +0000] "POST
/api/catalog/v1/senec_catalog_6/namespaces HTTP/1.1" 200 106
2026-03-31 15:27:57,210 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000033,default] [,,,]
(executor-thread-1) Initializing non-federated catalog
2026-03-31 15:27:57,219 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000033,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:57 +0000] "POST
/api/catalog/v1/senec_catalog_6/namespaces HTTP/1.1" 200 122
2026-03-31 15:27:57,229 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000034,default] [,,,]
(executor-thread-1) Initializing non-federated catalog
2026-03-31 15:27:57,238 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000034,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:57 +0000] "POST
/api/catalog/v1/senec_catalog_6/namespaces HTTP/1.1" 200 150
2026-03-31 15:27:57,255 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000035,default] [,,,]
(executor-thread-1) Handling runtimeException Table does not exist:
Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMea
surement
2026-03-31 15:27:57,255 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000035,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:57 +0000] "GET
/api/catalog/v1/senec_catalog_6/namespaces/Senec%1FStage%1FBro
nze%1FAmpace_V3LFP/tables/BmsAmpaceV3ModuleMeasurement HTTP/1.1" 404 147
2026-03-31 15:27:57,293 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Initializing non-federated catalog
2026-03-31 15:27:57,294 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Catalog type: INTERNAL
2026-03-31 15:27:57,295 INFO
[org.apa.pol.ser.cat.ice.IcebergCatalogHandler]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) allow external catalog credential vending: true
2026-03-31 15:27:57,304 INFO [org.apa.ice.BaseMetastoreCatalog]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Table properties set at catalog level through catalog
properties: {}
2026-03-31 15:27:57,311 INFO [org.apa.ice.BaseMetastoreCatalog]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Table properties enforced at catalog level through catalog
properties: {}
2026-03-31 15:27:57,353 INFO [org.apa.ice.CatalogUtil]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Loading custom FileIO implementation:
org.apache.iceberg.aws.s3.S3FileIO
2026-03-31 15:27:58,068 INFO [org.apa.pol.ser.cat.ice.IcebergCatalog]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Successfully committed to table
senec_catalog_6.Senec.Stage.Bronze.Ampace_V3LFP.BmsAmpaceV3ModuleMeasure
ment in 732 ms
2026-03-31 15:27:58,083 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) Handling runtimeException Credential vending was requested
for table Senec.Stage.Bronze.Ampace_V3LFP
.BmsAmpaceV3ModuleMeasurement, but no credentials are available
2026-03-31 15:27:58,084 INFO [io.qua.htt.access-log]
[076e800c-9b9e-41e6-82d9-d651aba89f85_0000000000000000036,default] [,,,]
(executor-thread-1) 192.168.0.125 - data_ops [31/Mar/2026:15:27:58 +0000] "POST
/api/catalog/v1/senec_catalog_6/namespaces/Senec%1FStage%1FBr
onze%1FAmpace_V3LFP/tables HTTP/1.1" 400 206
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]