aruba / terraform-provider-aoscx

The Terraform Provider for AOS-CX provides a set of configuration management modules and resources specifically designed to manage/configure AOS-CX switches using REST API.
Mozilla Public License 2.0
11 stars 1 forks source link

Error: Plugin did not respond #1

Open tchiapuziowong opened 1 year ago

tchiapuziowong commented 1 year ago

Known issue with the following error:

administrator@administrator-virtual-machine:~/go/src/sandbox$ terraform apply --auto-approve
╷
│ Error: Plugin did not respond
│
│   with provider["registry.terraform.io/aruba/aoscx"],
│   on main.tf line 10, in provider "aoscx":
│   10: provider "aoscx" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ConfigureProvider call. The plugin logs may contain more
│ details.
╵

Due to the Terraform framework design there is no logout/cleanup functionality, therefore REST API sessions are subject to closing based on timeout. Depending on the timing of consecutive executions and the configured session-timeout of the https-server (Default: 20 minutes. Maximum: 480 min(8 hours). 0 disables the timeout, but the maximum is still enforced).

Workaround is to execute the following command in the manager context to close out all sessions, wait 10 seconds, then execute the terraform apply command: switch# https-server session close all

Vinayaks439 commented 1 year ago

Hi @tchiapuziowong I'm facing the same issue while debugging my terraform provider? I'm debugging things on macOS M1 chip. Do you know why this happens? Is there something we can do fix this maybe define timeouts in provider func is that possible?

alagoutte commented 1 year ago

it is not possible to add on tf file a last ressource for disconnect ?