Enabling Pro on non-LTS releases is confusing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Lucas Albuquerque Medeiros de Moura | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
The output of `pro status` on non-LTS releases was confusing. It didn't clearly describe that no services are available.
The fix is to show a message when there are no available services for a machine.
[ Test Plan ]
To reproduce:
- attach a non-lts machine
- run `pro status`
- see the confusing output
To see the fix (once it's available)
- attach a non-lts machine
- run `pro status`
- see the message: "No Ubuntu Pro services are available to this system."
This is covered by an automated test in the pro-client test suite, defined here: https:/
[ Where problems could occur ]
This change touches the `status` command, which is widely used. If something goes wrong, it could break `pro status` in some circumstances.
Or, if users were relying on the previous version of the output in some way, then they will be disappointed. Note: the pro-client team does not consider the human-readable output of `pro status` to be stable and we discourage people from relying on it. In the future it will change even more.
[ Other Info ]
Notice that the message doesn't say that there are no Pro services on non-LTS releases. That is because of two things:
1. There may be Pro services available on non-lts releases in the future
2. There are situations where no services are available on LTS release (e.g. on ppc64el machines)
[ Original Description ]
I'm currently in Kinetic (22.10) and used my private free token to enable pro with:
$ sudo pro attach MYTOKEN
Unable to determine current instance-id
This machine is now attached to 'Ubuntu Pro - free personal subscription'
SERVICE ENTITLED STATUS DESCRIPTION
NOTICES
Operation in progress: pro attach
Enable services with: pro enable <service>
Account: <email address hidden>
Subscription: Ubuntu Pro - free personal subscription
Same result when doing "pro status". This is missleading. There should be a warning or something that mentions that Pro is only for LTS releases.
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.19.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 27 06:54:15 2022
InstallationDate: Installed on 2022-03-21 (219 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to kinetic on 2022-09-18 (38 days ago)
information type: | Private → Public |
Changed in ubuntu-advantage-tools (Ubuntu): | |
assignee: | nobody → Lucas Albuquerque Medeiros de Moura (lamoura) |
tags: | added: sc-1360 |
tags: | removed: need-amd64-retrace |
description: | updated |
description: | updated |
tags: | removed: block-proposed-lunar |
Hi toabctl,
Thanks for reporting this issue. I agree that we need a better message for non-LTS releases and we will work on a fix for this.