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] Can't create citrix_machine_catalog with vda_upgrade_type attribute #133

Closed
hewozuoai opened this issue Oct 1, 2024 · 2 comments · Fixed by #137
Closed

[Bug] Can't create citrix_machine_catalog with vda_upgrade_type attribute #133

hewozuoai opened this issue Oct 1, 2024 · 2 comments · Fixed by #137
Labels
bug Something isn't working

Comments

@hewozuoai
Copy link

Describe the bug

When trying to create a citrix_machine_catalog resource using attribute vda_upgrade_type = "LTSR" i get the following error

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.citrix_cloud_daas.citrix_machine_catalog.testing, provider "module.citrix_cloud_daas.provider[\"registry.terraform.io/citrix/citrix\"]" produced an unexpected new value:     
│ .vda_upgrade_type: was cty.StringVal("LTSR"), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Terraform command (import, apply, etc):
Resource impacted:

data "citrix_zone" "citrix_zone" {
  name = "Testing"
}

resource "citrix_machine_catalog" "testing" {
  name              = "Testing"
  description       = "Testing"
  zone              = data.citrix_zone.citrix_zone.id
  allocation_type   = "Random"
  session_support   = "MultiSession"
  provisioning_type = "Manual"
  is_power_managed  = "false"
  is_remote_pc      = "false"
  vda_upgrade_type  = "LTSR"

  machine_accounts = [
    {
      machines = [
        {
          machine_account = lower("DOMAIN\\Testing")
        }
      ]
    }
  ]

  lifecycle {
    create_before_destroy = false
  }
}

Versions

Use the terraform -v command to find the Terraform and Citrix Provider versions.
Terraform: v1.5.0
citrix/citrix provider: 1.0.4
Operation system: WSL 2

Terraform console output

Acquiring state lock. This may take a few moments...
module.citrix_cloud_daas.citrix_machine_catalog.testing: Creating...
module.citrix_cloud_daas.citrix_machine_catalog.testing: Still creating... [10s elapsed]
module.citrix_cloud_daas.citrix_machine_catalog.testing: Still creating... [18s elapsed]
module.citrix_cloud_daas.citrix_machine_catalog.testing: Still creating... [28s elapsed]
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.citrix_cloud_daas.citrix_machine_catalog.testing, provider "module.citrix_cloud_daas.provider[\"registry.terraform.io/citrix/citrix\"]" produced an unexpected new value:     
│ .vda_upgrade_type: was cty.StringVal("LTSR"), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Releasing state lock. This may take a few moments...
@hewozuoai hewozuoai added the bug Something isn't working label Oct 1, 2024
@hewozuoai
Copy link
Author

Just to add that if i exclude the vda_upgrade_type attribute, the resource is successfully created.

@aneeshk-citrix
Copy link
Collaborator

Hi @hewozuoai,

Thank you for bringing up this issue. We've identified the problem and will have this fixed in the next release.

Aneesh

@zhuolun-citrix zhuolun-citrix linked a pull request Oct 15, 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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants