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

[Bug]: Duplicate Entry for protocol_access_rules.client_ip #310

Open
brent-at-aam opened this issue Oct 2, 2024 · 2 comments
Open

[Bug]: Duplicate Entry for protocol_access_rules.client_ip #310

brent-at-aam opened this issue Oct 2, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@brent-at-aam
Copy link

Terraform Core Version

1.9.6

ONTAP Provider Version

1.1.4

Affected Resource(s)

netapp-ontap_protocols_nfs_service_resource

Expected Behavior

Should be able to create the resource.

Actual Behavior

Resource creation fails with an error message that there is a duplicate entry for protocol_access_rules.client_ip. This is not a field we have access to set.

Relevant Error/Panic Output Snippet

╷
│ Error: error creating NFS services
│ 
│   with netapp-ontap_protocols_nfs_service_resource.foo,
│   on main.tf line 47, in resource "netapp-ontap_protocols_nfs_service_resource" "foo":
│   47: resource "netapp-ontap_protocols_nfs_service_resource" "foo" {
│ 
│ error on POST protocols/nfs/services: REST reported error
│ restclient.RestError{Code:"1", Message:"duplicate entry",
│ Target:"protocol_access_rules.client_ip"}, statusCode: 409, statusCode 409
╵

Terraform Configuration Files

provider "netapp-ontap" {
  connection_profiles = [
    {
      name           = "OUR_NAME"
      hostname       = "OUR_HOSTNAME"
      username       = "OUR_USERNAME"
      password       = "OUR_PASSWORD"
      validate_certs = false
    }
  ]
}

resource "netapp-ontap_protocols_nfs_service_resource" "foo" {
  cx_profile_name = var.filesystem
  svm_name        = var.svm_name
  enabled         = true
  protocol = {
    v3_enabled  = true
    v40_enabled = true
    v40_features = {
      acl_enabled = true
    }
    v41_enabled = true
    v41_features = {
      acl_enabled = true
    }
    v4_id_domain = var.domain
  }
}

Steps to Reproduce

Run terraform plan/apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

@brent-at-aam brent-at-aam added the bug Something isn't working label Oct 2, 2024
@chuyich
Copy link
Contributor

chuyich commented Oct 2, 2024

@brent-at-aam Would you please provide the log by running:
TF_LOG="DEBUG" terraform apply
So we will have clear picture to see what happened. Thanks.

@carchi8py
Copy link
Contributor

@brent-at-aam can you send that log to me at [email protected] or @chuyich at [email protected]

@carchi8py carchi8py moved this from Future to 2.0.1 in Terraform for ONTAP Roadmap Oct 10, 2024
@carchi8py carchi8py added this to the 2.0.1 milestone Oct 10, 2024
@carchi8py carchi8py modified the milestones: 2.0.1, 2.0.2 Dec 13, 2024
@carchi8py carchi8py moved this from 2.0.1 to 2.0.2 in Terraform for ONTAP Roadmap Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 2.0.2
Development

No branches or pull requests

3 participants