-
Notifications
You must be signed in to change notification settings - Fork 1
Description
This enhancement request is to create an individual resource pool while creating an user.
The objective of this use case is to be able to create a resource pool from a resource pool template when creating an user with cml2_user (Resource).
i tried this in my lab, and it worked partially, here the details:
-
I have a resource pool template with id: 8479d0f5-fea0-43b7-ab46-7474216b83f6
-
Then i created my cml user pointing to that resource pool template.
resource "cml2_user" "user" {
username = var.cml_lab_username
password = var.cml_lab_password
description = "test user"
fullname = ""
email = ""
is_admin = false
resource_pool = "8479d0f5-fea0-43b7-ab46-7474216b83f6"
} -
While running the script, it ends up with a failure showing this log:
- terraform apply -input=false -auto-approve -no-color plan.tfplan
module.nac_lab.module.sdwan["1"].cml2_user.user: Creating...
Error: Provider produced inconsistent result after apply
When applying changes to module.nac_lab.module.sdwan["1"].cml2_user.user,
provider
"provider["registry.terraform.io/ciscodevnet/cml2"]"
produced an unexpected new value: .resource_pool: was
cty.StringVal("8479d0f5-fea0-43b7-ab46-7474216b83f6"), but now
cty.StringVal("cfbfb2d3-0df1-4ffa-8e05-a0964e942922").This is a bug in the provider, which should be reported in the provider's own
issue tracker. - terraform apply -input=false -auto-approve -no-color plan.tfplan
-
After the script fails, i can see that CML has the resource pool created successfully from the mentioned resource pool template and it was assigned to the right user:

Kindly ask your assistance to consider enabling this feature in the upcoming releases.
Thank you.