Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

EOF in /identity/api/tokens when creating multiple resources #79

Open
leander091 opened this issue Aug 19, 2020 · 8 comments
Open

EOF in /identity/api/tokens when creating multiple resources #79

leander091 opened this issue Aug 19, 2020 · 8 comments

Comments

@leander091
Copy link

leander091 commented Aug 19, 2020

General version information:

  • vRA 7.6
  • Terraform version 0.13.0
  • Terraform-provider-vra7 plugin version 1.0.2

Describe the bug
It looks like the VRA provider is not able to create multiple resources in the same terraform run.
I have three resources defined in the file and only 1 of them completes successfully.
The following error is printed in the logs:

2020-08-19T21:21:27.07+02:00 vra7_client.go:53 DoRequest ▶ ERRO 0a6 An error occurred when calling POST on https://skylab.windesheim.nl/identity/api/tokens. Error: Post "https://skylab.windesheim.nl/identity/api/tokens": EOF

The following message is the error printed in the terminal:

Error: The catalog item request failed with error Post "https://skylab.windesheim.nl/identity/api/tokens": EOF

  on Terraform-dev-VRA.tf line 12, in resource "vra7_deployment" "vmware-mgmt":
  12: resource "vra7_deployment" "vmware-mgmt" {

Error: Post "https://skylab.windesheim.nl/identity/api/tokens": http: server closed idle connection

  on Terraform-dev-VRA.tf line 33, in resource "vra7_deployment" "vmware-storage":
  33: resource "vra7_deployment" "vmware-storage" {

To Reproduce
Steps to reproduce the behavior:

  1. Terraform config file
    The terraform config is defined as follows:

provider "vra7" {
  username = var.username
  password = var.password
  tenant   = var.tenant
  host     = var.host
  insecure = var.insecure
  version  = "~> 1.0.2"
}

# Machine 1 Master01
resource "vra7_deployment" "vmware-mgmt" {
  catalog_item_name = var.catalog_item_name
  businessgroup_id  = "c76fc185-3c56-466c-acd6-c423c5a0e03e"
  description       = var.description
  count             = 1
  lease_days        = 160



  resource_configuration {
    component_name = "ESXi6.7"
    cluster        = 4
    configuration = {
      cpu                          = 8
      memory                       = 16384
      "VirtualMachine.Network0.Name"  = "vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026"
      "VirtualMachine.Network1.Name"  = "vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026"
      "VirtualMachine.Network2.Name"  = "vxw-dvs-24323-virtualwire-21-sid-5003-studentnet2-pLab-s1093026"
    }
  }
}
resource "vra7_deployment" "vmware-storage" {
  catalog_item_name = var.catalog_item_name2
  businessgroup_id  = "c76fc185-3c56-466c-acd6-c423c5a0e03e"
  description       = var.storage_description
  count             = 1
  lease_days        = 160


  resource_configuration {
    component_name = "OpenMediaVault"
    cluster        = 1
    configuration = {
      cpu                          = 2
      memory                       = 4096
      "VirtualMachine.Network0.Name"  = "vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026"
      "VirtualMachine.Network1.Name"  = "vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026"

    }
  }

}

resource "vra7_deployment" "vmware-worker" {
  catalog_item_name = var.catalog_item_name
  businessgroup_id  = "c76fc185-3c56-466c-acd6-c423c5a0e03e"
  description       = var.worker_description
  count             = 1
  lease_days        = 160



  resource_configuration {
    component_name = "ESXi6.7"
    cluster        = 4
    configuration = {
      cpu                          = 2
      memory                       = 16384
      "VirtualMachine.Network0.Name"  = "vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026"
      "VirtualMachine.Network1.Name"  = "vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026"
      "VirtualMachine.Network2.Name"  = "vxw-dvs-24323-virtualwire-21-sid-5003-studentnet2-pLab-s1093026"

    }
  }
}
  1. Terraform command
    terraform apply
  2. Error

Expected behavior
The resources will be deployed without any errors based on the defined configuration.

terraform apply
Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Attach logs to help debug the issue

  1. Attach vra-terraform.log
2020-08-19T21:21:13.547+02:00 vra7_client.go:56 DoRequest ▶ INFO 001 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.278+02:00 vra7_client.go:56 DoRequest ▶ INFO 001 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.284+02:00 resource_vra7_deployment.go:153 resourceVra7DeploymentCreate ▶ INFO 002 Creating the resource vra7_deployment...
2020-08-19T21:21:26.284+02:00 resource_vra7_deployment.go:153 resourceVra7DeploymentCreate ▶ INFO 003 Creating the resource vra7_deployment...
2020-08-19T21:21:26.284+02:00 resource_vra7_deployment.go:153 resourceVra7DeploymentCreate ▶ INFO 004 Creating the resource vra7_deployment...
2020-08-19T21:21:26.284+02:00 resource_vra7_deployment.go:595 readProviderConfiguration ▶ INFO 005 Reading the provider configuration data.....
2020-08-19T21:21:26.285+02:00 resource_vra7_deployment.go:595 readProviderConfiguration ▶ INFO 007 Reading the provider configuration data.....
2020-08-19T21:21:26.285+02:00 resource_vra7_deployment.go:595 readProviderConfiguration ▶ INFO 006 Reading the provider configuration data.....
2020-08-19T21:21:26.406+02:00 vra7_client.go:56 DoRequest ▶ INFO 008 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.419+02:00 vra7_client.go:56 DoRequest ▶ INFO 009 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.421+02:00 vra7_client.go:56 DoRequest ▶ INFO 00a Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.499+02:00 vra7_client.go:56 DoRequest ▶ INFO 00b Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItemViews?page=1 
 The response is: 200
2020-08-19T21:21:26.535+02:00 vra7_client.go:56 DoRequest ▶ INFO 00c Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItemViews?page=1 
 The response is: 200
2020-08-19T21:21:26.555+02:00 vra7_client.go:56 DoRequest ▶ INFO 00d Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.609+02:00 vra7_client.go:56 DoRequest ▶ INFO 00e Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.651+02:00 vra7_client.go:56 DoRequest ▶ INFO 00f Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItemViews?page=1 
 The response is: 200
2020-08-19T21:21:26.651+02:00 resource_vra7_deployment.go:629 readProviderConfiguration ▶ INFO 010 The values provided in the TF config file is: 
 {ESXi 6.7 43e5dc20-6d31-4493-8393-9670a1de865e Vmware Workers  c76fc185-3c56-466c-acd6-c423c5a0e03e  900  map[] true 160  [{ESXi6.7 4        map[VirtualMachine.Network0.Name:vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026 VirtualMachine.Network1.Name:vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026 VirtualMachine.Network2.Name:vxw-dvs-24323-virtualwire-21-sid-5003-studentnet2-pLab-s1093026 cpu:2 memory:16384]    }]} 
2020-08-19T21:21:26.651+02:00 resource_vra7_deployment.go:532 checkResourceConfigValidity ▶ INFO 011 Checking if the terraform config file is valid
2020-08-19T21:21:26.699+02:00 vra7_client.go:56 DoRequest ▶ INFO 012 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItemViews?page=1 
 The response is: 200
2020-08-19T21:21:26.752+02:00 vra7_client.go:53 DoRequest ▶ ERRO 013 An error occurred when calling POST on https://skylab.windesheim.nl/identity/api/tokens. Error: Post "https://skylab.windesheim.nl/identity/api/tokens": http: server closed idle connection
2020-08-19T21:21:26.752+02:00 vra7_client.go:56 DoRequest ▶ INFO 014 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItemViews?page=1 
 The response is: 200
2020-08-19T21:21:26.752+02:00 resource_vra7_deployment.go:629 readProviderConfiguration ▶ INFO 015 The values provided in the TF config file is: 
 {ESXi 6.7 43e5dc20-6d31-4493-8393-9670a1de865e Vmware Management  c76fc185-3c56-466c-acd6-c423c5a0e03e  900  map[] true 160  [{ESXi6.7 4        map[VirtualMachine.Network0.Name:vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026 VirtualMachine.Network1.Name:vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026 VirtualMachine.Network2.Name:vxw-dvs-24323-virtualwire-21-sid-5003-studentnet2-pLab-s1093026 cpu:8 memory:16384]    }]} 
2020-08-19T21:21:26.753+02:00 resource_vra7_deployment.go:532 checkResourceConfigValidity ▶ INFO 016 Checking if the terraform config file is valid
2020-08-19T21:21:26.774+02:00 vra7_client.go:56 DoRequest ▶ INFO 017 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.848+02:00 vra7_client.go:56 DoRequest ▶ INFO 018 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:26.999+02:00 vra7_client.go:56 DoRequest ▶ INFO 019 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItems/43e5dc20-6d31-4493-8393-9670a1de865e/requests/template 
 The response is: 200
2020-08-19T21:21:26.999+02:00 resource_vra7_deployment.go:539 checkResourceConfigValidity ▶ INFO 01a The request template data corresponding to the catalog item 43e5dc20-6d31-4493-8393-9670a1de865e is: 
 map[ESXi6.7:map[classId:Blueprint.Component.Declaration componentId:<nil> componentTypeId:com.vmware.csp.component.cafe.composition data:map[VMware.Network.Type:VMXNET3 VirtualMachine.Network0.Name:1 - Default First Network - No Network Access _cluster:1 _hasChildren:false cpu:1 datacenter_location:<nil> description:ESXi 6.7 disks:[map[classId:Infrastructure.Compute.Machine.MachineDisk componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[capacity:8 custom_properties:<nil> id:1.565897201288e+12 initial_location: is_clone:true label:Hard disk 1 storage_reservation_policy: userCreated:false volumeId:0] typeFilter:<nil>]] display_location:false guest_customization_specification:<nil> machine_prefix:<nil> max_network_adapters:10 max_per_user:0 max_volumes:60 memory:4096 nics:[map[classId:Infrastructure.Compute.Machine.Nic componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[address: assignment_type:DHCP id:0 load_balancing: network:<nil> network_profile:<nil>] typeFilter:<nil>]] os_arch:x86_64 os_distribution:<nil> os_type:Linux os_version:<nil> ovfAuthNeeded:false ovf_proxy_endpoint:<nil> ovf_url:<nil> ovf_url_pwd:<nil> ovf_url_username:<nil> ovf_use_proxy:false property_groups:<nil> reservation_policy:map[classId:Infrastructure.Reservation.Policy.ComputeResource componentId:<nil> id:RP_project_prakticum label:RP_project_prakticum] security_groups:[] security_tags:[] storage:8] typeFilter:ESXi67*ESXi6.7] _archiveDays:14 _leaseDays:160 _number_of_instances:1 _snapshot_propagation:true]
2020-08-19T21:21:26.999+02:00 resource_vra7_deployment.go:548 checkResourceConfigValidity ▶ INFO 01b The component name(s) in the blueprint corresponding to the catalog item: map[ESXi6.7:true]
2020-08-19T21:21:26.999+02:00 resource_vra7_deployment.go:195 resourceVra7DeploymentCreate ▶ INFO 05e The updated catalog item request template  is map[ESXi6.7:map[classId:Blueprint.Component.Declaration componentId:<nil> componentTypeId:com.vmware.csp.component.cafe.composition data:map[VMware.Network.Type:VMXNET3 VirtualMachine.Network0.Name:vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026 VirtualMachine.Network1.Name:vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026 VirtualMachine.Network2.Name:vxw-dvs-24323-virtualwire-21-sid-5003-studentnet2-pLab-s1093026 _cluster:4 _hasChildren:false cpu:2 datacenter_location:<nil> description:ESXi 6.7 disks:[map[classId:Infrastructure.Compute.Machine.MachineDisk componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[capacity:8 custom_properties:<nil> id:1.565897201288e+12 initial_location: is_clone:true label:Hard disk 1 storage_reservation_policy: userCreated:false volumeId:0] typeFilter:<nil>]] display_location:false guest_customization_specification:<nil> machine_prefix:<nil> max_network_adapters:10 max_per_user:0 max_volumes:60 memory:16384 nics:[map[classId:Infrastructure.Compute.Machine.Nic componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[address: assignment_type:DHCP id:0 load_balancing: network:<nil> network_profile:<nil>] typeFilter:<nil>]] os_arch:x86_64 os_distribution:<nil> os_type:Linux os_version:<nil> ovfAuthNeeded:false ovf_proxy_endpoint:<nil> ovf_url:<nil> ovf_url_pwd:<nil> ovf_url_username:<nil> ovf_use_proxy:false property_groups:<nil> reservation_policy:map[classId:Infrastructure.Reservation.Policy.ComputeResource componentId:<nil> id:RP_project_prakticum label:RP_project_prakticum] security_groups:[] security_tags:[] storage:8] typeFilter:ESXi67*ESXi6.7] _archiveDays:14 _leaseDays:160 _number_of_instances:1 _snapshot_propagation:true]
2020-08-19T21:21:27.042+02:00 vra7_client.go:56 DoRequest ▶ INFO 05f Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItems/43e5dc20-6d31-4493-8393-9670a1de865e/requests/template 
 The response is: 200
2020-08-19T21:21:27.042+02:00 resource_vra7_deployment.go:539 checkResourceConfigValidity ▶ INFO 060 The request template data corresponding to the catalog item 43e5dc20-6d31-4493-8393-9670a1de865e is: 
 map[ESXi6.7:map[classId:Blueprint.Component.Declaration componentId:<nil> componentTypeId:com.vmware.csp.component.cafe.composition data:map[VMware.Network.Type:VMXNET3 VirtualMachine.Network0.Name:1 - Default First Network - No Network Access _cluster:1 _hasChildren:false cpu:1 datacenter_location:<nil> description:ESXi 6.7 disks:[map[classId:Infrastructure.Compute.Machine.MachineDisk componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[capacity:8 custom_properties:<nil> id:1.565897201288e+12 initial_location: is_clone:true label:Hard disk 1 storage_reservation_policy: userCreated:false volumeId:0] typeFilter:<nil>]] display_location:false guest_customization_specification:<nil> machine_prefix:<nil> max_network_adapters:10 max_per_user:0 max_volumes:60 memory:4096 nics:[map[classId:Infrastructure.Compute.Machine.Nic componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[address: assignment_type:DHCP id:0 load_balancing: network:<nil> network_profile:<nil>] typeFilter:<nil>]] os_arch:x86_64 os_distribution:<nil> os_type:Linux os_version:<nil> ovfAuthNeeded:false ovf_proxy_endpoint:<nil> ovf_url:<nil> ovf_url_pwd:<nil> ovf_url_username:<nil> ovf_use_proxy:false property_groups:<nil> reservation_policy:map[classId:Infrastructure.Reservation.Policy.ComputeResource componentId:<nil> id:RP_project_prakticum label:RP_project_prakticum] security_groups:[] security_tags:[] storage:8] typeFilter:ESXi67*ESXi6.7] _archiveDays:14 _leaseDays:160 _number_of_instances:1 _snapshot_propagation:true]
2020-08-19T21:21:27.042+02:00 resource_vra7_deployment.go:548 checkResourceConfigValidity ▶ INFO 061 The component name(s) in the blueprint corresponding to the catalog item: map[ESXi6.7:true]
2020-08-19T21:21:27.042+02:00 resource_vra7_deployment.go:195 resourceVra7DeploymentCreate ▶ INFO 0a4 The updated catalog item request template  is map[ESXi6.7:map[classId:Blueprint.Component.Declaration componentId:<nil> componentTypeId:com.vmware.csp.component.cafe.composition data:map[VMware.Network.Type:VMXNET3 VirtualMachine.Network0.Name:vxw-dvs-24323-virtualwire-3-sid-5002-studentnet0-pLab-s1093026 VirtualMachine.Network1.Name:vxw-dvs-24323-virtualwire-20-sid-5013-studentnet1-pLab-s1093026 VirtualMachine.Network2.Name:vxw-dvs-24323-virtualwire-21-sid-5003-studentnet2-pLab-s1093026 _cluster:4 _hasChildren:false cpu:8 datacenter_location:<nil> description:ESXi 6.7 disks:[map[classId:Infrastructure.Compute.Machine.MachineDisk componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[capacity:8 custom_properties:<nil> id:1.565897201288e+12 initial_location: is_clone:true label:Hard disk 1 storage_reservation_policy: userCreated:false volumeId:0] typeFilter:<nil>]] display_location:false guest_customization_specification:<nil> machine_prefix:<nil> max_network_adapters:10 max_per_user:0 max_volumes:60 memory:16384 nics:[map[classId:Infrastructure.Compute.Machine.Nic componentId:<nil> componentTypeId:com.vmware.csp.iaas.blueprint.service data:map[address: assignment_type:DHCP id:0 load_balancing: network:<nil> network_profile:<nil>] typeFilter:<nil>]] os_arch:x86_64 os_distribution:<nil> os_type:Linux os_version:<nil> ovfAuthNeeded:false ovf_proxy_endpoint:<nil> ovf_url:<nil> ovf_url_pwd:<nil> ovf_url_username:<nil> ovf_use_proxy:false property_groups:<nil> reservation_policy:map[classId:Infrastructure.Reservation.Policy.ComputeResource componentId:<nil> id:RP_project_prakticum label:RP_project_prakticum] security_groups:[] security_tags:[] storage:8] typeFilter:ESXi67*ESXi6.7] _archiveDays:14 _leaseDays:160 _number_of_instances:1 _snapshot_propagation:true]
2020-08-19T21:21:27.07+02:00 vra7_client.go:56 DoRequest ▶ INFO 0a5 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:27.07+02:00 vra7_client.go:53 DoRequest ▶ ERRO 0a6 An error occurred when calling POST on https://skylab.windesheim.nl/identity/api/tokens. Error: Post "https://skylab.windesheim.nl/identity/api/tokens": EOF
2020-08-19T21:21:27.547+02:00 vra7_client.go:56 DoRequest ▶ INFO 0a7 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItems/43e5dc20-6d31-4493-8393-9670a1de865e/requests 
 The response is: 201
2020-08-19T21:21:27.548+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0a8 Waiting for 30 seconds before checking request status.
2020-08-19T21:21:57.618+02:00 vra7_client.go:56 DoRequest ▶ INFO 0a9 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:21:57.73+02:00 vra7_client.go:56 DoRequest ▶ INFO 0aa Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:21:57.73+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0ab Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:21:57.73+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0ac The request is still IN PROGRESS.
2020-08-19T21:21:57.73+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0ad Waiting for 30 seconds before checking request status.
2020-08-19T21:22:27.858+02:00 vra7_client.go:56 DoRequest ▶ INFO 0ae Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:22:27.928+02:00 vra7_client.go:56 DoRequest ▶ INFO 0af Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:22:27.929+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0b0 Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:22:27.929+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0b1 The request is still IN PROGRESS.
2020-08-19T21:22:27.929+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0b2 Waiting for 30 seconds before checking request status.
2020-08-19T21:22:58.052+02:00 vra7_client.go:56 DoRequest ▶ INFO 0b3 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:22:58.151+02:00 vra7_client.go:56 DoRequest ▶ INFO 0b4 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:22:58.152+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0b5 Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:22:58.152+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0b6 The request is still IN PROGRESS.
2020-08-19T21:22:58.152+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0b7 Waiting for 30 seconds before checking request status.
2020-08-19T21:23:28.301+02:00 vra7_client.go:56 DoRequest ▶ INFO 0b8 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:23:28.374+02:00 vra7_client.go:56 DoRequest ▶ INFO 0b9 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:23:28.374+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0ba Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:23:28.374+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0bb The request is still IN PROGRESS.
2020-08-19T21:23:28.374+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0bc Waiting for 30 seconds before checking request status.
2020-08-19T21:23:58.497+02:00 vra7_client.go:56 DoRequest ▶ INFO 0bd Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:23:58.569+02:00 vra7_client.go:56 DoRequest ▶ INFO 0be Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:23:58.569+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0bf Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:23:58.569+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0c0 The request is still IN PROGRESS.
2020-08-19T21:23:58.57+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0c1 Waiting for 30 seconds before checking request status.
2020-08-19T21:24:28.703+02:00 vra7_client.go:56 DoRequest ▶ INFO 0c2 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:24:28.854+02:00 vra7_client.go:56 DoRequest ▶ INFO 0c3 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:24:28.855+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0c4 Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:24:28.855+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0c5 The request is still IN PROGRESS.
2020-08-19T21:24:28.855+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0c6 Waiting for 30 seconds before checking request status.
2020-08-19T21:24:58.983+02:00 vra7_client.go:56 DoRequest ▶ INFO 0c7 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:24:59.052+02:00 vra7_client.go:56 DoRequest ▶ INFO 0c8 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:24:59.052+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0c9 Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:24:59.052+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0ca The request is still IN PROGRESS.
2020-08-19T21:24:59.052+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0cb Waiting for 30 seconds before checking request status.
2020-08-19T21:25:29.17+02:00 vra7_client.go:56 DoRequest ▶ INFO 0cc Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:25:29.24+02:00 vra7_client.go:56 DoRequest ▶ INFO 0cd Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:25:29.241+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0ce Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:25:29.241+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0cf The request is still IN PROGRESS.
2020-08-19T21:25:29.241+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0d0 Waiting for 30 seconds before checking request status.
2020-08-19T21:25:59.364+02:00 vra7_client.go:56 DoRequest ▶ INFO 0d1 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:25:59.432+02:00 vra7_client.go:56 DoRequest ▶ INFO 0d2 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:25:59.432+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0d3 Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:25:59.432+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0d4 The request is still IN PROGRESS.
2020-08-19T21:25:59.432+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0d5 Waiting for 30 seconds before checking request status.
2020-08-19T21:26:29.8+02:00 vra7_client.go:56 DoRequest ▶ INFO 0d6 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:26:29.914+02:00 vra7_client.go:56 DoRequest ▶ INFO 0d7 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:26:29.914+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0d8 Checking to see the status of the request. Status: IN_PROGRESS.
2020-08-19T21:26:29.914+02:00 resource_vra7_deployment.go:652 waitForRequestCompletion ▶ INFO 0d9 The request is still IN PROGRESS.
2020-08-19T21:26:29.914+02:00 resource_vra7_deployment.go:640 waitForRequestCompletion ▶ INFO 0da Waiting for 30 seconds before checking request status.
2020-08-19T21:27:00.061+02:00 vra7_client.go:56 DoRequest ▶ INFO 0db Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:27:00.132+02:00 vra7_client.go:56 DoRequest ▶ INFO 0dc Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f 
 The response is: 200
2020-08-19T21:27:00.132+02:00 resource_vra7_deployment.go:645 waitForRequestCompletion ▶ INFO 0dd Checking to see the status of the request. Status: SUCCESSFUL.
2020-08-19T21:27:00.132+02:00 resource_vra7_deployment.go:647 waitForRequestCompletion ▶ INFO 0de Request is SUCCESSFUL.
2020-08-19T21:27:00.133+02:00 resource_vra7_deployment.go:208 resourceVra7DeploymentCreate ▶ INFO 0df Finished creating the resource vra7_deployment with request id 8ccfd51d-2b47-4d81-9fab-324e8d35230f
2020-08-19T21:27:00.133+02:00 resource_vra7_deployment.go:389 resourceVra7DeploymentRead ▶ INFO 0e0 Reading the resource vra7_deployment with request id 8ccfd51d-2b47-4d81-9fab-324e8d35230f 
2020-08-19T21:27:00.232+02:00 vra7_client.go:56 DoRequest ▶ INFO 0e1 Check the status of the request https://skylab.windesheim.nl/identity/api/tokens 
 The response is: 200
2020-08-19T21:27:00.784+02:00 vra7_client.go:56 DoRequest ▶ INFO 0e2 Check the status of the request https://skylab.windesheim.nl/catalog-service/api/consumer/requests/8ccfd51d-2b47-4d81-9fab-324e8d35230f/resourceViews 
 The response is: 200
2020-08-19T21:27:00.786+02:00 resource_vra7_deployment.go:487 resourceVra7DeploymentRead ▶ INFO 0e3 Finished reading the resource vra7_deployment with request id 8ccfd51d-2b47-4d81-9fab-324e8d35230f
  1. Attach Terraform console log (Enable terraform logs following the steps mentioned in
    I can provide the debug logging if nessesary. I need to redact first the sentive information before i could atach it to this issue

https://www.terraform.io/docs/configuration/environment-variables.html)
3. crash.log(if any)

Desktop (please complete the following information):

  • OS: Windows 10 2004

Additional context
Add any other context about the problem here.

@Prativa20
Copy link
Contributor

@leander091 I could not reproduce it in my environment. Can you try to request them separately and see if the deployment is created?

Thanks,
Prativa

@leander091
Copy link
Author

Ofcourse, I am going to test each resource separately and post the results.

@leander091
Copy link
Author

leander091 commented Aug 19, 2020

@Prativa20
I've split the resources in three parts and I can deploy each one successfully.

I've also tested the original configuration and the error is still there. Although the returned EOF is changed in one of the resources. The resource vmware-worker returns the EOF when it tried to do the api call when requesting the blueprint.

Error: The catalog item request failed with error Post "https://skylab.windesheim.nl/catalog-service/api/consumer/entitledCatalogItems/43e5dc20-6d31-4493-8393-9670a1de865e/requests": EOF

So iam not sure if this an issue with our VRA configuration or an bug in this terraform provider

@Prativa20
Copy link
Contributor

Prativa20 commented Aug 19, 2020

@leander091 I tried another scenario and I could reproduce it. The deployments are created in vRA but the provider crashes.
I will work on it and provide an update soon.

Is it crashing for you as well? Do you have crash log?

Thanks,
Prativa

@leander091
Copy link
Author

leander091 commented Aug 19, 2020

@Prativa20

Thanks for the extra testing 👍.
It looks like that in my situation the provider mostly returns the errors and exits cleanly.

I've tried an new run and it looks like also could trigger an crash. I am reviewing the crash report and will upload it after the removal of some sensitive information.

@leander091
Copy link
Author

@Prativa20

This is my crash log: crashlog-terraform

@Prativa20
Copy link
Contributor

@leander091 Can you check if you can still reproduce it with the latest provider version?

@leander091
Copy link
Author

leander091 commented Sep 21, 2020

@Prativa20 I've tested with the latest version and it looks like this problem still exists.
Is there a option to output more logging related to this specific problem and the authentication of the provider against our vRA instance?
I've tried the de $env:TF_LOG="TRACE" option but it does not give a clue about why the provider returns an EOF.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants