[bug] [v2.3.0p27] Systemd Service Summary - ignored services broken

Hi,
I did upgrade to CRE 2.3.0p27 yesterday, but I can’t say there was no problem with my previous version 2.3.0p24.
I added regex pattern for ignoring services fwupd recently. The fwupd-refresh service failed in the past. Today the Systemd Service Summary is in the CRIT state despite the “ignore” pattern. I took a look into systemd_units.py and there is probably a bug

    yield Result(
        state=State(params["states"].get("failed", params["states_default"]))
        if (number_of_failed_units := sum(s.active_status == "failed" for s in units))
        else State.OK,
        summary=f"Failed: {number_of_failed_units:d}",
    )

Failed services are counted from units list, but above is the dictionary services_organised, where excluded services are separated, but this logic is not used in counting.
Regards

Inside the release thread this problem was already discussed.
You can find a workaround mkp there

But in further discussions we found another problem with the systemd summary but there is not the last change the reason.

1 Like

Thanks!, sorry for non satisfactory search on forum :face_with_open_eyes_and_hand_over_mouth: