Skip to content

No longer possible to deploy OCP DA using trusted profile #827

@ocofaigh

Description

@ocofaigh

After migrating from a null_resource script to using ibm_container_api_key_reset in #795 it has been reported that cluster provisioning fails with below error when they deploy the DA using a trusted profile:

2025/10/20 14:28:57 Terraform apply |   with module.ocp_base.ibm_container_vpc_cluster.cluster[0],
 2025/10/20 14:28:57 Terraform apply |   on ../../main.tf line 140, in resource "ibm_container_vpc_cluster" "cluster":
 2025/10/20 14:28:57 Terraform apply |  140: resource "ibm_container_vpc_cluster" "cluster" {
 2025/10/20 14:28:57 Terraform apply | 
 2025/10/20 14:28:57 Terraform apply | ---
 2025/10/20 14:28:57 Terraform apply | id: terraform-40a3a1fe
 2025/10/20 14:28:57 Terraform apply | summary: 'Request failed with status code: 400, ServerErrorResponse:
 2025/10/20 14:28:57 Terraform apply | {"incidentID":"a0701484-1dcf-a82e-90b1-455464f7064c","code":"E3595","description":"The
 2025/10/20 14:28:57 Terraform apply |   entitlement ''cloud_pak'' was not found. Specify ''ocp_entitled'' to search for
 2025/10/20 14:28:57 Terraform apply |   any supported license or entitlement. If no match is found, then you do not have
 2025/10/20 14:28:57 Terraform apply |   a supported license or entitlement.","type":"BadRequest"}'
 2025/10/20 14:28:57 Terraform apply | severity: error
 2025/10/20 14:28:57 Terraform apply | resource: ibm_container_vpc_cluster
 2025/10/20 14:28:57 Terraform apply | operation: create
 2025/10/20 14:28:57 Terraform apply | component:
 2025/10/20 14:28:57 Terraform apply |   name: github.com/IBM-Cloud/terraform-provider-ibm
 2025/10/20 14:28:57 Terraform apply |   version: 1.83.3
 2025/10/20 14:28:57 Terraform apply | ---

The error seems to indicate that there may be an issue using 'cloud_pak' as an entitlement when deploying using a Trusted Profile. We should test this out.

We should also expose a boolean to allow advanced users to skip the ibm_container_api_key_reset as a workaround until the backend race condition is addressed by IKS or until IBM-Cloud/terraform-provider-ibm#6468 is addressed by provider

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions