feat(pro): use Ubuntu Pro guest attachment
Metadata
Current evaluation
Merged as commit 31c4e58, switching Pro support to Ubuntu Pro guest auto-attachment so no contract ID or root access is required.
Resolution: closed resolved
Reason: PR #890 was approved and merged as commit 31c4e58. Follow-up PR #918 merged feature/pro-sources into main, bringing the guest-attachment change to the main branch.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This PR updates the Pro support to use the 'auto-attach' feature [0] that is recently available. The advantage of using this functionality is that we don't need the contract id, which means that we don't need root to enable pro on the instance. The only requirement is that guest attachment has been enabled on the host before running.
Note that this is targeting the `feature/pro-sources`, which is very much out of date (still using `tox`, for example). Since the feature-branch code is working, I thought it would be better to do this change here (where we can verify that it works), and *then* have a task to update & merge back into `main`, rather than the other way around.
As far as I can tell the failure is unrelated and will "probably" be fixed when we merge `main` back in.
0: https://documentation.ubuntu.com/lxd/latest/howto/instances_ubuntu_pro_attach/
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged as commit 31c4e58, switching Pro support to Ubuntu Pro guest auto-attachment so no contract ID or root access is required. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged by maintainer tigarmo, updating Pro support to use the Ubuntu Pro 'auto-attach' feature, eliminating the need for a contract ID or root access. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
craft-providers#918
(confidence 100%)
Follow-up PR merged feature/pro-sources into main, carrying the changes from #890.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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. |