Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinguish SCALE from CORE and FreeNAS #39

Closed
datamattsson opened this issue Jan 7, 2023 · 1 comment · Fixed by #40
Closed

Distinguish SCALE from CORE and FreeNAS #39

datamattsson opened this issue Jan 7, 2023 · 1 comment · Fixed by #40
Labels
bug Something isn't working enhancement New feature or request

Comments

@datamattsson
Copy link
Collaborator

There's been an API change in the SCALE API which renders the CSP moot.

Sat, 07 Jan 2023 00:10:50 +0000 backend DEBUG TrueNAS POST request URI: iscsi/initiator
Sat, 07 Jan 2023 00:10:50 +0000 backend DEBUG TrueNAS request: {'comment': '4ffb98ef-36c4-c1e0-8a28-1ff9d9978391', 'initiators': ['iqn.2004-10.com.ubuntu:01:da65d25468d0'], 'auth_network': ['192.168.1.194/24', '192.168.10.167/24', '192.168.20.168/24', '172.29.43.192/32']}
Sat, 07 Jan 2023 00:10:50 +0000 backend DEBUG TrueNAS response: {'iscsi_initiator_create.auth_network': [{'message': 'Field was not expected', 'errno': 22}]}
Sat, 07 Jan 2023 00:10:50 +0000 backend ERROR Backend Request (POST) Exception: Traceback (most recent call last):
  File "/app/backend.py", line 266, in post
    self.req_backend.raise_for_status()
  File "/usr/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://192.168.1.135/api/v2.0/iscsi/initiator
@datamattsson datamattsson added the enhancement New feature or request label Jan 7, 2023
@datamattsson
Copy link
Collaborator Author

auth_network has moved from the initiator to the target in TrueNAS SCALE.

@datamattsson datamattsson changed the title Support TrueNAS SCALE 22.12 Distinguish SCALE from CORE and FreeNAS May 2, 2023
@datamattsson datamattsson added the bug Something isn't working label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant