-
Notifications
You must be signed in to change notification settings - Fork 6
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] Citrix DaaS is required to use CC and GAC resources #112
Comments
Hi @marcindotkot, I see that you have specified cloud credentials but are you trying to apply GAC for your on-premises environment or your Cloud customer? Aneesh |
Hi Aneesh, the configuration was just aimed to configure the GAC for the cloud environment only. |
Hi @marcindotkot, Just to clarify further, are your CVAD resources in cloud? Aneesh |
Currently in order to use Citrix Cloud and GAC in the provider, you must have an active Citrix DaaS environment as well. We will take this issue to de-couple these from each other. In the meantime if you have DaaS but are not using it, as a workaround you can re-enable it via this support article: https://support.citrix.com/s/article/CTX477615-studio-console-shows-enable-daas-for-first-time-use |
Thanks for taking the time to fill out this bug report! Before submitting this issue please check the open bugs to ensure the bug has not already been reported. If it has been reported give it a 👍
If this bug is present when using the Citrix service UI or REST APIs then it is not a bug in the provider but rather a bug in the underlying service or the environment. In some cases there can be an enhancement in the provider to handle the error better. Please open a feature request instead of a bug in this case. For more information see CONTRIBUTING.md#provider-issue-vs-product-issue-vs-configuration-issue.
Describe the bug
Unable to push GAC settings with terraform plan / apply.
following error:
│ Error: Citrix DaaS service unavailable
│
│ with provider["registry.terraform.io/citrix/citrix"],
│ on 01.main.tf line 10, in provider "citrix":
│ 10: provider "citrix" {
│
│ The DDC(s) for the customer cannot be reached. Please check if you can access DaaS UI.
The UI is available, I alco can confirm that the API Access account is configured properly (the Last Used Date is updated on the cloud.com portal each time I run terraform plan).
Versions
Terraform v1.9.5
on darwin_arm64
Terraform configuration files
terraform {
required_providers {
citrix = {
source = "citrix/citrix"
version = "=1.0.1-bugfix-1"
}
}
}
provider "citrix" {
cvad_config = {
customer_id = ...
client_id = ..
client_secret = ..
}
}
resource "citrix_gac_settings" "baselineGACSConfig" {
service_url = "https://anewswissbank.cloud.com:443"
name = "WorkspaceApp Config"
description = "Windows and MAC OS Settings"
use_for_app_config = true
app_settings = {
windows = [{
category = "ica client"
user_override = false
settings = [{
name = "Enable CEIP"
value_string = "false"
}]
}]
}
}
Terraform console output
marcindotkot@EngineeringMAC 05-GACS % terraform plan
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Citrix DaaS service unavailable
│
│ with provider["registry.terraform.io/citrix/citrix"],
│ on 01.main.tf line 10, in provider "citrix":
│ 10: provider "citrix" {
│
│ The DDC(s) for the customer cannot be reached. Please check if you can access DaaS UI.
╵
marcindotkot@EngineeringMAC 05-GACS % terraform -v
Terraform log file
2024-09-02T10:36:49.366+0200 [INFO] Terraform version: 1.9.5
2024-09-02T10:36:49.366+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.58.0
2024-09-02T10:36:49.366+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-09-02T10:36:49.366+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-09-02T10:36:49.366+0200 [DEBUG] using github.com/zclconf/go-cty v1.14.4
2024-09-02T10:36:49.366+0200 [INFO] Go runtime version: go1.22.5
2024-09-02T10:36:49.366+0200 [INFO] CLI args: []string{"terraform", "plan"}
2024-09-02T10:36:49.366+0200 [DEBUG] Attempting to open CLI config file: /Users/marcindotkot/.terraformrc
2024-09-02T10:36:49.366+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-09-02T10:36:49.366+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-09-02T10:36:49.366+0200 [DEBUG] ignoring non-existing provider search directory /Users/marcindotkot/.terraform.d/plugins
2024-09-02T10:36:49.366+0200 [DEBUG] ignoring non-existing provider search directory /Users/marcindotkot/Library/Application Support/io.terraform/plugins
2024-09-02T10:36:49.366+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2024-09-02T10:36:49.366+0200 [INFO] CLI command args: []string{"plan"}
2024-09-02T10:36:49.398+0200 [DEBUG] checking for provisioner in "."
2024-09-02T10:36:49.398+0200 [DEBUG] checking for provisioner in "/opt/homebrew/bin"
2024-09-02T10:36:49.398+0200 [INFO] backend/local: starting Plan operation
2024-09-02T10:36:49.400+0200 [DEBUG] created provider logger: level=debug
2024-09-02T10:36:49.400+0200 [INFO] provider: configuring client automatic mTLS
2024-09-02T10:36:49.406+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 args=[".terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1"]
2024-09-02T10:36:49.408+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 pid=9311
2024-09-02T10:36:49.408+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1
2024-09-02T10:36:49.414+0200 [INFO] provider.terraform-provider-citrix_v1.0.1-bugfix-1: configuring server automatic mTLS: timestamp="2024-09-02T10:36:49.414+0200"
2024-09-02T10:36:49.419+0200 [DEBUG] provider: using plugin: version=6
2024-09-02T10:36:49.419+0200 [DEBUG] provider.terraform-provider-citrix_v1.0.1-bugfix-1: plugin address: address=/var/folders/lx/wt8b0y917vlc8jt9gryzmm4h0000gn/T/plugin740723394 network=unix timestamp="2024-09-02T10:36:49.419+0200"
2024-09-02T10:36:49.430+0200 [DEBUG] No provider meta schema returned
2024-09-02T10:36:49.431+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-09-02T10:36:49.431+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 id=9311
2024-09-02T10:36:49.431+0200 [DEBUG] provider: plugin exited
2024-09-02T10:36:49.431+0200 [DEBUG] Building and walking validate graph
2024-09-02T10:36:49.431+0200 [DEBUG] ProviderTransformer: "citrix_gac_settings.baselineGACSConfig" (terraform.NodeValidatableResource) needs provider["registry.terraform.io/citrix/citrix"]
2024-09-02T10:36:49.431+0200 [DEBUG] ReferenceTransformer: "citrix_gac_settings.baselineGACSConfig" references: []
2024-09-02T10:36:49.432+0200 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/citrix/citrix"]" references: []
2024-09-02T10:36:49.432+0200 [DEBUG] Starting graph walk: walkValidate
2024-09-02T10:36:49.432+0200 [DEBUG] created provider logger: level=debug
2024-09-02T10:36:49.432+0200 [INFO] provider: configuring client automatic mTLS
2024-09-02T10:36:49.434+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 args=[".terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1"]
2024-09-02T10:36:49.435+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 pid=9312
2024-09-02T10:36:49.435+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1
2024-09-02T10:36:49.441+0200 [INFO] provider.terraform-provider-citrix_v1.0.1-bugfix-1: configuring server automatic mTLS: timestamp="2024-09-02T10:36:49.441+0200"
2024-09-02T10:36:49.446+0200 [DEBUG] provider: using plugin: version=6
2024-09-02T10:36:49.446+0200 [DEBUG] provider.terraform-provider-citrix_v1.0.1-bugfix-1: plugin address: address=/var/folders/lx/wt8b0y917vlc8jt9gryzmm4h0000gn/T/plugin1686827644 network=unix timestamp="2024-09-02T10:36:49.446+0200"
2024-09-02T10:36:49.450+0200 [DEBUG] skipping FixUpBlockAttrs
2024-09-02T10:36:49.451+0200 [DEBUG] skipping FixUpBlockAttrs
2024-09-02T10:36:49.453+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-09-02T10:36:49.453+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 id=9312
2024-09-02T10:36:49.453+0200 [DEBUG] provider: plugin exited
2024-09-02T10:36:49.453+0200 [INFO] backend/local: plan calling Plan
2024-09-02T10:36:49.453+0200 [DEBUG] Building and walking plan graph for NormalMode
2024-09-02T10:36:49.453+0200 [DEBUG] ProviderTransformer: "citrix_gac_settings.baselineGACSConfig (expand)" (terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/citrix/citrix"]
2024-09-02T10:36:49.453+0200 [DEBUG] ReferenceTransformer: "citrix_gac_settings.baselineGACSConfig (expand)" references: []
2024-09-02T10:36:49.453+0200 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/citrix/citrix"]" references: []
2024-09-02T10:36:49.453+0200 [DEBUG] Starting graph walk: walkPlan
2024-09-02T10:36:49.454+0200 [DEBUG] created provider logger: level=debug
2024-09-02T10:36:49.454+0200 [INFO] provider: configuring client automatic mTLS
2024-09-02T10:36:49.456+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 args=[".terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1"]
2024-09-02T10:36:49.457+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 pid=9313
2024-09-02T10:36:49.457+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1
2024-09-02T10:36:49.462+0200 [INFO] provider.terraform-provider-citrix_v1.0.1-bugfix-1: configuring server automatic mTLS: timestamp="2024-09-02T10:36:49.462+0200"
2024-09-02T10:36:49.467+0200 [DEBUG] provider: using plugin: version=6
2024-09-02T10:36:49.467+0200 [DEBUG] provider.terraform-provider-citrix_v1.0.1-bugfix-1: plugin address: address=/var/folders/lx/wt8b0y917vlc8jt9gryzmm4h0000gn/T/plugin4103054828 network=unix timestamp="2024-09-02T10:36:49.467+0200"
2024-09-02T10:36:49.471+0200 [DEBUG] skipping FixUpBlockAttrs
2024-09-02T10:36:49.472+0200 [INFO] provider.terraform-provider-citrix_v1.0.1-bugfix-1: Configuring Citrix Cloud client: tf_req_id=5a412a6d-464c-d597-bfc3-09b97bf65f4b tf_rpc=ConfigureProvider @caller=github.com/citrix/terraform-provider-citrix/internal/provider/provider.go:349 @module=citrix tf_provider_addr=registry.terraform.io/citrix/citrix timestamp="2024-09-02T10:36:49.472+0200"
2024-09-02T10:36:49.472+0200 [DEBUG] provider.terraform-provider-citrix_v1.0.1-bugfix-1: Creating Citrix API client: @module=citrix citrix_client_id=b383a10b-74a2-416f-ab51-fcaa1d073632 citrix_customer_id="" citrix_on_premises=false tf_rpc=ConfigureProvider @caller=github.com/citrix/terraform-provider-citrix/internal/provider/provider.go:599 citrix_client_secret="" citrix_hostname=api.cloud.com tf_provider_addr=registry.terraform.io/citrix/citrix tf_req_id=5a412a6d-464c-d597-bfc3-09b97bf65f4b timestamp="2024-09-02T10:36:49.472+0200"
2024-09-02T10:36:50.352+0200 [INFO] provider.terraform-provider-citrix_v1.0.1-bugfix-1: Orchestration API request: @module=citrix citrix_client_secret="" citrix_customer_id="**" method=GET tf_req_id=5a412a6d-464c-d597-bfc3-09b97bf65f4b transactionId=346c799a-9326-4cdb-b807-e4f64387fa64 citrix_on_premises=false @caller=github.com/citrix/terraform-provider-citrix/internal/provider/provider.go:262 tf_provider_addr=registry.terraform.io/citrix/citrix url=https://api.cloud.com/cvad/manage/me citrix_client_id=b383a10b-74a2-416f-ab51-fcaa1d073632 citrix_hostname=api.cloud.com tf_rpc=ConfigureProvider timestamp="2024-09-02T10:36:50.352+0200"
2024-09-02T10:36:50.582+0200 [WARN] provider.terraform-provider-citrix_v1.0.1-bugfix-1: Response contains warning diagnostic: diagnostic_detail="Please update the provider version in terraform configuration to >=1.0.1 and then run
terraform init --upgrade
to get the latest version." tf_provider_addr=registry.terraform.io/citrix/citrix tf_proto_version=6.6 @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:60 @module=sdk.proto diagnostic_severity=WARNING diagnostic_summary="New version of the citrix/citrix provider is available" tf_req_id=5a412a6d-464c-d597-bfc3-09b97bf65f4b tf_rpc=ConfigureProvider timestamp="2024-09-02T10:36:50.582+0200"2024-09-02T10:36:50.583+0200 [ERROR] provider.terraform-provider-citrix_v1.0.1-bugfix-1: Response contains error diagnostic: tf_rpc=ConfigureProvider tf_proto_version=6.6 tf_provider_addr=registry.terraform.io/citrix/citrix @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail="The DDC(s) for the customer cannot be reached. Please check if you can access DaaS UI." diagnostic_severity=ERROR diagnostic_summary="Citrix DaaS service unavailable" tf_req_id=5a412a6d-464c-d597-bfc3-09b97bf65f4b timestamp="2024-09-02T10:36:50.582+0200"
2024-09-02T10:36:50.583+0200 [ERROR] vertex "provider["registry.terraform.io/citrix/citrix"]" error: Citrix DaaS service unavailable
2024-09-02T10:36:50.584+0200 [WARN] Planning encountered errors, so plan is not applyable
2024-09-02T10:36:50.584+0200 [INFO] backend/local: plan operation completed
2024-09-02T10:36:50.588+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-09-02T10:36:50.590+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/citrix/citrix/1.0.1-bugfix-1/darwin_arm64/terraform-provider-citrix_v1.0.1-bugfix-1 id=9313
2024-09-02T10:36:50.591+0200 [DEBUG] provider: plugin exited
The text was updated successfully, but these errors were encountered: