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

Creating powerstore iSCSI hosts with an iterator does not work #130

Open
demiph opened this issue Jan 15, 2025 · 1 comment
Open

Creating powerstore iSCSI hosts with an iterator does not work #130

demiph opened this issue Jan 15, 2025 · 1 comment
Assignees

Comments

@demiph
Copy link

demiph commented Jan 15, 2025

The issue that we are coming across is that we have a large environment of iSCSI initiators, and we have the initiators and hosts in a map as follows:

resource "powerstore_host" "esxi_iscsi_host" {
  for_each = tomap({
    "192.168.10.156" = "iqn.1993-08.org.debian.iscsi:01:107dc7e4254a"
    "192.168.10.157" = "iqn.1993-08.org.debian.iscsi:01:107dc7e4254b"
  })
  name              = each.key
  os_type           = "ESXi"
  host_connectivity = "Local_Only"
  description       = each.value
  initiators =  [{port_name = "${each.value}", chap_single_username = "testuser", chap_single_password = "testuser123"}]
}

This does NOT work as it produces this error chap credentials are supported only with iSCSI protocol

It seems like the validation process for chap credentials requires that port_name cannot be an iterator. Once i remove the chap attributes or change "each.value" to "iqn.XXXX", the resource works. Please advise

@shenda1
Copy link
Collaborator

shenda1 commented Jan 17, 2025

@demiph Thank you for submitting the issue. The issue has been added to the backlog and prioritized for a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants