-
Notifications
You must be signed in to change notification settings - Fork 21
Cepheus-CEP multitenancy issue for multi-tenant provider #75
Comments
The configuration you have set (having providers with custom service/servicePath) is for a single tenant on the Cepheus side to access data from two tenants on the Orion side, so you must not enable enable multi-tenant mode for this use case. In multi-tenant mode, Cepheus expects each tenant to have their own configurations. For tenant
For tenant
|
Hello @marcc-orange , I have done the same as you suggested. For tenant
A JSON file having name I observed an The same usecase works fine if I remove I doubt if |
Sorry, but I do not understand what you are trying to do here. I don't think it is possible to make the multi-tenant feature of Cepheus and the service/servicePath feature of providers work at the same time. Here is an example: Suppose you have some entity "Room" on a tenant A (defined by If a Cepheus tenant B attempts to subscribe to an entity "Room" with a provider to If you setup a mechanism where Cepheus tracks its subscriptions across its tenants, how can you garantee no conflicts can occur ? A tenant A and B on Cepheus could then both subscribe to a "Room" from tenant A on Orion, who is updated when a notification occurs ? A or B, or both ? |
I have verified 1-to-1 mapping between Orion and Cepheus tenants as per your comment. The functionality of multi-tenancy is working fine with same service/servicePath in Orion and Cepheus. As you said If there is no documentation for multi-tenancy in Cepheus-CEP, I want to contribute for the same. |
@pooja1pathak Sadly, the The first part to documentation is adding an entry to https://github.com/Orange-OpenSource/fiware-cepheus/blob/master/doc/admin/cep.md to explain that there is a The second part is adding a dedicated
|
I have enabled the multi-tenant profile from application.properties:
spring.profiles.active=multi-tenant
and then uploaded config files having
Fiware-Service
andFiware-ServicePath
inHeaders
withserviceName
,servicePath
inproviders
section as:A
JSON
file having namecep-testservice-testservicepath
is created.I have an entity of
type Room
havingid Room1
in my Orion context broker.These are my orion logs:
And these are my Cepheus-CEP log:
Observations:
notifyContext
is send to Cepheus-CEP from orion.EventIn
NgsiController
throws anEvent processing error
sayingEvent type named 'Room' has not been defined or is not a Map event type, the name 'Room' has not been defined as an event type.
Although if i remove
serviceName
,servicePath
fromproviders
section in configuration, the same request works fine and does not give any error.Should it be concluded that there is no function for handling multi-tenant provider in configuration of multi-tenant Cepheus-CEP?
Issues which I refered are: #60 and #69
The text was updated successfully, but these errors were encountered: