NetApp / terraform-provider-netapp-ontap

Terrafrom ONTAP provider
https://registry.terraform.io/providers/NetApp/netapp-ontap/latest
Mozilla Public License 2.0
17 stars 8 forks source link

[Bug]: initiators didnt add to igroup #274

Open holylai830830 opened 2 months ago

holylai830830 commented 2 months ago

Terraform Core Version

1.1.3

ONTAP Provider Version

1.1.3

Affected Resource(s)

resource "netapp-ontap_protocols_san_igroup_resource" "protocols_san_igroups"

Expected Behavior

expected initiator name" = "iqn.2005-03.org.open-iscsi:host-246e965dc31c" will be added to igroup

Actual Behavior

SangFor-Lab::> igroup show -vserver svm_DR Vserver Igroup Protocol OS Type Initiators


svm_DR SANGFOR mixed vmware -

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

Create a protocols_san_igroup

resource "netapp-ontap_protocols_san_igroup_resource" "protocols_san_igroups" {

required to know which system to interface with

cx_profile_name = "ontap_lab" name = var.igroup_name svm = { name = var.svm_name } initiators = toset([ { "comment" = "Node1" "name" = "iqn.2005-03.org.open-iscsi:host-246e965dc31c" } ]) os_type = "vmware" comment = "created by terraform" }

Steps to Reproduce

Create a protocols_san_igroup

resource "netapp-ontap_protocols_san_igroup_resource" "protocols_san_igroups" {

required to know which system to interface with

cx_profile_name = "ontap_lab" name = var.igroup_name svm = { name = var.svm_name } initiators = toset([ { "comment" = "Node1" "name" = "iqn.2005-03.org.open-iscsi:host-246e965dc31c" } ]) os_type = "vmware" comment = "created by terraform" }

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

carchi8py commented 2 months ago

@holylai830830 if you run

igroup initiators show -vserver svm_DR

Does it appear?

holylai830830 commented 2 months ago

Error: "initiators" is not a recognized command

holylai830830 commented 2 months ago

igroup created , but corrspondeing initaitor didnt added to the igroup