Skip to content

ConfigFile possibly incomplete for ES clients #67

@kmohr-soprasteria

Description

@kmohr-soprasteria

Problem:
The interface.yaml of p1ResolveEsAddress contains an output attribute for the service-records-policy.
This is to be filled from the es-client specified in the variables file.

interface.yaml:
------------------
service-records-policy:
  type: string
  description: >
    'Service records policy
    from [/resolve-es-address/es-client/logical-termination-point/layer-protocol=0/elasticsearch-client-interface-1-0:elasticsearch-client-interface-pac/elasticsearch-client-interface-configuration/service-records-policy]'

variables.yaml:
------------------
es-client:
  type: object
  description: >
    'ElasticSearch client LTP object
    from [/resolve-es-address/config-file/core-model-1-4:control-construct/logical-termination-point=es-client-uuid]'

In the configFile the service-records-policy attribute seems to be missing, see e.g.:

{
  "uuid": "dpmdp-1-0-0-es-c-es-1-0-0-007",
  "ltp-direction": "core-model-1-4:TERMINATION_DIRECTION_SINK",
  "client-ltp": [],
  "server-ltp": [
    "dpmdp-1-0-0-http-c-es-1-0-0-000"
  ],
  "layer-protocol": [
    {
      "local-id": "0",
      "layer-protocol-name": "elasticsearch-client-interface-1-0:LAYER_PROTOCOL_NAME_TYPE_ELASTICSEARCH_LAYER",
      "elasticsearch-client-interface-1-0:elasticsearch-client-interface-pac": {
        "elasticsearch-client-interface-configuration": {
          "auth": {
            "api-key": "API key not yet defined."
          },
          "index-alias": "7"
        },
        "elasticsearch-client-interface-status": {
          "operational-state": "elasticsearch-client-interface-1-0:OPERATIONAL_STATE_TYPE_NOT_YET_DEFINED",
          "life-cycle-state": "elasticsearch-client-interface-1-0:LIFE_CYCLE_STATE_TYPE_NOT_YET_DEFINED"
        }
      }
    }
  ]
},

Solution:
The configFile is generated by a configFile generator tool. This tool should also cover the missing service-records-policy attribute.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions