nutanix / terraform-provider-nutanix

Terraform Nutanix Provider
https://www.terraform.io/docs/providers/nutanix/
Mozilla Public License 2.0
95 stars 111 forks source link

Assigning a duplicated role while creating a Project results in an error and unusable Project #627

Open marguslaanem opened 1 year ago

marguslaanem commented 1 year ago

Nutanix Cluster Information

Prism Central Version pc.2023.1.0.2

Terraform Version

Terraform v1.5.5 Terraform provider: nutanix/nutanix 1.9.1

Terraform Configuration Files

user_reference_list {
    name= "m.laanem@domain.lan"
    kind= "user"
    uuid= "uuid of the user"
  }

  acp {
    name="acp"
    role_reference {
      kind= "role"
      uuid= "uuid of the role that was duplicated from Project admin"
      name= "Duplicated Project Admin"
    }
    user_reference_list {
      name= "m.laanem@domain.lan"
      kind= "user"
      uuid= "uuid of the user"
    }
    description= "Custom Project Admin"
  }

Debug Output

Error: error waiting for project(7abe42c1-ebcf-427e-8c2e-99dd9a72aa83) to update: error_detail: , progress_message: update_project

Panic Output

Expected Behavior

A project with a domain user that has the custom role attached to it

Actual Behavior

An error and a Project that cant be deleted or edited in any way

Steps to Reproduce

  1. duplicate a role from Project admin
  2. create a project and add the custom role to a user using terraform

Important Factors

Role is made using GUI by duplicating "Project admin" User is a active directory user ​

References

https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/resources/project