Continuing the discussion from Check NTP synchronization status from Python:
I’m getting an error trying to replicate this code. When I attempt to call the GetAll method, I receive this error:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.1121 was not provided by any .service files
I don’t think this error is due to the way the container is setup because I’m able to communicate to systemd via DBus.
Does this have anything to do with the switch from
chrony? I’d like to stick with Python to get the current state of NTP on the system, but if this method is no longer valid would parsing the output from a
chronyc command suffice?