fledge-iot / fledge-service-dispatcher

Dispatcher service is responsible for dispatching control messages between Fledge services.
0 stars 0 forks source link

Control pipeline remains active when disabled. Only stops when deleted. #43

Open jude-adam opened 10 months ago

jude-adam commented 10 months ago

The control pipeline continues running after disabled, even after a restart of Fledge.

Log after disabling pipeline and after restart (Control pipeline filter still being used)

Nov 6 15:02:09 GRIDCORE-002 Fledge south61[97423]: DEBUG: This service 'south61' has AuthenticatedCaller flag set 0 caller service is scheduler-north, type Northbound

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: INFO: Control filter pipeline 104pivotcontrol removed control request

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: iec104_pivot_filter - IEC104PivotFilter::ingest - converted Reading: ({"asset_code":"IEC104Command","user_ts":"2023-11-06 15:02:09.010429+00:00","ts":"2023-11-06 15:02:09.010429+00:00","reading":{}})

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: ERROR: iec104_pivot_filter - IEC104PivotFilter::ingest - Failed to convert Pivot operation object

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: ERROR: iec104_pivot_filter - IEC104PivotFilter::convertReadingToIEC104OperationObject - Failed to convert pivot operation object: No pivot object

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: iec104_pivot_filter - IEC104PivotFilter::ingest - original Reading: ({"asset_code":"PivotCommand","user_ts":"2023-11-06 15:02:09.010429+00:00","ts":"2023-11-06 15:02:09.010429+00:00","reading":{"PIVOTTC":"{\"GTIC\":{\"ComingFrom\":\"iec61850\", \"ApcTyp\":{\"q\":{\"test\":0}, \"t\":{\"SecondSinceEpoch\":1699282929, \"FractionOfSecond\":134217}, \"ctlVal\":7.0}, \"Identifier\":\"TS1\"}}"}})

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: Filtering control request for piepline '104pivotcontrol', {"asset_code":"PivotCommand","user_ts":"2023-11-06 15:02:09.010429+00:00","ts":"2023-11-06 15:02:09.010429+00:00","reading":{"PIVOTTC":"{\"GTIC\":{\"ComingFrom\":\"iec61850\", \"ApcTyp\":{\"q\":{\"test\":0}, \"t\":{\"SecondSinceEpoch\":1699282929, \"FractionOfSecond\":134217}, \"ctlVal\":7.0}, \"Identifier\":\"TS1\"}}"}}

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: INFO: Using shared context for control pipeline '104pivotcontrol' from 'Any' to 'Broadcast'

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: 104pivotcontrol matches pipelines for source Any to destination (ANY) Broadcast

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: Parameter: PIVOTTC is {"GTIC":{"ComingFrom":"iec61850", "ApcTyp":{"q":{"test":0}, "t":{"SecondSinceEpoch":1699282929, "FractionOfSecond":134217}, "ctlVal":7.0}, "Identifier":"TS1"}}

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: verifyURL 'scheduler-north', type 'Northbound', the ACL is not set: allow any URL from any service type

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: verifyService 'scheduler-north', type 'Northbound', the ACL is not set: allow any service

Nov 6 15:02:09 GRIDCORE-002 Fledge dispatcher[97415]: DEBUG: Service 'dispatcher' has AuthenticatedCaller flag set 1

Configuration: pipelineissue-02

MarkRiddoch commented 9 months ago

A fix for this is now in the develop branch and will be included in the next release

MarkRiddoch commented 5 months ago

I beleive this issue is now resolved. Can we close this issue?

aklira commented 5 months ago

Hi Mark, I think you can close this issue.

FlorentP42 commented 3 months ago

This seems fixed in Fledge 2.4.0