crash in log of cloned Pro instance: uaclient.exceptions.AlreadyAttachedError: <uaclient.config.UAConfig object at 0xfoo>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
High
|
Chad Smith |
Bug Description
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/
return func(*args, **kwargs)
File "/usr/lib/
return args.action(args, cfg)
File "/usr/lib/
raise exceptions.
uaclient.
UPDATE: The packer copy preserves product codes:
ubuntu@
[...]
"marketplaceP
[...]
}
So the net is we need to be able to reprovision keys transparently when the instance ID has changed.
Changed in ubuntu-advantage-tools (Ubuntu): | |
assignee: | nobody → Chad Smith (chad.smith) |
status: | New → In Progress |
Changed in ubuntu-advantage-tools (Ubuntu): | |
status: | In Progress → Triaged |
importance: | Undecided → High |
Changed in ubuntu-advantage-tools (Ubuntu): | |
status: | Triaged → Fix Committed |
Actually, the packer copy does seem to preserve product codes:
ubuntu@ ip-172- 31-29-146: ~$ curl -s http:// 169.254. 169.254/ latest/ dynamic/ instance- identity/ document roductCodes" : [ "ex9l8qw4x21426 rsfg7am8gym" ],
[...]
"marketplaceP
[...]
}
So we have two bugs; I'll file the other one if we don't have one yet.