vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
149 stars 111 forks source link

Adding first AVI LB [new certificate trust] #826

Open jcw366 opened 2 years ago

jcw366 commented 2 years ago

Hello,

Hello,

I am currently in the process of automating our deployment of AVI with our VCD environments as we build them up. I have used the latest provider plugin 3.6.0. The issue I found is that if you have not imported the trusted cert for AVI into VCD you cannot add the controller or anything else in the NSX-T ALB section in VCD.

VMware Cloud Director version: 10.3.2.19173133

AVI Version: Version: 20.1.4 Build: 9087

Using self signed cert generated in AVI for the AVI control cluster.

Error message: │ Error: error creating NSX-T ALB Controller 'wd_cluster': error creating NSX-T ALB Controller: error in HTTP POST request: BAD_REQUEST - [ 2ee77001-ae77-44d3-9373-7b8ebb897b58 ] Failed to connect to Load Balancer Controller:

Also this works if I add the trusted certificate for AVI controller cluster before I initiate TF workflow.

mikeletux commented 2 years ago

Hello @jcw366

First of all, thanks for the feedback. You are right about what you say.

To overcome this we would need to add a new resource to import certificates. Doing so, will make this work. I'll keep this GH issue as reference for that feature, so we can develop it in the future.

Thanks!