ibm-garage-iteration-zero
ibm-garage-iteration-zero copied to clipboard
Installs fails after cluster and postgresql OCP43
Using branch ocp4
Using all default values.
Set vlan ids, and datacenter in vlans.tfvars
Set name_prefix to csantana2 and region us-east
cluster_type="ocp4"
cluster_exists="false"
name_prefix="csantana2"
resource_group_name="catalyst-demos"
vlan_region="us-east"
postgres_server_exists="false"
After a few minutes it fails with the following the message, but the cluster is "Normal" and postgressql instance also "Active"
module.dev_cluster.ibm_container_cluster.create_cluster[0]: Creation complete after 23m27s [id=bpikmb4w0cnajdhgauug]
module.dev_cluster.data.ibm_container_cluster.config: Refreshing state...
module.dev_cluster.null_resource.oc_login[0]: Creating...
module.dev_cluster.null_resource.oc_login[0]: Provisioning with 'local-exec'...
module.dev_cluster.null_resource.oc_login[0] (local-exec): Executing: ["/bin/sh" "-c" "oc login -u apikey -p <REDACTED> --server=https://c100-e.us-east.containers.cloud.ibm.com:31718 > /dev/null"]
module.dev_cluster.null_resource.oc_login[0] (local-exec): Error from server (InternalError): Internal error occurred: unexpected response: 500
Error: Error running command 'oc login -u apikey -p <REDACTED> --server=https://c100-e.us-east.containers.cloud.ibm.com:31718 > /dev/null': exit status 1. Output: Error from server (InternalError): Internal error occurred: unexpected response: 500
Error: malformed CRN: Error parsing JSON
on .terraform/modules/dev_infrastructure_postgres/cloud-managed/services/postgres/main.tf line 48, in data "ibm_resource_key" "postgresql":
48: data "ibm_resource_key" "postgresql" {
IBM Console view

Trying to the same command manually 5 minutes later the command works
bash-4.4$ oc login -u apikey -p <REDACTED>--server=https://c100-e.us-east.containers.cloud.ibm.com:31718
output
Login successful.
You have access to 55 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default".
Welcome! See 'oc help' to get started.
The best solution is to remove postgres as a dependency for sonarqube