Skip to content

Unable to Write Data via Wellbore DDMS API (Bad namespace)

Issue Description

I am experiencing an error when attempting to use the Wellbore DDMS API to write data.

Specifically, the wellbore-ddms service is unable to communicate with the wellbore-ddms-worker service.

Steps to Reproduce

  1. When calling the following Rest API
{{WELLBORE_DDMS_API}}/welllogs/:wellLogRecordID/sessions/:sessionID/data
  1. We always have the following error message
{
    "error": [
        "Cannot connect to host wellbore-ddms-worker-service.ddms-wellbore:80 ssl:default [Name or service not known]"
    ]
}

Deployment Context

Both wellbore-ddms and wellbore-ddms-worker services are deployed in the osdu-ddms namespace.

Root Cause Analysis

I suspect the issue comes from misconfigurations in the service definitions or network policies:

  • Environment Variable Misconfiguration:

    In the wellbore-ddms service, the environment variable SERVICE_HOST_WDMS_WORKER is incorrectly referencing the ddms-wellbore namespace instead of the correct namespace osdu-ddms.

  • NetworkPolicy Restriction:

    The wellbore-ddms-worker service’s NetworkPolicy is configured to accept connections only from wellbore-ddms namespace, instead of osdu-ddms.