feat: acquire pro guest tokens in managed LXD instances
Metadata
Current evaluation
Merged PR #647 as commit 10895fd, adding Contracts API acquisition of Pro guest tokens for managed LXD instances using the host machine token.
Resolution: closed resolved
Reason: PR #647 was approved and merged as commit 10895fd. Follow-up PR #673 later updated the implementation to use the new guest-token endpoint.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `tox`?
-----
This PR handles obtaining a Pro guest token, that is to be used by an LXD instance, using the Contracts API and the host's machine token.
When Pro API's endpoint `u.pro.attach.guest.get_guest_token.v1` becomes available in production, the `request_pro_guest_token` implemented in this PR will be changed to use that endpoint instead.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #647 as commit 10895fd, adding Contracts API acquisition of Pro guest tokens for managed LXD instances using the host machine token. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR #647 in craft-providers, implementing functionality to acquire Pro guest tokens for managed LXD instances via the Contracts API and host machine token. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Superseded By:
canonical/craft-providers#673
(confidence 96%)
Merged as commit 4b64127 to switch Pro guest-token acquisition to the new endpoint.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #673 feat: switch to new guest token endpoint | craft-providers | merged | Merged PR #673 switched managed LXD Ubuntu Pro guest-token acquisition to the new endpoint, landing as commit 4b64127 after prerequisite PR #664. | |
| #656 feat: enabled pro services on managed LXD instance | craft-providers | merged | Merged PR #656 as commit c511987, adding managed LXD support to reconcile and enable the requested set of Ubuntu Pro services. | |
| #664 feat: install Ubuntu Pro Client in LXD instance | craft-providers | merged | Merged PR #664 as commit 09caf83, adding Ubuntu Pro Client installation to managed LXD instances so Pro commands such as attach and enable can run. | |
| #655 feat: attach managed instance to pro subscription | craft-providers | merged | Merged PR #655 as commit 2bd0ca6, adding managed LXD instance attachment to an Ubuntu Pro subscription without automatically enabling Pro services. |