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]: unable to set CIFS ACL #236

Closed
dizzzan opened this issue Jun 29, 2024 · 0 comments · Fixed by #246
Closed

[Bug]: unable to set CIFS ACL #236

dizzzan opened this issue Jun 29, 2024 · 0 comments · Fixed by #246
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dizzzan
Copy link

dizzzan commented Jun 29, 2024

Terraform Core Version

1.5.7

ONTAP Provider Version

1.1.2,1.1.1

Affected Resource(s)

netapp-ontap_protocols_cifs_share_resource

Expected Behavior

ACL should be set successfully

Actual Behavior

Provider produces an error

Relevant Error/Panic Output Snippet

╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to netapp-ontap_protocols_cifs_share_resource.example, provider "provider[\"registry.terraform.io/netapp/netapp-ontap\"]" produced an unexpected new value: .acls: actual set element
│ cty.ObjectVal(map[string]cty.Value{"permission":cty.StringVal("full_control"), "type":cty.StringVal("windows"), "user_or_group":cty.StringVal("Everyone")}) does not correlate with any element in plan.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.


│ Error: Provider produced inconsistent result after apply

│ When applying changes to netapp-ontap_protocols_cifs_share_resource.example, provider "provider[\"registry.terraform.io/netapp/netapp-ontap\"]" produced an unexpected new value: .acls: length changed from
│ 2 to 3.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

Terraform Configuration Files

resource "netapp-ontap_storage_volume_resource" "example" {
  cx_profile_name = var.cluster
  name                = "example"
  svm_name       = data.netapp-ontap_svm_data_source.cifs.name
  aggregates      = "example"
  space = {
    size      = 1
    size_unit = "tb"
  }
  snapshot_policy = "none"
  nas = {
    security_style = "ntfs"
    junction_path  = "/example"
  }
}

resource "netapp-ontap_protocols_cifs_share_resource" "example" {
  cx_profile_name = var.cluster
  name            = "example"
  path            = "/example"
  svm_name        = data.netapp-ontap_svm_data_source.cifs.name
  acls = [
    {
      "permission" : "full_control",
      "type" : "windows",
      "user_or_group" : "mydomain\\myuser1"
    },
    {
      "permission" : "full_control",
      "type" : "windows",
      "user_or_group" : "mydomain\\myuser2"
    }
  ]
  comment = "Share for ${netapp-ontap_storage_volume_resource.example.name}"
}

Steps to Reproduce

apply plan

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@dizzzan dizzzan added the bug Something isn't working label Jun 29, 2024
@carchi8py carchi8py moved this from Future to 1.1.3 in Terraform for ONTAP Roadmap Jul 1, 2024
@carchi8py carchi8py added this to the 1.1.3 milestone Jul 1, 2024
@carchi8py carchi8py assigned carchi8py and wenjun666 and unassigned carchi8py Jul 9, 2024
@suhasbshekar suhasbshekar linked a pull request Jul 25, 2024 that will close this issue
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: 1.1.3
4 participants