IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 670 forks source link

Cluster Creation fails with Errors #884

Closed AnishAnil closed 4 years ago

AnishAnil commented 4 years ago

I'm using the code provided out of the box from the link below

terraform --version Terraform v0.11.14

We are using IBM Cloud so the latest supported one for testing is the above version only https://github.com/IBM-Cloud/terraform-provider-ibm/tree/master/examples/ibm-cluster-update

Warning: ibm_container_cluster.cluster: "isolation": [DEPRECATED] Use hardware instead Warning: ibm_container_cluster.cluster: "workers": [DEPRECATED] Use worker_num instead.

Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.

data.ibm_space.space: Refreshing state... data.ibm_org.org: Refreshing state...

Getting this error, Can there be changes to the terraform file to accommodate and remove this error message as the upgrade fails

hkantare commented 4 years ago

Can you please share us complete log.... Please use this simple templates https://github.com/Cloud-Schematics/cluster/blob/master/main.tf

AnishAnil commented 4 years ago

The complete Error:


Warning: ibm_container_cluster.cluster: "isolation": [DEPRECATED] Use hardware instead

Warning: ibm_container_cluster.cluster: "workers": [DEPRECATED] Use worker_num instead.

Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.

data.ibm_space.space: Refreshing state... data.ibm_org.org: Refreshing state...

Error: Error refreshing state: 2 errors occurred:

hkantare commented 4 years ago

From the error you have not set the provider argument export IC_API_KEY or declare a provider block with the required attributes please find more information here https://ibm-cloud.github.io/tf-ibm-docs/v0.19.0/ https://ibm-cloud.github.io/tf-ibm-docs/v0.19.0/r/container_cluster.html

AnishAnil commented 4 years ago

I have made the changes but it still fails with the below error:


arning: ibm_container_cluster.cluster: "isolation": [DEPRECATED] Use hardware instead

Warning: ibm_container_cluster.cluster: "workers": [DEPRECATED] Use worker_num instead.

Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.

data.ibm_org.org: Refreshing state... data.ibm_space.space: Refreshing state...

Error: Error refreshing state: 2 errors occurred:


hkantare commented 4 years ago

Its a network connection error please try connecting to different n/w and try once