You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform 13 w/ v1.29.0 IBM Cloud provider (running under schematics)
Affected Resource(s)
ibm_container_addons
Description of Issue:
The IBM Cloud Terraform Provider is unable to upgrade the "vpc-block-csi-driver" addon on VPC Gen 2 clusters. The cloud team releases new versions of this addon over time. These could be bug fixes, feature enhancements or security updates.
If iks_cluster_addons (map) is set to {"vpc-block-csi-driver":"3.0.1"}, but the cluster is running the 3.0.0 level of the plugin, the terraform/schematics apply will fail with an error similar to the message below (this example is executing against a VPC Gen 2 cluster):
2021/08/16 15:38:28 Terraform apply | Error: Request failed with status code: 400, ServerErrorResponse: {"incidentID":"58a21827-6dc7-4557-a38e-77304ceacad4,58a21827-6dc7-4557-a38e-77304ceacad4","code":"Ec98d","description":"The ''vpc-block-csi-driver'' addon is not supported for the given provider. Supported providers are 'vpc-classic', 'vpc-gen2'.","type":"Provisioning"}
2021/08/16 15:38:28 Terraform apply |
2021/08/16 15:38:28 Terraform apply | on cluster/addons.tf line 5, in resource "ibm_container_addons" "addons":
2021/08/16 15:38:28 Terraform apply | 5: resource "ibm_container_addons" "addons" {
The only way we've found to circumvent the problem is to do the following:
Disable vpc-block-csi-driver plugin on cluster manually:
Setting the {"vpc-block-csi-driver":"3.0.1"} to null or "" does not appear to help things move along, similar error messages as per above are displayed during the schematics/terraform apply failure
What we need is a way to specify a requirement to install the addon, but also a way to upgrade it successfully
Adding a feature to automatically disable the addon and enable the addon if a new version is available would resolve this issue, as long as the current version could be updated in the terraform or be excluded moving forward
The IBM documentation appears to indicate disabling and enabling the plugin is the way to update it:
To update the Block Storage for VPC add-on in your cluster, disable the add-on and then re-enable the add-on. You might see a warning that resources or data might be deleted. For the IBM® Cloud Block Storage for Virtual Private Cloud add-on update, PVC creation and app deployment are not disrupted when the add-on is disabled and existing volumes are not impacted.
Terraform Version
Terraform 13 w/ v1.29.0 IBM Cloud provider (running under schematics)
Affected Resource(s)
ibm_container_addons
Description of Issue:
The IBM Cloud Terraform Provider is unable to upgrade the "vpc-block-csi-driver" addon on VPC Gen 2 clusters. The cloud team releases new versions of this addon over time. These could be bug fixes, feature enhancements or security updates.
If
iks_cluster_addons
(map) is set to{"vpc-block-csi-driver":"3.0.1"}
, but the cluster is running the3.0.0
level of the plugin, the terraform/schematics apply will fail with an error similar to the message below (this example is executing against a VPC Gen 2 cluster):The only way we've found to circumvent the problem is to do the following:
vpc-block-csi-driver
plugin on cluster manually:ibmcloud ks cluster addon disable vpc-block-csi-driver --cluster <cluster name>
vpc-block-csi-driver
plugin on cluster manually:ibmcloud ks cluster addon enable vpc-block-csi-driver --cluster <cluster name>
ibmcloud ks cluster addon ls --cluster <cluster name>
var.iks_cluster_addons
is set in our terraform to match the current running version of the plugin on the clusterSample terraform for installing addons:
Sample variables.json:
Additional Notes:
{"vpc-block-csi-driver":"3.0.1"}
tonull
or""
does not appear to help things move along, similar error messages as per above are displayed during the schematics/terraform apply failureTo update the Block Storage for VPC add-on in your cluster, disable the add-on and then re-enable the add-on. You might see a warning that resources or data might be deleted. For the IBM® Cloud Block Storage for Virtual Private Cloud add-on update, PVC creation and app deployment are not disrupted when the add-on is disabled and existing volumes are not impacted.
The text was updated successfully, but these errors were encountered: