Public bug reported: I used Packer to create my own version of an Ubuntu Pro instance. When it comes up, it's not associated with a subscription (based on the output of ua status) and the log reports a crash, with foo and bar below replaced with identifiers:
2020-03-16 04:12:37,179 - cli.py:(594) [ERROR]: This machine is already attached to 'foo' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 576, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 616, in main return args.action(args, cfg) File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 88, in new_f raise exceptions.AlreadyAttachedError(cfg) uaclient.exceptions.AlreadyAttachedError: <uaclient.config.UAConfig object at 0xbar> The packer copy probably doesn't preserve product codes, so I'm not complaining about the lack of subscription, but we should report a more understandable error message. ** Affects: ubuntu-advantage-tools (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1867573 Title: crash in log of cloned Pro instance: uaclient.exceptions.AlreadyAttachedError: <uaclient.config.UAConfig object at 0xfoo> To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1867573/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs