Skip to content

Enhancement request - Create resource pools #170

@llopezme-cisco

Description

@llopezme-cisco

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:

  1. I have a resource pool template with id: 8479d0f5-fea0-43b7-ab46-7474216b83f6

  2. 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"
    }

  3. 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.

  4. 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:

Image

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

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions