Skip to content
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

Issue when trying to provision a new ibm_container_alb_cert #2067

Closed
ifs-anthonylecarrer opened this issue Nov 26, 2020 · 12 comments
Closed

Comments

@ifs-anthonylecarrer
Copy link

Hello,

Here is the issue i randomly encountered since yesterday night (sometimes it works sometimes not sometimes the secret is provisioned sometimes not and so sometimes tfstate is not synchronized with resources). When resources creation fail, the resource is present in tfstate with status tainted but can not be tainted as creation fail)

Terraform Version

terraform : 0.12.26
ibm tf provider : 1.14.0

Affected Resource(s)

Please list the resources as a list, for example:

  • ibm_container_alb_cert

Terraform Configuration Files

resource "ibm_container_alb_cert" "ingress_cert" {
  cert_crn    = var.certificate_crn
  secret_name = var.tls_secret_name
  cluster_id  = var.cluster_id
}

Debug Output

module.security.module.mtls.ibm_container_alb_cert.ingress_cert: Still creating... [10s elapsed]

stderr : 
Error: Error waiting for create resource alb cert (buvlsclf0qcur3hjcrng/ingress-tls-cert) : The resource alb cert buvlsclf0qcur3hjcrng/ingress-tls-cert does not exist anymore: Request failed with status code: 404, ServerErrorResponse: {"incidentID":"5f82fa1696ce299a-IAD","code":"E0024","description":"The specified Ingress secret name is not found for this cluster.","type":"ALBSecret","recoveryCLI":"To list the Ingress secrets for a cluster, run 'ibmcloud ks ingress secret ls -c \u003ccluster_name_or_ID\u003e'."}

  on modules/security/tls/main.tf line 5, in resource "ibm_container_alb_cert" "ingress_cert":
   5: resource "ibm_container_alb_cert" "ingress_cert" {

Expected Behavior

The ibm_container_alb_cert should have been provisionned correctly

Actual Behavior

The ibm_container_alb_cert is not provisionned or provisionned after the crash error and the terraform state file contain a ressource marked as tainted (even if not provisionned)

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

terraform apply -auto-approve

provider "ibm" {
 generation = 2
 region = "eu-de"
}
data "ibm_resource_group" "group" {
 name = "<<cluster resource group >>"
}
data "ibm_container_vpc_cluster" "cluster" {
 cluster_name_id = "<< cluster name or id >>"
 resource_group_id = data.ibm_resource_group.group.id
}
 
resource ibm_container_alb_cert cert {
 cert_crn = "<< cert crn >>"
 secret_name = "<< secret name >>"
 cluster_id = data.ibm_container_vpc_cluster.cluster.id
}
@pauljegouic
Copy link

@hkantare

@ifs-anthonylecarrer
Copy link
Author

ibmcloud ks alb certs -c buvlsclf0qcur3hjcrng

OK
Secret Name                                                     Cluster ID             Domain Name                                                                                        Issuer Name   Expires On   Status   
featplat256-atomic-clus-b5d0277f592ed86b816824e1058264e5-0000   buvlsclf0qcur3hjcrng   featplat256-atomic-clus-b5d0277f592ed86b816824e1058264e5-0000.eu-de.containers.appdomain.cloud     -             24/02/2021   created   
featplat256-atomic-clus-b5d0277f592ed86b816824e1058264e5-0000   buvlsclf0qcur3hjcrng   *.featplat256-atomic-clus-b5d0277f592ed86b816824e1058264e5-0000.eu-de.containers.appdomain.cloud   -             24/02/2021   created   
featplat256-atomic-clus-b5d0277f592ed86b816824e1058264e5-0000   buvlsclf0qcur3hjcrng   *.featplat256-atomic-clus-b5d0277f592ed86b816824e1058264e5-0000.eu-de.containers.appdomain.cloud   -             24/02/2021   created   
ingress-tls-cert                                                buvlsclf0qcur3hjcrng   *.skt-integration.ibm.ifsalpha.com                                                                 -             24/01/2021   created   

ibmcloud ks alb cert get -c buvlsclf0qcur3hjcrng --secret-name ingress-tls-cert

Retrieving alb cert...
OK
                      
Secret Name:       ingress-tls-cert   
Cluster ID:        buvlsclf0qcur3hjcrng   
Domain Name:       *.skt-integration.ibm.ifsalpha.com   
Issuer Name:       -   
Expires On:        24/01/2021   
Certificate CRN:   crn:v1:bluemix:public:cloudcerts:eu-de:a/67a4395fde4e4e0ca52f5554b249ceb7:a536b115-6f2f-4d2a-b4df-b63baa53dec7:certificate:a86a4afe3c85f28912333386cd910386   
State:             created   
Status:            normal  

@hkantare
Copy link
Collaborator

@ifs-pauljegouic As discussed on slack from last 2 days the customer is seeing an issue while provisioning a secret. The same code was working earlier.
In our terraform resource we first make POST call to deploy the secret and then poll the status of the secret.
When we make a immediate call to GET API after POST the API is throwing back an response of statuscode 404.

As a workaroud we tried to increase the retry call on the GET API even if we get an 404 response code.

We are working on this fix ..We will update once the fix is availble in release

@pauljegouic
Copy link

Workaround observed on the provisionning.

BUT now, error on the deletion.

➜ debug terraform state list
ibm_container_alb_cert.cert
ibm_container_vpc_cluster.cluster
➜ debug terraform taint ibm_container_alb_cert.cert
Resource instance ibm_container_alb_cert.cert has been marked as tainted.
➜ debug terraform apply --auto-approve
ibm_container_vpc_cluster.cluster: Refreshing state... [id=bv31ajuf00tvv8p2sn80]
ibm_container_alb_cert.cert: Refreshing state... [id=bv31ajuf00tvv8p2sn80/test-sec]
ibm_container_alb_cert.cert: Destroying... [id=bv31ajuf00tvv8p2sn80/test-sec]
ibm_container_alb_cert.cert: Still destroying... [id=bv31ajuf00tvv8p2sn80/test-sec, 10s elapsed]

Error: unexpected state 'deleting', wanted target 'deleted'. last error: %!s()

@pauljegouic
Copy link

@hkantare

@pauljegouic
Copy link

➜  debug terraform version
Terraform v0.12.26
+ provider.ibm v1.16.0

@hkantare
Copy link
Collaborator

hkantare commented Dec 2, 2020

@ifs-pauljegouic Can you please share me the complete log does the error was thrown out after 10s

ibm_container_alb_cert.cert: Destroying... [id=bv31ajuf00tvv8p2sn80/test-sec]
ibm_container_alb_cert.cert: Still destroying... [id=bv31ajuf00tvv8p2sn80/test-sec, 10s elapsed]

Error: unexpected state 'deleting', wanted target 'deleted'. last error: %!s()

@hkantare
Copy link
Collaborator

hkantare commented Dec 2, 2020

Here is the successfull log from our end

kavya@Kavyas-MacBook-Pro ~/g/s/g/I/t/e/a/cluster> terraform apply
2020/12/02 10:39:15 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
  Use TF_LOG=TRACE to see Terraform's internal logs.
  ----
2020/12/02 10:39:15 [INFO] Terraform version: 0.12.29  
2020/12/02 10:39:15 [INFO] Go runtime version: go1.12.13
2020/12/02 10:39:15 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2020/12/02 10:39:15 [DEBUG] Attempting to open CLI config file: /Users/kavya/.terraformrc
2020/12/02 10:39:15 Loading CLI configuration from /Users/kavya/.terraformrc
2020/12/02 10:39:15 [DEBUG] checking for credentials in "/Users/kavya/.terraform.d/plugins"
2020/12/02 10:39:15 [INFO] CLI command args: []string{"apply"}
2020/12/02 10:39:15 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
  Use TF_LOG=TRACE to see Terraform's internal logs.
  ----
2020/12/02 10:39:15 [DEBUG] New state was assigned lineage "3be15b63-02bf-67aa-f4a5-2e9cf03d5a45"
2020/12/02 10:39:15 [DEBUG] checking for provider in "."
2020/12/02 10:39:15 [DEBUG] checking for provider in "/usr/local/bin"
2020/12/02 10:39:15 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/12/02 10:39:15 [DEBUG] checking for provider in "/Users/kavya/.terraform.d/plugins"
2020/12/02 10:39:15 [DEBUG] found plugin override in .terraformrc: "ibm", "/Users/kavya/go/bin/terraform-provider-ibm-12"
2020/12/02 10:39:15 [DEBUG] found valid plugin: "ibm", "0.0.0", "/Users/kavya/go/bin/terraform-provider-ibm-12"
2020/12/02 10:39:15 [DEBUG] checking for provisioner in "."
2020/12/02 10:39:15 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/12/02 10:39:15 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/12/02 10:39:15 [DEBUG] checking for provisioner in "/Users/kavya/.terraform.d/plugins"
2020/12/02 10:39:15 [INFO] backend/local: starting Apply operation
2020-12-02T10:39:15.432+0530 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T10:39:15.456+0530 [DEBUG] plugin: starting plugin: path=/Users/kavya/go/bin/terraform-provider-ibm-12 args=[/Users/kavya/go/bin/terraform-provider-ibm-12]
2020-12-02T10:39:15.462+0530 [DEBUG] plugin: plugin started: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59343
2020-12-02T10:39:15.462+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/kavya/go/bin/terraform-provider-ibm-12
2020-12-02T10:39:15.534+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:15 IBM Cloud Provider version 1.16.0  
2020-12-02T10:39:15.538+0530 [INFO]  plugin.terraform-provider-ibm-12: configuring server automatic mTLS: timestamp=2020-12-02T10:39:15.538+0530
2020-12-02T10:39:15.566+0530 [DEBUG] plugin: using plugin: version=5
2020-12-02T10:39:15.566+0530 [DEBUG] plugin.terraform-provider-ibm-12: plugin address: address=/var/folders/_8/xdqn2mpj39dfl7tvvb0r4fx80000gn/T/plugin300562930 network=unix timestamp=2020-12-02T10:39:15.565+0530
2020-12-02T10:39:15.647+0530 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T10:39:15.649+0530 [DEBUG] plugin: plugin process exited: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59343
2020-12-02T10:39:15.649+0530 [DEBUG] plugin: plugin exited
2020/12/02 10:39:15 [INFO] terraform: building graph: GraphTypeValidate
2020/12/02 10:39:15 [DEBUG] adding implicit provider configuration provider.ibm, implied first by ibm_container_alb_cert.cert
2020/12/02 10:39:15 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeValidatableResource) needs provider.ibm
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.resource_group" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.worker_count" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.name" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.region" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.worker_pool_name" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.flavor" references: []
2020/12/02 10:39:15 [DEBUG] Starting graph walk: walkValidate
2020-12-02T10:39:15.651+0530 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T10:39:15.675+0530 [DEBUG] plugin: starting plugin: path=/Users/kavya/go/bin/terraform-provider-ibm-12 args=[/Users/kavya/go/bin/terraform-provider-ibm-12]
2020-12-02T10:39:15.681+0530 [DEBUG] plugin: plugin started: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59345
2020-12-02T10:39:15.681+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/kavya/go/bin/terraform-provider-ibm-12
2020-12-02T10:39:15.725+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:15 IBM Cloud Provider version 1.16.0  
2020-12-02T10:39:15.728+0530 [INFO]  plugin.terraform-provider-ibm-12: configuring server automatic mTLS: timestamp=2020-12-02T10:39:15.728+0530
2020-12-02T10:39:15.755+0530 [DEBUG] plugin: using plugin: version=5
2020-12-02T10:39:15.755+0530 [DEBUG] plugin.terraform-provider-ibm-12: plugin address: address=/var/folders/_8/xdqn2mpj39dfl7tvvb0r4fx80000gn/T/plugin805345772 network=unix timestamp=2020-12-02T10:39:15.755+0530
2020-12-02T10:39:15.852+0530 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T10:39:15.854+0530 [DEBUG] plugin: plugin process exited: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59345
2020-12-02T10:39:15.855+0530 [DEBUG] plugin: plugin exited
2020/12/02 10:39:15 [INFO] backend/local: apply calling Refresh
2020/12/02 10:39:15 [INFO] terraform: building graph: GraphTypeRefresh
2020/12/02 10:39:15 [DEBUG] adding implicit provider configuration provider.ibm, implied first by ibm_container_alb_cert.cert
2020/12/02 10:39:15 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeRefreshableManagedResource) needs provider.ibm
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.worker_pool_name" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.name" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.region" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.flavor" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.worker_count" references: []
2020/12/02 10:39:15 [DEBUG] ReferenceTransformer: "var.resource_group" references: []
2020/12/02 10:39:15 [DEBUG] Starting graph walk: walkRefresh
2020-12-02T10:39:15.855+0530 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T10:39:15.879+0530 [DEBUG] plugin: starting plugin: path=/Users/kavya/go/bin/terraform-provider-ibm-12 args=[/Users/kavya/go/bin/terraform-provider-ibm-12]
2020-12-02T10:39:15.884+0530 [DEBUG] plugin: plugin started: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59346
2020-12-02T10:39:15.885+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/kavya/go/bin/terraform-provider-ibm-12
2020-12-02T10:39:15.928+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:15 IBM Cloud Provider version 1.16.0  
2020-12-02T10:39:15.932+0530 [INFO]  plugin.terraform-provider-ibm-12: configuring server automatic mTLS: timestamp=2020-12-02T10:39:15.932+0530
2020-12-02T10:39:15.958+0530 [DEBUG] plugin: using plugin: version=5
2020-12-02T10:39:15.958+0530 [DEBUG] plugin.terraform-provider-ibm-12: plugin address: address=/var/folders/_8/xdqn2mpj39dfl7tvvb0r4fx80000gn/T/plugin330734953 network=unix timestamp=2020-12-02T10:39:15.958+0530
2020-12-02T10:39:16.035+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:16 Configuring SoftLayer Session with API key
2020-12-02T10:39:16.035+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:16 Configuring IBM Cloud Session with API key
2020-12-02T10:39:16.035+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:16 [INFO] Configured Region: us-south
2020-12-02T10:39:19.448+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:19 the apiendpoint url for power is us-south.power-iaas.cloud.ibm.com
2020/12/02 10:39:19 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
ibm_container_alb_cert.cert: Refreshing state... [id=bv0amhld0902103nur0g/name]
2020-12-02T10:39:24.271+0530 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T10:39:24.275+0530 [DEBUG] plugin: plugin process exited: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59346
2020-12-02T10:39:24.275+0530 [DEBUG] plugin: plugin exited
2020/12/02 10:39:24 [INFO] backend/local: apply calling Plan
2020/12/02 10:39:24 [INFO] terraform: building graph: GraphTypePlan
2020/12/02 10:39:24 [DEBUG] adding implicit provider configuration provider.ibm, implied first by ibm_container_alb_cert.cert
2020/12/02 10:39:24 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodePlannableResource) needs provider.ibm
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.flavor" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.name" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.region" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.worker_count" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.resource_group" references: []
2020/12/02 10:39:24 [DEBUG] ReferenceTransformer: "var.worker_pool_name" references: []
2020/12/02 10:39:24 [DEBUG] Starting graph walk: walkPlan
2020-12-02T10:39:24.276+0530 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T10:39:24.304+0530 [DEBUG] plugin: starting plugin: path=/Users/kavya/go/bin/terraform-provider-ibm-12 args=[/Users/kavya/go/bin/terraform-provider-ibm-12]
2020-12-02T10:39:24.314+0530 [DEBUG] plugin: plugin started: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59351
2020-12-02T10:39:24.314+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/kavya/go/bin/terraform-provider-ibm-12
2020-12-02T10:39:24.362+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:24 IBM Cloud Provider version 1.16.0  
2020-12-02T10:39:24.365+0530 [INFO]  plugin.terraform-provider-ibm-12: configuring server automatic mTLS: timestamp=2020-12-02T10:39:24.365+0530
2020-12-02T10:39:24.392+0530 [DEBUG] plugin: using plugin: version=5
2020-12-02T10:39:24.392+0530 [DEBUG] plugin.terraform-provider-ibm-12: plugin address: address=/var/folders/_8/xdqn2mpj39dfl7tvvb0r4fx80000gn/T/plugin536288762 network=unix timestamp=2020-12-02T10:39:24.392+0530
2020-12-02T10:39:24.469+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:24 Configuring SoftLayer Session with API key
2020-12-02T10:39:24.469+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:24 Configuring IBM Cloud Session with API key
2020-12-02T10:39:24.469+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:24 [INFO] Configured Region: us-south
2020-12-02T10:39:26.904+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:26 the apiendpoint url for power is us-south.power-iaas.cloud.ibm.com
2020/12/02 10:39:26 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020-12-02T10:39:26.909+0530 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T10:39:26.912+0530 [DEBUG] plugin: plugin process exited: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59351
2020-12-02T10:39:26.912+0530 [DEBUG] plugin: plugin exited

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
2020/12/02 10:39:26 [DEBUG] command: asking for input: "Do you want to perform these actions?"

Terraform will perform the following actions:

  # ibm_container_alb_cert.cert is tainted, so must be replaced
-/+ resource "ibm_container_alb_cert" "cert" {
      + cert_crn               = "crn:v1:bluemix:public:cloudcerts:us-south:a/4448261269a14562b839e0a3019ed980:bd1264ed-8d6b-4d6e-b413-9b794cd79e17:certificate:4845ab630d45fc4609007f1e30db001b"
      + cloud_cert_instance_id = (known after apply)
      + cluster_crn            = (known after apply)
        cluster_id             = "bv0amhld0902103nur0g"
      ~ domain_name            = "*.test41f4-125c973d6e23f6b413519e6e1a527384-0000.us-south.containers.appdomain.cloud" -> (known after apply)
      ~ expires_on             = "1614234767" -> (known after apply)
      ~ id                     = "bv0amhld0902103nur0g/name" -> (known after apply)
      + issuer_name            = (known after apply)
      + region                 = (known after apply)
        secret_name            = "name"
    }

Plan: 1 to add, 0 to change, 1 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

2020/12/02 10:39:52 [INFO] backend/local: apply calling Apply
2020/12/02 10:39:52 [INFO] terraform: building graph: GraphTypeApply
2020/12/02 10:39:52 [DEBUG] adding implicit provider configuration provider.ibm, implied first by ibm_container_alb_cert.cert (prepare state)
2020/12/02 10:39:52 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeApplyableResourceInstance) needs provider.ibm
2020/12/02 10:39:52 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.ibm
2020/12/02 10:39:52 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert (prepare state)" (*terraform.NodeApplyableResource) needs provider.ibm
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert (destroy)" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert (prepare state)" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.name" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.region" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.worker_pool_name" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.flavor" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.worker_count" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.resource_group" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 10:39:52 [DEBUG] adding implicit provider configuration provider.ibm, implied first by ibm_container_alb_cert.cert
2020/12/02 10:39:52 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeAbstractResourceInstance) needs provider.ibm
2020/12/02 10:39:52 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.ibm
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.worker_pool_name" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.worker_count" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.resource_group" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.name" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert (destroy)" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.region" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "var.flavor" references: []
2020/12/02 10:39:52 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 10:39:52 [DEBUG] Starting graph walk: walkApply
2020-12-02T10:39:52.066+0530 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T10:39:52.093+0530 [DEBUG] plugin: starting plugin: path=/Users/kavya/go/bin/terraform-provider-ibm-12 args=[/Users/kavya/go/bin/terraform-provider-ibm-12]
2020-12-02T10:39:52.103+0530 [DEBUG] plugin: plugin started: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59366
2020-12-02T10:39:52.103+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/kavya/go/bin/terraform-provider-ibm-12
2020-12-02T10:39:52.148+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:52 IBM Cloud Provider version 1.16.0  
2020-12-02T10:39:52.151+0530 [INFO]  plugin.terraform-provider-ibm-12: configuring server automatic mTLS: timestamp=2020-12-02T10:39:52.151+0530
2020-12-02T10:39:52.178+0530 [DEBUG] plugin: using plugin: version=5
2020-12-02T10:39:52.178+0530 [DEBUG] plugin.terraform-provider-ibm-12: plugin address: address=/var/folders/_8/xdqn2mpj39dfl7tvvb0r4fx80000gn/T/plugin954434565 network=unix timestamp=2020-12-02T10:39:52.178+0530
2020-12-02T10:39:52.253+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:52 Configuring SoftLayer Session with API key
2020-12-02T10:39:52.253+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:52 Configuring IBM Cloud Session with API key
2020-12-02T10:39:52.253+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:52 [INFO] Configured Region: us-south
2020-12-02T10:39:54.699+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:54 the apiendpoint url for power is us-south.power-iaas.cloud.ibm.com
2020/12/02 10:39:54 [DEBUG] ibm_container_alb_cert.cert: applying the planned Delete change
ibm_container_alb_cert.cert: Destroying... [id=bv0amhld0902103nur0g/name]
2020-12-02T10:39:57.248+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:39:57 [DEBUG] Waiting for state to become: [deleted]
ibm_container_alb_cert.cert: Still destroying... [id=bv0amhld0902103nur0g/name, 10s elapsed]
ibm_container_alb_cert.cert: Destruction complete after 14s
ibm_container_alb_cert.cert: Creating...
2020/12/02 10:40:08 [DEBUG] ibm_container_alb_cert.cert: applying the planned Create change
2020-12-02T10:40:11.900+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:40:11 [DEBUG] Waiting for state to become: [done]
ibm_container_alb_cert.cert: Still creating... [10s elapsed]
2020-12-02T10:40:23.497+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:40:23 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [20s elapsed]
2020-12-02T10:40:35.909+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:40:35 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [30s elapsed]
2020-12-02T10:40:48.085+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:40:48 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [40s elapsed]
ibm_container_alb_cert.cert: Still creating... [50s elapsed]
2020-12-02T10:41:02.090+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:41:02 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [1m0s elapsed]
2020-12-02T10:41:14.372+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:41:14 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [1m10s elapsed]
2020-12-02T10:41:26.922+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:41:26 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [1m20s elapsed]
ibm_container_alb_cert.cert: Still creating... [1m30s elapsed]
2020-12-02T10:41:39.696+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:41:39 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [1m40s elapsed]
2020-12-02T10:41:52.168+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:41:52 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [1m50s elapsed]
2020-12-02T10:42:03.712+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:42:03 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [2m0s elapsed]
2020-12-02T10:42:16.494+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:42:16 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [2m10s elapsed]
ibm_container_alb_cert.cert: Still creating... [2m20s elapsed]
2020-12-02T10:42:29.027+0530 [DEBUG] plugin.terraform-provider-ibm-12: 2020/12/02 10:42:29 [TRACE] Waiting 10s before next try
ibm_container_alb_cert.cert: Still creating... [2m30s elapsed]
ibm_container_alb_cert.cert: Creation complete after 2m35s [id=bv0amhld0902103nur0g/name]
2020-12-02T10:42:43.677+0530 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T10:42:43.681+0530 [DEBUG] plugin: plugin process exited: path=/Users/kavya/go/bin/terraform-provider-ibm-12 pid=59366
2020-12-02T10:42:43.681+0530 [DEBUG] plugin: plugin exited

Apply complete! Resources: 1 added, 0 changed, 1 destroyed.
kavya@Kavyas-MacBook-Pro ~/g/s/g/I/t/e/a/cluster> 

@pauljegouic
Copy link

Sure I have just reproduced. Collecting the DEBUG logs right now.

@hkantare: does you ALB cert resources previsouly existed before the taint ?

@pauljegouic
Copy link

020/12/02 08:31:58 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
  Use TF_LOG=TRACE to see Terraform's internal logs.
  ----
2020/12/02 08:31:58 [INFO] Terraform version: 0.12.26  
2020/12/02 08:31:58 [INFO] Go runtime version: go1.12.13
2020/12/02 08:31:58 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "--auto-approve"}
2020/12/02 08:31:58 [DEBUG] Attempting to open CLI config file: /Users/pjegouic/.terraformrc
2020/12/02 08:31:58 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/12/02 08:31:58 [DEBUG] checking for credentials in "/Users/pjegouic/.terraform.d/plugins"
2020/12/02 08:31:58 [DEBUG] checking for credentials in "/Users/pjegouic/.terraform.d/plugins/darwin_amd64"
2020/12/02 08:31:58 [INFO] CLI command args: []string{"apply", "--auto-approve"}
2020/12/02 08:31:58 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
  Use TF_LOG=TRACE to see Terraform's internal logs.
  ----
2020/12/02 08:31:58 [DEBUG] New state was assigned lineage "4e723cd6-b0e6-a536-6c82-6c9b63490b21"
2020/12/02 08:31:58 [DEBUG] checking for provider in "."
2020/12/02 08:31:58 [DEBUG] checking for provider in "/usr/local/bin"
2020/12/02 08:31:58 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/12/02 08:31:58 [DEBUG] checking for provider in "/Users/pjegouic/.terraform.d/plugins"
2020/12/02 08:31:58 [DEBUG] checking for provider in "/Users/pjegouic/.terraform.d/plugins/darwin_amd64"
2020/12/02 08:31:58 [DEBUG] found provider "terraform-provider-ibm_v1.16.0"
2020/12/02 08:31:58 [DEBUG] found valid plugin: "ibm", "1.16.0", "/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0"
2020/12/02 08:31:58 [DEBUG] checking for provisioner in "."
2020/12/02 08:31:58 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/12/02 08:31:58 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/12/02 08:31:58 [DEBUG] checking for provisioner in "/Users/pjegouic/.terraform.d/plugins"
2020/12/02 08:31:58 [DEBUG] checking for provisioner in "/Users/pjegouic/.terraform.d/plugins/darwin_amd64"
2020/12/02 08:31:58 [INFO] backend/local: starting Apply operation
2020-12-02T08:31:58.357+0100 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T08:31:58.388+0100 [DEBUG] plugin: starting plugin: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 args=[/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0]
2020-12-02T08:31:58.394+0100 [DEBUG] plugin: plugin started: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2879
2020-12-02T08:31:58.394+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0
2020-12-02T08:31:58.436+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:31:58 IBM Cloud Provider version 1.16.0  
2020-12-02T08:31:58.438+0100 [INFO]  plugin.terraform-provider-ibm_v1.16.0: configuring server automatic mTLS: timestamp=2020-12-02T08:31:58.438+0100
2020-12-02T08:31:58.467+0100 [DEBUG] plugin: using plugin: version=5
2020-12-02T08:31:58.467+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: plugin address: network=unix address=/var/folders/xb/xn3q0j493bx5hkw08q26y00c0000gp/T/plugin688202874 timestamp=2020-12-02T08:31:58.467+0100
2020-12-02T08:31:58.561+0100 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T08:31:58.583+0100 [DEBUG] plugin: plugin process exited: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2879
2020-12-02T08:31:58.583+0100 [DEBUG] plugin: plugin exited
2020/12/02 08:31:58 [INFO] terraform: building graph: GraphTypeValidate
2020/12/02 08:31:58 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeValidatableResource) needs provider.ibm
CE] ProviderTransformer: exact match for provider.ibm serving ibm_container_vpc_cluster.cluster
2020/12/02 08:31:58 [DEBUG] ProviderTransformer: "ibm_container_vpc_cluster.cluster" (*terraform.NodeValidatableResource) needs provider.ibm
2020/12/02 08:31:58 [DEBUG] ReferenceTransformer: "ibm_container_vpc_cluster.cluster" references: []
2020/12/02 08:31:58 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: [ibm_container_vpc_cluster.cluster]
2020/12/02 08:31:58 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 08:31:58 [DEBUG] Starting graph walk: walkValidate
2020-12-02T08:31:58.591+0100 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T08:31:58.615+0100 [DEBUG] plugin: starting plugin: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 args=[/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0]
2020-12-02T08:31:58.621+0100 [DEBUG] plugin: plugin started: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2880
2020-12-02T08:31:58.621+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0
2020-12-02T08:31:58.659+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:31:58 IBM Cloud Provider version 1.16.0  
2020-12-02T08:31:58.663+0100 [INFO]  plugin.terraform-provider-ibm_v1.16.0: configuring server automatic mTLS: timestamp=2020-12-02T08:31:58.663+0100
2020-12-02T08:31:58.691+0100 [DEBUG] plugin: using plugin: version=5
2020-12-02T08:31:58.691+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: plugin address: address=/var/folders/xb/xn3q0j493bx5hkw08q26y00c0000gp/T/plugin947499559 network=unix timestamp=2020-12-02T08:31:58.691+0100
2020-12-02T08:31:58.793+0100 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T08:31:58.795+0100 [DEBUG] plugin: plugin process exited: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2880
2020-12-02T08:31:58.795+0100 [DEBUG] plugin: plugin exited
2020/12/02 08:31:58 [INFO] backend/local: apply calling Refresh
2020/12/02 08:31:58 [INFO] terraform: building graph: GraphTypeRefresh
2020/12/02 08:31:58 [DEBUG] ProviderTransformer: "ibm_container_vpc_cluster.cluster" (*terraform.NodeRefreshableManagedResource) needs provider.ibm
2020/12/02 08:31:58 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeRefreshableManagedResource) needs provider.ibm
2020/12/02 08:31:58 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 08:31:58 [DEBUG] ReferenceTransformer: "ibm_container_vpc_cluster.cluster" references: []
2020/12/02 08:31:58 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: [ibm_container_vpc_cluster.cluster]
2020/12/02 08:31:58 [DEBUG] Starting graph walk: walkRefresh
2020-12-02T08:31:58.796+0100 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T08:31:58.819+0100 [DEBUG] plugin: starting plugin: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 args=[/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0]
2020-12-02T08:31:58.824+0100 [DEBUG] plugin: plugin started: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2881
2020-12-02T08:31:58.824+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0
2020-12-02T08:31:58.861+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:31:58 IBM Cloud Provider version 1.16.0  
2020-12-02T08:31:58.864+0100 [INFO]  plugin.terraform-provider-ibm_v1.16.0: configuring server automatic mTLS: timestamp=2020-12-02T08:31:58.864+0100
2020-12-02T08:31:58.891+0100 [DEBUG] plugin: using plugin: version=5
2020-12-02T08:31:58.891+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: plugin address: address=/var/folders/xb/xn3q0j493bx5hkw08q26y00c0000gp/T/plugin903153188 network=unix timestamp=2020-12-02T08:31:58.891+0100
2020-12-02T08:31:58.967+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:31:58 Configuring IBM Cloud Session with API key
2020-12-02T08:31:58.967+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:31:58 [INFO] Configured Region: eu-de
2020-12-02T08:32:04.217+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:04 the apiendpoint url for power is eu-de.power-iaas.cloud.ibm.com
2020/12/02 08:32:04 [DEBUG] ReferenceTransformer: "ibm_container_vpc_cluster.cluster" references: []
2020-12-02T08:32:09.439+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:09 tagList:  []
2020/12/02 08:32:09 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020-12-02T08:32:10.692+0100 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T08:32:10.696+0100 [DEBUG] plugin: plugin process exited: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2881
2020-12-02T08:32:10.696+0100 [DEBUG] plugin: plugin exited
2020/12/02 08:32:10 [INFO] backend/local: apply calling Plan
2020/12/02 08:32:10 [INFO] terraform: building graph: GraphTypePlan
2020/12/02 08:32:10 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodePlannableResource) needs provider.ibm
2020/12/02 08:32:10 [DEBUG] ProviderTransformer: "ibm_container_vpc_cluster.cluster" (*terraform.NodePlannableResource) needs provider.ibm
2020/12/02 08:32:10 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: [ibm_container_vpc_cluster.cluster]
2020/12/02 08:32:10 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 08:32:10 [DEBUG] ReferenceTransformer: "ibm_container_vpc_cluster.cluster" references: []
2020/12/02 08:32:10 [DEBUG] Starting graph walk: walkPlan
2020-12-02T08:32:10.699+0100 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T08:32:10.732+0100 [DEBUG] plugin: starting plugin: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 args=[/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0]
2020-12-02T08:32:10.741+0100 [DEBUG] plugin: plugin started: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2886
2020-12-02T08:32:10.741+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0
2020-12-02T08:32:10.795+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:10 IBM Cloud Provider version 1.16.0  
2020-12-02T08:32:10.798+0100 [INFO]  plugin.terraform-provider-ibm_v1.16.0: configuring server automatic mTLS: timestamp=2020-12-02T08:32:10.798+0100
2020-12-02T08:32:10.830+0100 [DEBUG] plugin: using plugin: version=5
2020-12-02T08:32:10.830+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: plugin address: address=/var/folders/xb/xn3q0j493bx5hkw08q26y00c0000gp/T/plugin216277029 network=unix timestamp=2020-12-02T08:32:10.830+0100
2020-12-02T08:32:10.935+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:10 Configuring IBM Cloud Session with API key
2020-12-02T08:32:10.935+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:10 [INFO] Configured Region: eu-de
2020-12-02T08:32:11.667+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:11 the apiendpoint url for power is eu-de.power-iaas.cloud.ibm.com
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_vpc_cluster.cluster" references: []
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020-12-02T08:32:11.681+0100 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T08:32:11.684+0100 [DEBUG] plugin: plugin process exited: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2886
2020-12-02T08:32:11.684+0100 [DEBUG] plugin: plugin exited
2020/12/02 08:32:11 [INFO] backend/local: apply calling Apply
2020/12/02 08:32:11 [INFO] terraform: building graph: GraphTypeApply
2020/12/02 08:32:11 [DEBUG] ProviderTransformer: "ibm_container_vpc_cluster.cluster (prepare state)" (*terraform.NodeApplyableResource) needs provider.ibm
2020/12/02 08:32:11 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert (prepare state)" (*terraform.NodeApplyableResource) needs provider.ibm
2020/12/02 08:32:11 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeApplyableResourceInstance) needs provider.ibm
2020/12/02 08:32:11 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.ibm
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: [ibm_container_vpc_cluster.cluster (prepare state)]
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert (destroy)" references: []
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_vpc_cluster.cluster (prepare state)" references: []
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert (prepare state)" references: []
2020/12/02 08:32:11 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert" (*terraform.NodeAbstractResourceInstance) needs provider.ibm
2020/12/02 08:32:11 [DEBUG] ProviderTransformer: "ibm_container_alb_cert.cert (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.ibm
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert (destroy)" references: []
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "provider.ibm" references: []
2020/12/02 08:32:11 [DEBUG] ReferenceTransformer: "ibm_container_alb_cert.cert" references: []
2020-12-02T08:32:11.687+0100 [INFO]  plugin: configuring client automatic mTLS
2020-12-02T08:32:11.714+0100 [DEBUG] plugin: starting plugin: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 args=[/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0]
2020-12-02T08:32:11.720+0100 [DEBUG] plugin: plugin started: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2889
2020-12-02T08:32:11.720+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0
2020-12-02T08:32:11.761+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:11 IBM Cloud Provider version 1.16.0  
2020-12-02T08:32:11.766+0100 [INFO]  plugin.terraform-provider-ibm_v1.16.0: configuring server automatic mTLS: timestamp=2020-12-02T08:32:11.766+0100
2020-12-02T08:32:11.793+0100 [DEBUG] plugin: using plugin: version=5
2020-12-02T08:32:11.793+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: plugin address: address=/var/folders/xb/xn3q0j493bx5hkw08q26y00c0000gp/T/plugin050458756 network=unix timestamp=2020-12-02T08:32:11.793+0100
2020-12-02T08:32:11.881+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:11 Configuring IBM Cloud Session with API key
2020-12-02T08:32:11.881+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:11 [INFO] Configured Region: eu-de
2020-12-02T08:32:12.511+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:12 the apiendpoint url for power is eu-de.power-iaas.cloud.ibm.com
2020/12/02 08:32:12 [DEBUG] ibm_container_alb_cert.cert: applying the planned Delete change
2020-12-02T08:32:13.467+0100 [DEBUG] plugin.terraform-provider-ibm_v1.16.0: 2020/12/02 08:32:13 [DEBUG] Waiting for state to become: [deleted]
2020/12/02 08:32:24 [DEBUG] ibm_container_alb_cert.cert: apply errored, but we're indicating that via the Error pointer rather than returning it: unexpected state 'deleting', wanted target 'deleted'. last error: %!s(<nil>)
2020/12/02 08:32:24 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: unexpected state 'deleting', wanted target 'deleted'. last error: %!s(<nil>)
2020/12/02 08:32:24 [ERROR] <root>: eval: *terraform.EvalSequence, err: unexpected state 'deleting', wanted target 'deleted'. last error: %!s(<nil>)
2020/12/02 08:32:24 [ERROR] <root>: eval: *terraform.EvalOpFilter, err: unexpected state 'deleting', wanted target 'deleted'. last error: %!s(<nil>)

Error: unexpected state 'deleting', wanted target 'deleted'. last error: %!s(<nil>)


2020-12-02T08:32:24.120+0100 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-02T08:32:24.124+0100 [DEBUG] plugin: plugin process exited: path=/Users/pjegouic/.terraform.d/plugins/darwin_amd64/terraform-provider-ibm_v1.16.0 pid=2889
2020-12-02T08:32:24.124+0100 [DEBUG] plugin: plugin exited

@pauljegouic
Copy link

NB: the destroy actually works after a failure like this. Because the secret does not exist anymore (even after the error).

Looks like the state provided by IKS is not handled unexpected state 'deleting'

@pauljegouic
Copy link

pauljegouic commented Dec 2, 2020

fixed (much more a workaround, but as discussed) with 1.16.1

thanks team & @hkantare

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

No branches or pull requests

3 participants