Public bug reported:

This is due to ubuntu-advantage-tools being unable to parse /etc/os-
release values on Linux Mint systems.

To reproduce the issue:
 lxc launch images:mint/tara dev-mint
 lxc exec dev-mint -- ua --debug status 
DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'status']
DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
DEBUG: File does not exist: /var/lib/ubuntu-advantage/private/machine-token.json
DEBUG: Reading file: /etc/os-release
ERROR: Unhandled exception, please file a bug
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1256, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1342, in main
    return args.action(args, cfg)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1120, in 
action_status
    status = cfg.status(show_beta=show_beta)
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 679, in status
    response = self._unattached_status()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 551, in 
_unattached_status
    resources = get_available_resources(self)
  File "/usr/lib/python3/dist-packages/uaclient/contract.py", line 423, in 
get_available_resources
    resources = client.request_resources()
  File "/usr/lib/python3/dist-packages/uaclient/contract.py", line 93, in 
request_resources
    platform = util.get_platform_info()
  File "/usr/lib/python3/dist-packages/uaclient/util.py", line 338, in 
get_platform_info
    " {})".format(os_release["VERSION"], version)
RuntimeError: Could not parse /etc/os-release VERSION: 19 (Tara) (modified to 
19 (Tara))
Unexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-tools

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Low
         Status: Triaged

** Changed in: ubuntu-advantage-tools (Ubuntu)
       Status: New => Triaged

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1949524

Title:
  ua attach and ua status on linux Mint result in tracebacks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1949524/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to