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
- When calling the following Rest API
{{WELLBORE_DDMS_API}}/welllogs/:wellLogRecordID/sessions/:sessionID/data
- 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 variableSERVICE_HOST_WDMS_WORKER
is incorrectly referencing theddms-wellbore
namespace instead of the correct namespaceosdu-ddms
. -
NetworkPolicy Restriction:
The
wellbore-ddms-worker
service’s NetworkPolicy is configured to accept connections only fromwellbore-ddms
namespace, instead ofosdu-ddms
.