openbmc / entity-manager

Run-time JSON driven system configuration manager
Other
26 stars 48 forks source link

Physical Topology associations are not generated for late detected Boards. #29

Open dodolee12 opened 1 year ago

dodolee12 commented 1 year ago

If we have two such configurations:

superchassis.json

{
    "Exposes": [
        {
            "Name": "Subchassis Upstream Port",
            "Type": "Subchassis Upstream Port"
        }
    ],
    "Name": "Superchassis",
    "Probe": "TRUE",
    "Type": "Board"
}

subchassis.json:

{
    "Exposes": [
        {
            "ConnectsToType": "Subchassis Upstream Port",
            "Name": "SubChassis Downstream Port",
            "Type": "DownstreamPort"
        }
    ],
    "Name": "Subchassis",
    "Probe": "TRUE",
    "Type": "Board"
}

For some reason if the subchassis is detected late, then the associations between the Boards are not generated.

I can see the Upstream and Downstream ports generated in busctl tree xyz.openbmc.EntityManager, but the associations are not actually added.

If i run systemctl restart xyz.openbmc.EntityManager then associations are added as normal.