Reboot required before landscape-client device available in backend

Hello,

I am working on getting devices to auto-connect to landscape-client.

I have added this configuration to the gadget yaml:

defaults:
  ffnH0sJpX3NFAclH777M8BdXIWpo93af:
    landscape-url: "https://landscape.canonical.com"
    account-name: "$OUR_ACCOUNT_NAME"
    registration-key: "$OUR_REGISTRATION_KEY"
    log-level: debug
    auto-register:
      enabled: true
      computer-title-pattern: ${serial}
      wait-for-serial-as: true

First booting the device, it shows up in the Serial Vault: image

However, it doesn’t seem to come online on the landscape UI.

In the landscape-client logs on the device I see some mention of servers and registration, but after some initial logs the logs stay silent:

landscape-client logs first boot new device

$ snap logs landscape-client -nall -f 2024-07-17T12:57:26Z systemd[1]: Started Service for snap application landscape-client.landscape-client. 2024-07-17T12:57:28Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:28,997 INFO [MainThread] Watchdog watching for daemons. 2024-07-17T12:57:32Z python3[2396]: looking for plugins in ‘/usr/lib/x86_64-linux-gnu/sasl2’, failed to open directory, error: No such file or directory 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,586 INFO [MainThread] Manager started with config /etc/landscape-client.conf 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,587 DEBUG [MainThread] Started firing run. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,587 DEBUG [MainThread] Finished firing run. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,673 INFO [MainThread] Broker started with config /etc/landscape-client.conf 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,681 DEBUG [MainThread] Started firing run. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,681 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._get_juju_data() for run with priority 0. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,681 DEBUG [MainThread] Finished firing run. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,784 INFO [MainThread] Registering plugin landscape.client.manager.processkiller.ProcessKiller. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,785 INFO [MainThread] Registering plugin landscape.client.manager.usermanager.UserManager. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,802 INFO [MainThread] Registering plugin landscape.client.manager.shutdownmanager.ShutdownManager. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,803 INFO [MainThread] Registering plugin landscape.client.manager.hardwareinfo.HardwareInfo. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,804 INFO [MainThread] Registering plugin landscape.client.manager.keystonetoken.KeystoneToken. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,804 INFO [MainThread] Registering plugin landscape.client.manager.snapmanager.SnapManager. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,809 INFO [MainThread] Registering plugin landscape.client.manager.snapservicesmanager.SnapServicesManager. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,809 INFO [MainThread] Registering plugin landscape.client.manager.scriptexecution.ScriptExecution. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,815 DEBUG [MainThread] delaying start of landscape.client.manager.hardwareinfo.HardwareInfo for 4164 seconds 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,815 DEBUG [MainThread] delaying start of landscape.client.manager.snapmanager.SnapManager for 26 seconds 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,820 DEBUG [MainThread] delaying start of landscape.client.manager.customgraph.CustomGraphPlugin for 6 seconds 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,884 INFO [MainThread] Monitor started with config /etc/landscape-client.conf 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,885 DEBUG [MainThread] Started firing run. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,886 DEBUG [MainThread] Finished firing run. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,887 INFO [MainThread] Registering plugin landscape.client.monitor.activeprocessinfo.ActiveProcessInfo. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,887 INFO [MainThread] Registering plugin landscape.client.monitor.computerinfo.ComputerInfo. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,887 INFO [MainThread] Registering plugin landscape.client.monitor.loadaverage.LoadAverage. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,888 INFO [MainThread] Registering plugin landscape.client.monitor.memoryinfo.MemoryInfo. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,888 INFO [MainThread] Registering plugin landscape.client.monitor.mountinfo.MountInfo. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,888 INFO [MainThread] Registering plugin landscape.client.monitor.processorinfo.ProcessorInfo. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,888 INFO [MainThread] Registering plugin landscape.client.monitor.temperature.Temperature. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,889 INFO [MainThread] Registering plugin landscape.client.monitor.usermonitor.UserMonitor. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,889 INFO [MainThread] Registering plugin landscape.client.monitor.rebootrequired.RebootRequired. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,889 INFO [MainThread] Registering plugin landscape.client.monitor.networkactivity.NetworkActivity. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,889 INFO [MainThread] Registering plugin landscape.client.monitor.networkdevice.NetworkDevice. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,890 INFO [MainThread] Registering plugin landscape.client.monitor.cpuusage.CPUUsage. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,890 INFO [MainThread] Registering plugin landscape.client.monitor.swiftusage.SwiftUsage. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,890 INFO [MainThread] Registering plugin landscape.client.monitor.cephusage.CephUsage. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,891 INFO [MainThread] Registering plugin landscape.client.monitor.computertags.ComputerTags. 2024-07-17T12:57:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,891 INFO [MainThread] Registering plugin landscape.client.monitor.snapservicesmonitor.SnapServicesMonitor. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,894 DEBUG [MainThread] delaying start of landscape.client.monitor.mountinfo.MountInfo for 23 seconds 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,895 DEBUG [MainThread] delaying start of landscape.client.monitor.usermonitor.UserMonitor for 269 seconds 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,896 DEBUG [MainThread] delaying start of landscape.client.monitor.rebootrequired.RebootRequired for 15 seconds 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,896 DEBUG [MainThread] delaying start of landscape.client.monitor.networkactivity.NetworkActivity for 1 seconds 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:32,896 DEBUG [MainThread] delaying start of landscape.client.monitor.swiftusage.SwiftUsage for 0 seconds 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:57:38,352 INFO [MainThread] This machine does not appear to be a Swift machine. Deactivating plugin. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:02,891 INFO [MainThread] This machine does not appear to be a Ceph machine. Deactivating plugin. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,685 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,685 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for impending-exchange with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,687 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,688 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,689 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,689 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,690 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,692 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,693 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,693 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:22,703 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,685 DEBUG [MainThread] Started firing pre-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,685 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._handle_pre_exchange() for pre-exchange with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,686 DEBUG [MainThread] Finished firing pre-exchange. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,687 INFO [MainThread] Starting urgent message exchange with https://landscape.canonical.com/message-system. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,688 DEBUG [PoolThread-twisted.internet.reactor-0] Sending payload: 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: {‘accepted-types’: b’\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04\xe9\x80\t\x98\xec\xf8B~‘, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘client-accepted-types’: [‘accepted-types’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘add-group’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘add-group-member’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘add-user’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘custom-graph-add’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘custom-graph-remove’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘edit-group’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘edit-user’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘execute-script’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘hold-snaps’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘install-snaps’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘lock-user’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘refresh-snaps’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘registration’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘remove-group’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘remove-group-member’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘remove-snaps’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘remove-user’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘restart-snap-service’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘restart-snap-service-batch’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘resynchronize’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘set-id’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘set-intervals’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘set-snap-config’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘shutdown’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘signal-process’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘start-snap-service’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘start-snap-service-batch’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘stop-snap-service’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘stop-snap-service-batch’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘unhold-snaps’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘unknown-id’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘unlock-user’], 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘client-api’: b’3.8’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘messages’: [], 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘next-expected-sequence’: 0, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘sequence’: 0, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘server-api’: b’3.2’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘total-messages’: 0} 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,794 INFO [PoolThread-twisted.internet.reactor-0] Sent 766 bytes and received 145 bytes in 0.11s. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,794 DEBUG [PoolThread-twisted.internet.reactor-0] Received payload: 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: {‘messages’: [{‘type’: ‘accepted-types’, ‘types’: [‘register’, ‘test’]}], 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘server-api’: ‘3.3’, 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: ‘server-uuid’: b’…'} 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,795 INFO [MainThread] Switching to normal exchange mode. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,795 INFO [MainThread] Server UUID changed (old=None, new=af6f2dcf-1967-11de-8dd0-001a4b4d8d10). 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,796 DEBUG [MainThread] Started firing server-uuid-changed. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,796 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for server-uuid-changed with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,796 DEBUG [MainThread] Finished firing server-uuid-changed. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,796 DEBUG [MainThread] Started firing message. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,796 DEBUG [MainThread] Calling landscape.client.broker.ping.Pinger._handle_set_intervals() for message with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,797 DEBUG [MainThread] Calling landscape.client.broker.server.BrokerServer.broadcast_message() for message with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,797 DEBUG [MainThread] Finished firing message. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,797 INFO [MainThread] Accepted types changed: +register +test 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,797 DEBUG [MainThread] Started firing message-type-acceptance-changed. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,797 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for message-type-acceptance-changed with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,798 DEBUG [MainThread] Finished firing message-type-acceptance-changed. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,798 DEBUG [MainThread] Started firing message-type-acceptance-changed. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,798 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for message-type-acceptance-changed with priority 0. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,798 DEBUG [MainThread] Finished firing message-type-acceptance-changed. 2024-07-17T12:58:32Z landscape-client.landscape-client[2192]: 2024-07-17 12:58:32,799 DEBUG [MainThread] Started firing exchange-done.

I waited for 10 minutes until after the last log to see if anything happens, and then restarted the device.

On reboot the device comes online pretty quickly. The logs:

landscape-client logs second boot new device

$ snap logs landscape-client -f -nall 2024-07-17T13:08:51Z systemd[1]: Started Service for snap application landscape-client.landscape-client. 2024-07-17T13:08:57Z landscape-client.landscape-client[694]: 2024-07-17 13:08:57,863 INFO [MainThread] Watchdog watching for daemons. 2024-07-17T13:08:59Z python3[858]: looking for plugins in ‘/usr/lib/x86_64-linux-gnu/sasl2’, failed to open directory, error: No such file or directory 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,852 INFO [MainThread] Monitor started with config /etc/landscape-client.conf 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,863 DEBUG [MainThread] Started firing run. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,863 DEBUG [MainThread] Finished firing run. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,923 INFO [MainThread] Manager started with config /etc/landscape-client.conf 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,928 DEBUG [MainThread] Started firing run. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,928 DEBUG [MainThread] Finished firing run. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,958 INFO [MainThread] Broker started with config /etc/landscape-client.conf 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,959 DEBUG [MainThread] Started firing run. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,959 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._get_juju_data() for run with priority 0. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:08:59,960 DEBUG [MainThread] Finished firing run. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,012 INFO [MainThread] Registering plugin landscape.client.manager.processkiller.ProcessKiller. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,012 INFO [MainThread] Registering plugin landscape.client.manager.usermanager.UserManager. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,014 INFO [MainThread] Registering plugin landscape.client.manager.shutdownmanager.ShutdownManager. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,015 INFO [MainThread] Registering plugin landscape.client.manager.hardwareinfo.HardwareInfo. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,016 INFO [MainThread] Registering plugin landscape.client.manager.keystonetoken.KeystoneToken. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,017 INFO [MainThread] Registering plugin landscape.client.manager.snapmanager.SnapManager. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,018 INFO [MainThread] Registering plugin landscape.client.manager.snapservicesmanager.SnapServicesManager. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,019 INFO [MainThread] Registering plugin landscape.client.manager.scriptexecution.ScriptExecution. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,027 DEBUG [MainThread] delaying start of landscape.client.manager.hardwareinfo.HardwareInfo for 3374 seconds 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,027 DEBUG [MainThread] delaying start of landscape.client.manager.snapmanager.SnapManager for 6 seconds 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,028 DEBUG [MainThread] delaying start of landscape.client.manager.customgraph.CustomGraphPlugin for 13 seconds 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,064 INFO [MainThread] Registering plugin landscape.client.monitor.activeprocessinfo.ActiveProcessInfo. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,065 INFO [MainThread] Registering plugin landscape.client.monitor.computerinfo.ComputerInfo. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,066 INFO [MainThread] Registering plugin landscape.client.monitor.loadaverage.LoadAverage. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,066 INFO [MainThread] Registering plugin landscape.client.monitor.memoryinfo.MemoryInfo. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,067 INFO [MainThread] Registering plugin landscape.client.monitor.mountinfo.MountInfo. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,067 INFO [MainThread] Registering plugin landscape.client.monitor.processorinfo.ProcessorInfo. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,068 INFO [MainThread] Registering plugin landscape.client.monitor.temperature.Temperature. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,068 INFO [MainThread] Registering plugin landscape.client.monitor.usermonitor.UserMonitor. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,070 INFO [MainThread] Registering plugin landscape.client.monitor.rebootrequired.RebootRequired. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,070 INFO [MainThread] Registering plugin landscape.client.monitor.networkactivity.NetworkActivity. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,071 INFO [MainThread] Registering plugin landscape.client.monitor.networkdevice.NetworkDevice. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,071 INFO [MainThread] Registering plugin landscape.client.monitor.cpuusage.CPUUsage. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,072 INFO [MainThread] Registering plugin landscape.client.monitor.swiftusage.SwiftUsage. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,072 INFO [MainThread] Registering plugin landscape.client.monitor.cephusage.CephUsage. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,073 INFO [MainThread] Registering plugin landscape.client.monitor.computertags.ComputerTags. 2024-07-17T13:09:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,073 INFO [MainThread] Registering plugin landscape.client.monitor.snapservicesmonitor.SnapServicesMonitor. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,080 DEBUG [MainThread] delaying start of landscape.client.monitor.mountinfo.MountInfo for 23 seconds 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,082 DEBUG [MainThread] delaying start of landscape.client.monitor.usermonitor.UserMonitor for 215 seconds 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,083 DEBUG [MainThread] delaying start of landscape.client.monitor.rebootrequired.RebootRequired for 41 seconds 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,084 DEBUG [MainThread] delaying start of landscape.client.monitor.networkactivity.NetworkActivity for 0 seconds 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:00,084 DEBUG [MainThread] delaying start of landscape.client.monitor.swiftusage.SwiftUsage for 0 seconds 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:05,201 INFO [MainThread] This machine does not appear to be a Swift machine. Deactivating plugin. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:30,073 INFO [MainThread] This machine does not appear to be a Ceph machine. Deactivating plugin. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,962 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,962 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for impending-exchange with priority 0. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,964 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,965 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,965 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,965 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,967 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,968 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,968 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,968 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:49,969 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:59,962 DEBUG [MainThread] Started firing pre-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:09:59,962 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._handle_pre_exchange() for pre-exchange with priority 0. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:10:00,014 INFO [MainThread] Queueing message to register with account ‘$MY_ACCOUNT’ with a password. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:10:00,015 DEBUG [MainThread] Finished firing pre-exchange. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:10:00,017 INFO [MainThread] Starting urgent message exchange with https://landscape.canonical.com/message-system. 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 2024-07-17 13:10:00,021 DEBUG [PoolThread-twisted.internet.reactor-0] Sending payload: 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: {‘accepted-types’: b’\xbfx\xda\xf36\x9bK\x84\xe5P\x07p\xd7\x97\xf6\xb0’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘client-accepted-types’: [‘accepted-types’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘add-group’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘add-group-member’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘add-user’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘custom-graph-add’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘custom-graph-remove’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘edit-group’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘edit-user’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘execute-script’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘hold-snaps’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘install-snaps’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘lock-user’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘refresh-snaps’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘registration’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘remove-group’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘remove-group-member’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘remove-snaps’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘remove-user’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘restart-snap-service’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘restart-snap-service-batch’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘resynchronize’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘set-id’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘set-intervals’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘set-snap-config’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘shutdown’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘signal-process’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘start-snap-service’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘start-snap-service-batch’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘stop-snap-service’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘stop-snap-service-batch’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘unhold-snaps’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘unknown-id’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘unlock-user’], 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘client-api’: b’3.8’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘messages’: [{‘account_name’: ‘$MY_ACCOUNT’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘api’: b’3.3’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘computer_title’: ‘c40e85f8-1173-11ea-87ce-24418c038a3a’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘container-info’: ‘’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘hostname’: ‘c40e85f8-1173-11ea-87ce-24418c038a3a’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘registration_password’: ‘$MY_REGISTRATION_KEY’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘tags’: None, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘timestamp’: 1721221800, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘type’: ‘register’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘ubuntu_pro_info’: '{“_doc”: “Content provided in json response ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 'is currently considered Experimental and ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 'may change”, “_schema_version”: “0.1”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“account”: {“created_at”: “”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“external_account_ids”: [], “id”: “”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“name”: “”}, “attached”: false, “config”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '{“contract_url”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“https://contracts.canonical.com”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“data_dir”: “/var/lib/ubuntu-advantage”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“log_file”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“/var/log/ubuntu-advantage.log”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“log_level”: “debug”, “security_url”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“Security | Ubuntu”, “ua_config”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '{“apt_news”: false, “apt_news_url”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“https://motd.ubuntu.com/aptnews.json”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“global_apt_http_proxy”: null, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“global_apt_https_proxy”: null, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“http_proxy”: null, “https_proxy”: null, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“metering_timer”: 14400, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“ua_apt_http_proxy”: null, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“ua_apt_https_proxy”: null, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“update_messaging_timer”: 21600}}, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“config_path”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“/etc/ubuntu-advantage/uaclient.conf”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“contract”: {“created_at”: “”, “id”: “”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“name”: “”, “products”: [“landscape”], ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“tech_support_level”: “n/a”}, “effective”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“2024-07-17T13:10:00.014430+00:00”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“environment_vars”: [], “errors”: [], ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“execution_details”: “No Ubuntu Pro ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 'operations are running”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“execution_status”: “inactive”, “expires”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“2024-08-16T13:10:00.014430+00:00”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: '“features”: {}, “machine_id”: null, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘“notices”: [], “result”: “success”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘“services”: [{“available”: “yes”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘“description”: “Management and ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: 'administration tool for Ubuntu”, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘“description_override”: null, “name”: ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘“landscape”}], “simulated”: false, ’ 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘“version”: “31.1”, “warnings”: []}’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘vm-info’: b’kvm’}], 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘next-expected-sequence’: 1, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘sequence’: 0, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘server-api’: b’3.3’, 2024-07-17T13:10:00Z landscape-client.landscape-client[694]: ‘total-messages’: 1} 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,437 INFO [PoolThread-twisted.internet.reactor-0] Sent 2495 bytes and received 206 bytes in 1.42s. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,439 DEBUG [PoolThread-twisted.internet.reactor-0] Received payload: 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: {‘messages’: [{‘id’: b’Ejtavrqub6NHgGsMvvRhHudjX66rc4MfJp37G9bh4b0LXWszUphLRlGN’ 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: b’b33c1tfV’, 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: ‘insecure-id’: 56172038, 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: ‘type’: ‘set-id’}], 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: ‘server-api’: ‘3.3’, 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: ‘server-uuid’: b’af6f2dcf-1967-11de-8dd0-001a4b4d8d10’} 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,442 INFO [MainThread] Switching to normal exchange mode. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,442 DEBUG [MainThread] Started firing message. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,442 DEBUG [MainThread] Calling landscape.client.broker.ping.Pinger._handle_set_intervals() for message with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,442 DEBUG [MainThread] Calling landscape.client.broker.server.BrokerServer.broadcast_message() for message with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Finished firing message. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 INFO [MainThread] Using new secure-id ending with GNb33c1tfV for account $MY_ACCOUNT. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Using new secure-id: … 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Started firing registration-done. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Finished firing registration-done. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Started firing resynchronize-clients. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Calling landscape.client.broker.exchange.MessageExchange._resynchronize() for resynchronize-clients with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for resynchronize-clients with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,443 DEBUG [MainThread] Finished firing resynchronize-clients. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,444 DEBUG [MainThread] Started firing exchange-done. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,444 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._handle_exchange_done() for exchange-done with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,444 DEBUG [MainThread] Finished firing exchange-done. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,444 INFO [MainThread] Message exchange completed in 1.43s. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Started firing resynchronize. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,445 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,446 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,446 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,446 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,446 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:01Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,446 DEBUG [MainThread] Finished firing resynchronize. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,447 DEBUG [MainThread] Started firing resynchronize. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,447 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,447 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,447 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,447 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,447 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.monitor.usermonitor.UserMonitor._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,448 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,449 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,449 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,449 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClientPlugin._resynchronize() for resynchronize with priority 0. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,451 DEBUG [MainThread] delaying start of landscape.client.manager.hardwareinfo.HardwareInfo for 6479 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,452 DEBUG [MainThread] delaying start of landscape.client.manager.snapmanager.SnapManager for 42 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,452 DEBUG [MainThread] delaying start of landscape.client.manager.customgraph.CustomGraphPlugin for 26 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,452 DEBUG [MainThread] Finished firing resynchronize. 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,456 DEBUG [MainThread] delaying start of landscape.client.monitor.mountinfo.MountInfo for 14 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,456 DEBUG [MainThread] delaying start of landscape.client.monitor.usermonitor.UserMonitor for 282 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,457 DEBUG [MainThread] delaying start of landscape.client.monitor.rebootrequired.RebootRequired for 27 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,457 DEBUG [MainThread] delaying start of landscape.client.monitor.networkactivity.NetworkActivity for 2 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:01,457 DEBUG [MainThread] delaying start of landscape.client.monitor.swiftusage.SwiftUsage for 0 seconds 2024-07-17T13:10:51Z landscape-client.landscape-client[694]: 2024-07-17 13:10:31,544 INFO [MainThread] Ping indicates message available. Scheduling an urgent exchange.

Then finally, if I boot a clean image that has the same hostname/computer-id, the device also doesn’t seem to work properly. The UI says it is receiving pings from my device:

But the Restart Computer action is never picked up, and monitoring seems outdated:

The logs:

landscape-client logs first boot 'clean', already existing device

$ snap logs landscape-client -f -nall 2024-07-17T13:15:50Z systemd[1]: Started Service for snap application landscape-client.landscape-client. 2024-07-17T13:15:52Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:52,592 INFO [MainThread] Watchdog watching for daemons. 2024-07-17T13:15:56Z python3[2398]: looking for plugins in ‘/usr/lib/x86_64-linux-gnu/sasl2’, failed to open directory, error: No such file or directory 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:55,981 INFO [MainThread] Monitor started with config /etc/landscape-client.conf 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:55,983 DEBUG [MainThread] Started firing run. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:55,985 DEBUG [MainThread] Finished firing run. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,070 INFO [MainThread] Broker started with config /etc/landscape-client.conf 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,073 DEBUG [MainThread] Started firing run. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,073 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._get_juju_data() for run with priority 0. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,074 DEBUG [MainThread] Finished firing run. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,129 INFO [MainThread] Manager started with config /etc/landscape-client.conf 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,134 DEBUG [MainThread] Started firing run. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,134 DEBUG [MainThread] Finished firing run. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,139 INFO [MainThread] Registering plugin landscape.client.manager.processkiller.ProcessKiller. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,141 INFO [MainThread] Registering plugin landscape.client.manager.usermanager.UserManager. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,146 INFO [MainThread] Registering plugin landscape.client.manager.shutdownmanager.ShutdownManager. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,147 INFO [MainThread] Registering plugin landscape.client.manager.hardwareinfo.HardwareInfo. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,150 INFO [MainThread] Registering plugin landscape.client.manager.keystonetoken.KeystoneToken. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,151 INFO [MainThread] Registering plugin landscape.client.manager.snapmanager.SnapManager. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,153 INFO [MainThread] Registering plugin landscape.client.manager.snapservicesmanager.SnapServicesManager. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,155 INFO [MainThread] Registering plugin landscape.client.manager.scriptexecution.ScriptExecution. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,165 DEBUG [MainThread] delaying start of landscape.client.manager.hardwareinfo.HardwareInfo for 2350 seconds 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,166 INFO [MainThread] Registering plugin landscape.client.monitor.activeprocessinfo.ActiveProcessInfo. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,167 INFO [MainThread] Registering plugin landscape.client.monitor.computerinfo.ComputerInfo. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,167 DEBUG [MainThread] delaying start of landscape.client.manager.snapmanager.SnapManager for 121 seconds 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,168 INFO [MainThread] Registering plugin landscape.client.monitor.loadaverage.LoadAverage. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,169 DEBUG [MainThread] delaying start of landscape.client.manager.customgraph.CustomGraphPlugin for 14 seconds 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,169 INFO [MainThread] Registering plugin landscape.client.monitor.memoryinfo.MemoryInfo. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,170 INFO [MainThread] Registering plugin landscape.client.monitor.mountinfo.MountInfo. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,170 INFO [MainThread] Registering plugin landscape.client.monitor.processorinfo.ProcessorInfo. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,171 INFO [MainThread] Registering plugin landscape.client.monitor.temperature.Temperature. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,172 INFO [MainThread] Registering plugin landscape.client.monitor.usermonitor.UserMonitor. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,172 INFO [MainThread] Registering plugin landscape.client.monitor.rebootrequired.RebootRequired. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,173 INFO [MainThread] Registering plugin landscape.client.monitor.networkactivity.NetworkActivity. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,173 INFO [MainThread] Registering plugin landscape.client.monitor.networkdevice.NetworkDevice. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,173 INFO [MainThread] Registering plugin landscape.client.monitor.cpuusage.CPUUsage. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,174 INFO [MainThread] Registering plugin landscape.client.monitor.swiftusage.SwiftUsage. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,174 INFO [MainThread] Registering plugin landscape.client.monitor.cephusage.CephUsage. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,174 INFO [MainThread] Registering plugin landscape.client.monitor.computertags.ComputerTags. 2024-07-17T13:15:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,174 INFO [MainThread] Registering plugin landscape.client.monitor.snapservicesmonitor.SnapServicesMonitor. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,178 DEBUG [MainThread] delaying start of landscape.client.monitor.mountinfo.MountInfo for 15 seconds 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,179 DEBUG [MainThread] delaying start of landscape.client.monitor.usermonitor.UserMonitor for 359 seconds 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,180 DEBUG [MainThread] delaying start of landscape.client.monitor.rebootrequired.RebootRequired for 86 seconds 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,180 DEBUG [MainThread] delaying start of landscape.client.monitor.networkactivity.NetworkActivity for 1 seconds 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:15:56,180 DEBUG [MainThread] delaying start of landscape.client.monitor.swiftusage.SwiftUsage for 0 seconds 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:01,352 INFO [MainThread] This machine does not appear to be a Swift machine. Deactivating plugin. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:26,175 INFO [MainThread] This machine does not appear to be a Ceph machine. Deactivating plugin. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,077 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,078 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for impending-exchange with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,079 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,080 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,081 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,081 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,082 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,083 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,083 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,083 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:46,084 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,077 DEBUG [MainThread] Started firing pre-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,078 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._handle_pre_exchange() for pre-exchange with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,078 DEBUG [MainThread] Finished firing pre-exchange. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,079 INFO [MainThread] Starting urgent message exchange with https://landscape.canonical.com/message-system. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,082 DEBUG [PoolThread-twisted.internet.reactor-0] Sending payload: 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: {‘accepted-types’: b’\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04\xe9\x80\t\x98\xec\xf8B~‘, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘client-accepted-types’: [‘accepted-types’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘add-group’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘add-group-member’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘add-user’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘custom-graph-add’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘custom-graph-remove’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘edit-group’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘edit-user’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘execute-script’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘hold-snaps’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘install-snaps’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘lock-user’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘refresh-snaps’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘registration’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘remove-group’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘remove-group-member’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘remove-snaps’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘remove-user’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘restart-snap-service’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘restart-snap-service-batch’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘resynchronize’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘set-id’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘set-intervals’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘set-snap-config’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘shutdown’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘signal-process’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘start-snap-service’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘start-snap-service-batch’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘stop-snap-service’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘stop-snap-service-batch’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘unhold-snaps’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘unknown-id’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘unlock-user’], 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘client-api’: b’3.8’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘messages’: [], 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘next-expected-sequence’: 0, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘sequence’: 0, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘server-api’: b’3.2’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘total-messages’: 0} 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,221 INFO [PoolThread-twisted.internet.reactor-0] Sent 766 bytes and received 145 bytes in 0.14s. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,221 DEBUG [PoolThread-twisted.internet.reactor-0] Received payload: 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: {‘messages’: [{‘type’: ‘accepted-types’, ‘types’: [‘register’, ‘test’]}], 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘server-api’: ‘3.3’, 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: ‘server-uuid’: b’…'} 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,222 INFO [MainThread] Switching to normal exchange mode. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,223 INFO [MainThread] Server UUID changed (old=None, new=…). 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,223 DEBUG [MainThread] Started firing server-uuid-changed. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,223 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for server-uuid-changed with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,223 DEBUG [MainThread] Finished firing server-uuid-changed. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,224 DEBUG [MainThread] Started firing message. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,224 DEBUG [MainThread] Calling landscape.client.broker.ping.Pinger._handle_set_intervals() for message with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,224 DEBUG [MainThread] Calling landscape.client.broker.server.BrokerServer.broadcast_message() for message with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,225 DEBUG [MainThread] Finished firing message. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,225 INFO [MainThread] Accepted types changed: +register +test 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,225 DEBUG [MainThread] Started firing message-type-acceptance-changed. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,225 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for message-type-acceptance-changed with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,225 DEBUG [MainThread] Finished firing message-type-acceptance-changed. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,226 DEBUG [MainThread] Started firing message-type-acceptance-changed. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,226 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for message-type-acceptance-changed with priority 0. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,226 DEBUG [MainThread] Finished firing message-type-acceptance-changed. 2024-07-17T13:16:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,226 DEBUG [MainThread] Started firing exchange-done. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,226 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._handle_exchange_done() for exchange-done with priority 0. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,228 DEBUG [MainThread] Finished firing exchange-done. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,228 INFO [MainThread] Message exchange completed in 0.15s. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,228 DEBUG [MainThread] Started firing server-uuid-changed. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,228 DEBUG [MainThread] Finished firing server-uuid-changed. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,229 DEBUG [MainThread] Started firing (‘message-type-acceptance-changed’, ‘register’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,229 DEBUG [MainThread] Finished firing (‘message-type-acceptance-changed’, ‘register’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,229 DEBUG [MainThread] Started firing (‘message-type-acceptance-changed’, ‘test’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,229 DEBUG [MainThread] Finished firing (‘message-type-acceptance-changed’, ‘test’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,230 DEBUG [MainThread] Started firing server-uuid-changed. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,230 DEBUG [MainThread] Finished firing server-uuid-changed. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,230 DEBUG [MainThread] Started firing (‘message-type-acceptance-changed’, ‘register’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,230 DEBUG [MainThread] Finished firing (‘message-type-acceptance-changed’, ‘register’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,230 DEBUG [MainThread] Started firing (‘message-type-acceptance-changed’, ‘test’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:16:56,230 DEBUG [MainThread] Finished firing (‘message-type-acceptance-changed’, ‘test’). 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,229 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,229 DEBUG [MainThread] Calling landscape.client.broker.server.event..broadcast_event() for impending-exchange with priority 0. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,229 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,230 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,230 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,230 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,234 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,232 DEBUG [MainThread] Started firing impending-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,232 DEBUG [MainThread] Calling landscape.client.broker.client.BrokerClient.notify_exchange() for impending-exchange with priority 0. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,232 INFO [MainThread] Got notification of impending exchange. Notifying all plugins. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:46,232 DEBUG [MainThread] Finished firing impending-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:56,229 DEBUG [MainThread] Started firing pre-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:56,229 DEBUG [MainThread] Calling landscape.client.broker.registration.RegistrationHandler._handle_pre_exchange() for pre-exchange with priority 0. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:56,230 DEBUG [MainThread] Finished firing pre-exchange. 2024-07-17T13:31:56Z landscape-client.landscape-client[2192]: 2024-07-17 13:31:56,231 INFO [MainThread] Starting message exchange with https://landscape.canonical.com/message-system.

This is on Ubuntu Core 22 with landscape-client version 175

@mikecw do you have any ideas?

Hi @Charlee, nothing comes to mind. Let me have a look at it.

Hi @Charlee,

Think we’ve got it.

https://github.com/canonical/landscape-client/pull/252

Just going through the usual process now with this one.

Thanks.

2 Likes

Amazing! That looks good, let me know if you want me to test anything.

Thanks. I’ll let you know when it is on the beta track (hopefully later today/tomorrow) and then if you can test it and it looks good from us I’ll push it to stable.

I see the fix is merged, but it seems like no new snap was published, is that correct?

Where does this get triggered?

Hi @Charlee,

It’s currently on both the 22 and latest track in the edge channel. Please let me know how you get on with it.

Kind regards,

Michael

Ah, I see, I think only for latest, not for 22, could that be correct? If I run snap info landscape-client I see:

channels:
  22/stable:        24.04 2024-06-05 (175) 7MB -
  22/candidate:     24.04 2024-06-05 (175) 7MB -
  22/beta:          24.04 2024-06-05 (175) 7MB -
  22/edge:          24.04 2024-06-05 (175) 7MB -
  latest/stable:    24.04 2024-06-05 (175) 7MB -
  latest/candidate: ↑                          
  latest/beta:      24.04 2024-06-05 (175) 7MB -
  latest/edge:      24.04 2024-07-26 (210) 7MB -

You might have been a bit quick. It was on latest, I just bumped it to 22 an hour ago.

Seems to be there now.

Hey there,

Verified that with revision 210 it waits for the serial and retries. It takes 2 minutes, which is maybe a little long, but probably acceptable.

Is the retry wait configurable?

Not currently, but we can look into it.

Latest build in Edge should be more responsible (15 seconds ish).

2 Likes

When will this be on stable? :smiley:

Hopefully soon - I am just trying to resolve some small build glitches. Do you have a specific requirement we can work to?

You mean in terms of a date?

It would be great if its out in the next couple of weeks :slight_smile:

OK - I’ll see what I can do.

Actually, we started using validation sets where we specify revision directly so its not so important anymore :slight_smile:

No worries - it’s in stable now anyway.