Closed AnishAnil closed 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
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:
data.ibm_org.org: 1 error occurred:
data.ibm_org.org: data.ibm_org.org: ibmcloud_api_key or bluemix_api_key or iam_token and iam_refresh_token must be provided. Please see the documentation on how to configure it
data.ibm_space.space: 1 error occurred:
data.ibm_space.space: data.ibm_space.space: ibmcloud_api_key or bluemix_api_key or iam_token and iam_refresh_token must be provided. Please see the documentation on how to configure it
@hkantare, At simple template can you please provide a sample variables.tf file for reference. Also, Where do you want to specify the version it needs to be upgraded tooo in the template. Further will it upgrade the nodes as well or will it be just the server.
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
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:
data.ibm_org.org: 1 error occurred:
data.ibm_org.org: data.ibm_org.org: Error occured while configuring MCCP service: "Post https://login.ng.bluemix.net/UAALoginServerWAR/oauth/token: read tcp 9.204.13.101:63652->184.31.216.214:443: read: connection reset by peer"
data.ibm_space.space: 1 error occurred:
data.ibm_space.space: data.ibm_space.space: Error occured while configuring MCCP service: "Post https://login.ng.bluemix.net/UAALoginServerWAR/oauth/token: read tcp 9.204.13.101:63652->184.31.216.214:443: read: connection reset by peer"
Its a network connection error please try connecting to different n/w and try once
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