1.  No trouble getting token

2.  In my regular (non-virgin) focal lxc container, installing ubuntu-
advantage-tools 19.5.1 works, as does installing the ppa version.
Subsequent testing is in this container.

3.  Upgrading:
  a.  Installing 19.5.1, then 'sudo apt-get install ubuntu-advantage-tools' 
upgrades properly, without prompts
  b.  Re-installing =19.5.1, then 'sudo apt-get update' stays on 19.5.1 (I 
think this is right)
  c.  Removing ubuntu-advantage-tools, reinstalling ubuntu-advantage-tools 
installs 20.2
  d.  Removing PPA, reinstalling ubuntu-advantage-tools gives 19.5.1, then 
adding PPA and running 'sudo apt-get upgrade' upgrades to the 20.2 package from 
the PPA.

Think that's sufficient banging on it, seems to all work as expected.

4.  Attaching with token:

Worked without issue

This machine is now attached to '[email protected]'.

     Account: [email protected]
Subscription: [email protected]

SERVICE
cc-eal        entitled         n/a
cis-audit     none             n/a
esm           none             n/a
fips          entitled         n/a
fips-updates  entitled         n/a
livepatch     entitled         n/a

Enable entitlements with `ua enable <service>`

5.  Status.  Not sure what is expected to be shown, but this is what I
see and it looks sensible enough:

$ sudo ua status
SERVICE       ENTITLED  STATUS    DESCRIPTION
cc-eal        yes       n/a       Common Criteria EAL2 Provisioning Packages
cis-audit     no        —         Center for Internet Security Audit Tools
esm-apps      no        —         UA Apps: Extended Security Maintenance
esm-infra     yes       disabled  UA Infra: Extended Security Maintenance
fips          yes       n/a       NIST-certified FIPS modules
fips-updates  yes       n/a       Uncertified security updates to FIPS modules
livepatch     yes       n/a       Canonical Livepatch service

Enable services with: ua enable <service>

     Account: [email protected]
Subscription: [email protected]

Tried out enabling everything, although no idea what should/shouldn't
work:

triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ ua enable cis-audit
This command must be run as root (try using sudo)
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable cis-audit
One moment, checking your subscription first
This subscription is not entitled to CIS Audit.
For more information see: https://ubuntu.com/advantage
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable cc-eal
One moment, checking your subscription first
CC EAL2 is not available for Ubuntu 20.04 LTS (Focal Fossa).
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable esm-apps
One moment, checking your subscription first
This subscription is not entitled to ESM Apps.
For more information see: https://ubuntu.com/advantage
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable esm-infra
One moment, checking your subscription first
Updating package lists
ESM Infra enabled
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable fips
One moment, checking your subscription first
Cannot install FIPS on a container
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable fips-updates
One moment, checking your subscription first
Cannot install FIPS Updates on a container
triage-focal+20.04:~/ubuntu/UbuntuAdvantageTools$ sudo ua enable livepatch
One moment, checking your subscription first
Cannot install Livepatch on a container

6.  Install hello

$ sudo apt-get install hello
...
Preparing to unpack .../hello_2.10-2ubuntu3~esm1_amd64.deb ...
Unpacking hello (2.10-2ubuntu3~esm1) ...
Setting up hello (2.10-2ubuntu3~esm1) ...

Looks good

7.  Detaching:

$ sudo ua detach
Detach will disable the following service:
    esm-infra
Are you sure? (y/N) y
Updating package lists
This machine is now detached


$ ua status
SERVICE       AVAILABLE  DESCRIPTION
cc-eal        no         Common Criteria EAL2 Provisioning Packages
esm-apps      yes        UA Apps: Extended Security Maintenance
esm-infra     yes        UA Infra: Extended Security Maintenance
fips          no         NIST-certified FIPS modules
fips-updates  no         Uncertified security updates to FIPS modules
livepatch     yes        Canonical Livepatch service

This machine is not attached to a UA subscription.
See https://ubuntu.com/advantage

8. ubuntu-advantage-pro installation

$ sudo apt-get install ubuntu-advantage-pro
...
Get:1 http://ppa.launchpad.net/chad.smith/ua-client-premium-demo/ubuntu 
focal/main amd64 ubuntu-advantage-pro amd64 20.2.1~0ubuntu1~20.04.1 [7,460 B]
Fetched 7,460 B in 0s (19.3 kB/s)               
...
Setting up ubuntu-advantage-pro (20.2.1~0ubuntu1~20.04.1) ...
Created symlink 
/etc/systemd/system/multi-user.target.wants/ua-auto-attach.service → 
/lib/systemd/system/ua-auto-attach.service.
$ echo $?
0

----

So, at least to my eyes everything LGTM for upload.  +1


** Changed in: ubuntu-advantage-tools (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1865074

Title:
  Merge upstream ubuntu-advantage-tools 20.2 into Focal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1865074/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to