ryancbutler / Citrix-VAD-LAB

Build a Citrix Virtual Apps and Desktop environment with Ansible and Terraform
77 stars 26 forks source link

Error: error fetching resource pool: resource pool #9

Closed extromen13 closed 3 years ago

extromen13 commented 3 years ago

Hi, currently there is a problem with fetching resource pool every time I am getting this error Error: error fetching resource pool: resource pool 'WAG/INFRA' not found

on main.tf line 19, in data "vsphere_resource_pool" "pool": 19: data vsphere_resource_pool "pool" {

Can you please advise what is wrong? Thanks a lot TN

ryancbutler commented 3 years ago

Sounds like the resource pool WAG\INFRA can't be found. Make sure its the correct case. https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/data-sources/resource_pool

extromen13 commented 3 years ago

HI @ryancbutler the problem is with any name I am giving as resource pool, I also tried the root resource pool

"Specifying the root resource pool for a standalone host NOTE: Fetching the root resource pool for a cluster can now be done directly via the vsphere_compute_cluster data source.

All compute resources in vSphere (clusters, standalone hosts, and standalone ESXi) have a resource pool, even if one has not been explicitly created. This resource pool is referred to as the root resource pool and can be looked up by specifying the path as per the example below:

data "vsphere_resource_pool" "pool" { name = "esxi1/Resources" datacenter_id = "${data.vsphere_datacenter.dc.id}" }

is there a way how to list resource pool name via terraform? I have no other idea how to find out what is wrong, I also found some threads that are pointing to the same issue with resource pool

https://github.com/hashicorp/terraform-provider-vsphere/issues/962 Thanks a lot