** Description changed: + [Impact] + + If a user on xenial or on bionic has an old version of distro-info and + then upgraded ubuntu-advantage-tools, they will get periodic tracebacks + from our update_messaging systemd unit, and enabling services with ua + will always fail. + + The fix is to specify the required versions of distro-info that ubuntu- + advantage-tools. + + Backporting this fix is necessary to ensure xenial and bionic users who + happen to have an older version of distro-info are able to enable + ubuntu-advantage services without first finding this bug, then manually + upgrading distro-info. + + [Test Plan] + + TODO + + [Where problems could occur] + + TODO + + [Other Info] + + TODO + + [Original Description] + 27.0~16.04.1 on Xenial. ubuntu-advantage-tools was upgraded, the rest of the machine is painfully behind. Resulted in this: Jun 15 13:34:46 MAAS systemd[1]: Starting Ubuntu Advantage APT and MOTD Messages... Jun 15 13:34:46 MAAS python3[15434]: Traceback (most recent call last): Jun 15 13:34:46 MAAS python3[15434]: File "/usr/lib/ubuntu-advantage/ua_update_messaging.py", line 302, in <module> Jun 15 13:34:46 MAAS python3[15434]: update_apt_and_motd_messages(cfg=cfg) Jun 15 13:34:46 MAAS python3[15434]: File "/usr/lib/ubuntu-advantage/ua_update_messaging.py", line 284, in update_apt_and_motd_messages Jun 15 13:34:46 MAAS python3[15434]: if not util.is_lts(series): Jun 15 13:34:46 MAAS python3[15434]: File "/usr/lib/python3/dist-packages/uaclient/util.py", line 353, in is_lts Jun 15 13:34:46 MAAS python3[15434]: out, _err = subp(["/usr/bin/ubuntu-distro-info", "--supported-esm"]) Jun 15 13:34:46 MAAS python3[15434]: File "/usr/lib/python3/dist-packages/uaclient/util.py", line 608, in subp Jun 15 13:34:46 MAAS python3[15434]: out, err = _subp(args, rcs, capture, timeout, env=env) Jun 15 13:34:46 MAAS python3[15434]: File "/usr/lib/python3/dist-packages/uaclient/util.py", line 565, in _subp Jun 15 13:34:46 MAAS python3[15434]: stderr=err.decode("utf-8"), Jun 15 13:34:46 MAAS python3[15434]: uaclient.util.ProcessExecutionError: Failed running command '/usr/bin/ubuntu-distro-info --supported-esm' [exit(1)]. Message: ubuntu-distro-info: unrecognized option `--supported-esm' Jun 15 13:34:46 MAAS systemd[1]: ua-messaging.service: Main process exited, code=exited, status=1/FAILURE Jun 15 13:34:46 MAAS systemd[1]: Failed to start Ubuntu Advantage APT and MOTD Messages. Jun 15 13:34:46 MAAS systemd[1]: ua-messaging.service: Unit entered failed state. Jun 15 13:34:46 MAAS systemd[1]: ua-messaging.service: Failed with result 'exit-code'. Installed distro-info was 0.14build1 ; upgrading to current fixed it.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1932028 Title: missing version dependency on distro-info To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1932028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs