Code review comment for ~chad.smith/ubuntu/+source/ubuntu-advantage-tools:release-27-focal

Revision history for this message
Bryce Harrington (bryce) wrote :

Running through the test case, at the part to grep for Traceback, I did indeed find one in the log:

2021-04-28 02:49:25,798 - util.py:(414) [DEBUG]: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
2021-04-28 02:49:25,799 - config.py:(357) [DEBUG]: File does not exist: /var/lib/ubuntu-advantage/private/machine-to\
ken.json
2021-04-28 02:49:25,799 - cli.py:(1026) [ERROR]: Auto-attach image support is not available on lxd
See: https://ubuntu.com/advantage
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1004, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 1062, in main
    return args.action(args, cfg)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 147, in new_f
    return f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 130, in new_f
    retval = f(args, cfg, **kwargs)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 755, in action_auto_attach
    token = _get_contract_token_from_cloud_identity(cfg)
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 716, in _get_contract_token_from_cloud_identity
    raise e
  File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 710, in _get_contract_token_from_cloud_identity
    instance = identity.cloud_instance_factory()
  File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 94, in cloud_instance_factory
    raise exceptions.NonAutoAttachImageError(
uaclient.exceptions.NonAutoAttachImageError: Auto-attach image support is not available on lxd
See: https://ubuntu.com/advantage

This appeared to occur during installation.

Despite the traceback, everything seems to be working fine.

« Back to merge proposal