terraform-ibm-modules / terraform-ibm-cluster

Terraform modules to create and work with IBM Kubernetes cluster & Red Hat OpenShift Kubernetes cluster on IBM Cloud (Classic, VPC)
https://cloud.ibm.com/docs/containers
Apache License 2.0
11 stars 33 forks source link

Error: error latching monitoring instance to cluster #85

Open lionelmace opened 3 years ago

lionelmace commented 3 years ago

When running this tf script, I face the following error:

Error: error latching monitoring instance to cluster: Request failed with status code: 409, ServerErrorResponse: {"incidentID":"6d0670fe-d449-4b2b-aa15-59883a643d13,6d0670fe-d449-4b2b-aa15-59883a643d13","code":"S0013","description":"A logging or monitoring configuration for this cluster already exists. To use a different configuration, delete the existing configuration and try again.","type":"General"}
│
│   with module.kubernetes_sysdig_attach.ibm_ob_monitoring.sysdig,
│   on .terraform/modules/kubernetes_sysdig_attach/modules/configure-sysdig-monitor/main.tf line 6, in resource "ibm_ob_monitoring" "sysdig":
│    6: resource "ibm_ob_monitoring" "sysdig" {

Should the module configure-sysdig-monitor check whether or not there is already a Sysdig instance attached to the cluster?

VaishnaviGopal commented 3 years ago

Hi @lionelmace, Currently IBM Cloud Provider doesn't support ob_logging, ob_monitoring datasources. Once there is a datasource to get/check the details of a logging or monitoring instance.. we can modify the configure-sysdig-monitor module accordingly.