Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orionld fiware-servicepath is not segregating data #1610

Open
tonyrosset opened this issue May 6, 2024 · 1 comment
Open

orionld fiware-servicepath is not segregating data #1610

tonyrosset opened this issue May 6, 2024 · 1 comment
Assignees
Labels

Comments

@tonyrosset
Copy link

orion:
labels:
org.fiware: 'twinair'
image: fiware/orion-ld:1.5.0
restart: unless-stopped
hostname: orion
container_name: fiware-orion
depends_on:

  • mongo-db
    networks:
  • default
    ports:
  • "${EXPOSED_PORT}:${ORION_LD_PORT}" # localhost:1026
    environment:
  • ORIONLD_MULTI_SERVICE=TRUE
    command: -dbhost mongo-db -logLevel DEBUG -forwarding -t 0-255
    healthcheck:
    test: curl --fail -s http://orion:${ORION_LD_PORT}/version || exit 1
    interval: 5s

even after opening the multi service, the data are not stored in specified servicepath instead at the default path "/"
Screenshot 2024-05-06 130530

@kzangeli kzangeli self-assigned this May 9, 2024
@kzangeli
Copy link
Collaborator

kzangeli commented May 9, 2024

Hello,

there seems to be some confusion about Service and ServicePath.
First, those terms are NGSIv2. In NGSI-LD the features are called Tenant (Service) and Scope (ServicePath).
The HTTP headers used in NGSI-LD are:

  • NGSILD-Tenant (FIWARE-Service)
  • NGSILD-Scope (FIWARE-ServicePath)

Orion-LD does still support the old NGSIv2 names for backwards compatibility with NGSIv2.

"tenant" is about separating database collections in different databases while "scope" is about putting entities in a hierarchy.

Two important notes:

  • For NGSI-LD requests, the NGSILD Scope feature hasn't been implemented yet in Orion-LD. Sorry, not very high up on the ToDo list.
  • You have to start Orion-LD (just like orion) with the CLI option -multiservice for the NGSILD-Tenant header to be taken into consideration. It is silently ignored otherwise (also backwards compatibility with NGSIv2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants