canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 69 forks source link

Bug: clones not noticed right away #3068

Open orndorffgrant opened 3 months ago

orndorffgrant commented 3 months ago

Description of the bug

It may take several hours of a cloned machine running before it is noticed by the backend.

Expected behavior

Clones should be counted right away after boot.

This may involve running ua-timer on boot (and bypassing the jobs-status.json timestamp check), or running a separate service that only does the activity-ping on boot.

Current behavior

The activity ping doesn't occur until ua-timer.service runs and enough time has passed since the timestamp in jobs-status.json.

To Reproduce

Please include details on how to reproduce the bug.

  1. Launch a VM/Container
  2. attach it
  3. snapshot it
  4. launch a clone
  5. see that activityID has not changed (therefore it hasn't been counted)

System information: