I am attempting to setup the hpe-csi/truenas csp for kubernetes pv via iscsi. pvc are stuck “pending” with the logs stating:
Wed, 02 Apr 2025 13:44:03 +0000 backend 7 ERROR Not found: Volume with name pvc-aaa7c306-971e-4432-8285-171affccf9ac not found.
Wed, Apr 2 2025 9:44:03 amWed, 02 Apr 2025 13:44:03 +0000 backend 7 ERROR Backend Request (POST) Exception: 422 Unprocessable Entity: Traceback (most recent call last):
Wed, Apr 2 2025 9:44:03 am File “/app/backend.py”, line 446, in post
Wed, Apr 2 2025 9:44:03 am self.req_backend.raise_for_status()
Wed, Apr 2 2025 9:44:03 am File “/app/lib/python3.12/site-packages/requests/models.py”, line 1024, in raise_for_status
Wed, Apr 2 2025 9:44:03 am raise HTTPError(http_error_msg, response=self)
Wed, Apr 2 2025 9:44:03 amrequests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https redacted api/v2.0/pool/dataset
Wed, Apr 2 2025 9:44:03 am
Wed, Apr 2 2025 9:44:03 amWed, 02 Apr 2025 13:44:03 +0000 backend 7 ERROR Bad Request: TrueNAS API returned: {
Wed, Apr 2 2025 9:44:03 am “path”: [
Wed, Apr 2 2025 9:44:03 am {
Wed, Apr 2 2025 9:44:03 am “message”: “null not allowed”,
Wed, Apr 2 2025 9:44:03 am “errno”: 22
Wed, Apr 2 2025 9:44:03 am }
Wed, Apr 2 2025 9:44:03 am ]
but in the audit log I see the method call:
Method: pool.dataset.create
Params:
- Type: VOLUME
Comments: >-
Dataset created by HPE CSI Driver for Kubernetes as
pvc-aaa7c306-971e-4432-8285-171affccf9ac in hpe-storage from test
Name: main/iscsi2/pvc-aaa7c306-971e-4432-8285-171affccf9ac
Volsize: ‘10737418240’
Volblocksize: 8K
Sparse: True
Deduplication: ‘OFF’
Sync: STANDARD
Compression: LZ4
Description: Pool dataset create main/iscsi2/pvc-aaa7c306-971e-4432-8285-171affccf9ac
Authenticated: True
Authorized: True
however, when looking at the datasets, I do not see it is actually created and I cannot find or do not know how to find any system logs indicated why the api call to create the volume has failed. How to proceed with troubleshooting this failure?