Closed jason-fox closed 11 months ago
Hmmm, the more I look into this, the more I think it is an Orion/NGSI-v2 bug. This issue is NGSI-v2 only since it isn't an issue for any NGSI-LD brokers.
Specifically, if I have a registration on Entity:XXX
for attribute ZZZ
, then a local instance shouldn't be necessary within Orion. It is really, really weird that Orion allows me to GET the device, but I can't actuate the device with a PUT/PATCH because "it doesn't exist" because it damn well does exist - I can see it with a GET. What doesn't exist at this point is local state data in Orion itself.
Orion should be updated to allow the forwarding of a patch on an attr if an attr is registered regardless of whether data is held within the CB. Then this issue disappears - Orion would work like any NGSI-LD broker already does.
IMHO this could be a bug for orion, but not an iotagent bug. Your flow works fine when I include '?type=Belll'
curl -L -X PUT 'http://localhost:10026/v2/entities/Bell:001/attrs/ring?type=Bell' -H 'fiware-service: smartcity' -H 'fiware-servicepath: /' -H 'Content-Type: application/json' -d '{
"type" : "command",
"value" : "2"
}'
This issue should be transfer to orion repository.
This bug impacts both Orion and IoTAs. I just created an issue in the Orion repo: https://github.com/telefonicaid/fiware-orion/issues/4430 describing the problem related with the CPrs and registrations.
If no PR or fix in iotas are expected this issue should be closed here.
I understand that documentation improvements (to explain that an entity needs to be provisioned while https://github.com/telefonicaid/fiware-orion/issues/4430 stills in order the commands mechanism to work) is part of #1465. In that case, I agree in closing this issue.
IoT Agent Node Lib version the issue has been seen with
3.2.0
Bound or port used (API interaction)
Southbound (Devices data API), Northbound (Provision API and NGSI Interactions)
NGSI version
NGSIv2
Are you running a container?
Yes, I am using a container (Docker, Kubernetes...)
Image type
normal
Expected behaviour you didn't see
This is a result of #1421 -specifically the removal of the intial Entity.
When I create a Group
and provision an actuator:
No Entity is created in the context broker.
Unexpected behaviour you saw
Sincent he initial insert of an Entity has been removed, so
is just returning:
However, I cannot PUT or PATCH an Entity with Orion
is returning:
Steps to reproduce the problem
No response
Configs
Log output
No response