Updated the description based on the comment above; it's just one bug
now.

** Description changed:

  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)
+   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.
+ UPDATE: The packer copy preserves product codes:
+ 
+ ubuntu@ip-172-31-29-146:~$ curl -s 
http://169.254.169.254/latest/dynamic/instance-identity/document
+ [...]
+   "marketplaceProductCodes" : [ "ex9l8qw4x21426rsfg7am8gym" ],
+ [...]
+ }
+ 
+ So the net is we need to be able to reprovision keys transparently when
+ the instance ID has changed.

-- 
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

Reply via email to