-
Notifications
You must be signed in to change notification settings - Fork 22
Error reporting when microgrid API is misconfigured #443
Copy link
Copy link
Open
Labels
part:microgridAffects the interactions with the microgridAffects the interactions with the microgridpriority:lowThis should be addressed only if there is nothing else on the tableThis should be addressed only if there is nothing else on the tabletype:bugSomething isn't workingSomething isn't working
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
part:microgridAffects the interactions with the microgridAffects the interactions with the microgridpriority:lowThis should be addressed only if there is nothing else on the tableThis should be addressed only if there is nothing else on the tabletype:bugSomething isn't workingSomething isn't working
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsTo do
What happened?
We wanted to run some FCR prequalification tests on a set of batteries. These batteries had been moved to a separate instance of the microgrid API. When running the actor, we were unable to start, because we got the error "Component tree is not a graph!". It appears to be thrown from here:
frequenz-sdk-python/src/frequenz/sdk/microgrid/_graph.py
Line 705 in 3565d73
Initially, we could not find anything wrong with the component graph itself, since we verified it using the connections endpoint of the microgrid API. It was then pointed out to us that there existed a component, which was not connected to any other components. After removing this component, the error went away.
What did you expect instead?
Ideally, the error reporting here should be more detailed, to avoid debugging sessions that lead to false conclusions. Something like
component ID #X has no connections and is a dangling componentwould have saved us a lot of effort here.Affected version(s)
v0.20.0
Affected part(s)
Core components (data structures, etc.) (part:core), Microgrid (API, component graph, etc.) (part:microgrid)
Extra information
No response