u-a-t fails when distro-info is installed from backports on Xenial

Bug #1978940 reported by Enrique G Santos
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
distro-info (Ubuntu)
Invalid
Undecided
Thomas Ward
Xenial
Fix Committed
Medium
Thomas Ward
ubuntu-advantage-tools (Ubuntu)
Triaged
Medium
Renan Rodrigo
Xenial
Triaged
Medium
Unassigned

Bug Description

See comment #5 for full context.

tl;dr the distro-info package in xenial-backports is (obvisouly) higher than the version in xenial/xenial-updates, but it does not bring the --supported-esm option, on which we rely.

[Original Description]
ua detach command fails

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubuntu-advantage-tools 27.8~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-187.198~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-187-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.30+esm3
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jun 16 19:37:09 2022
InstallationDate: Installed on 2017-10-25 (1694 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Enrique G Santos (egsantos001) wrote :
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Hi Enrique,

Thank you for reporting this bug! Can you please run:

sudo ua collect-logs

on the affected system. Then upload the file ua_logs.tar.gz that it creates to this bug?

That will help us diagnose this issue.

Thanks,
Grant

Revision history for this message
Enrique G Santos (egsantos001) wrote :
Revision history for this message
Enrique G Santos (egsantos001) wrote : Re: [Bug 1978940] Re: error in detaching esm-infra

Thank you Grant for your response.
I attached the requested file to the bug thread.
----------------------------------------------
ENRIQUE (Ricky) SANTOS

    On Thursday, June 16, 2022, 09:31:57 PM GMT+8, Grant Orndorff <email address hidden> wrote:

 Hi Enrique,

Thank you for reporting this bug! Can you please run:

sudo ua collect-logs

on the affected system. Then upload the file ua_logs.tar.gz that it
creates to this bug?

That will help us diagnose this issue.

Thanks,
Grant

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1978940

Title:
  error in detaching esm-infra

Status in ubuntu-advantage-tools package in Ubuntu:
  New

Bug description:
  ua detach command fails

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ubuntu-advantage-tools 27.8~16.04.1
  ProcVersionSignature: Ubuntu 4.15.0-187.198~16.04.1-generic 4.15.18
  Uname: Linux 4.15.0-187-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.30+esm3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Jun 16 19:37:09 2022
  InstallationDate: Installed on 2017-10-25 (1694 days ago)
  InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
  SourcePackage: ubuntu-advantage-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Revision history for this message
Grant Orndorff (orndorffgrant) wrote : Re: error in detaching esm-infra

Excellent, thank you!

It looks like we're getting an error when using ubuntu-distro-info: "ubuntu-distro-info: unrecognized option `--supported-esm'".

And from the attached Dependencies.txt I see you're on distro-info version 0.18~ubuntu16.04.1 from xenial-backports. That has a higher version than ubuntu-advantage-tools Depends requirement (>= 0.14ubuntu0.2) but apparently doesn't support the feature we need and that is present in version 0.14ubuntu0.2.

Are you able to downgrade distro-info to version 0.14ubuntu0.2? Or do you have other packages that require version 0.18~ubuntu16.04.1?

apt install distro-info=0.14ubuntu0.2

apt should prompt if it wants to downgrade/remove other packages and you can cancel if that's unacceptable.

If that doesn't work or if it requires downgrading/removing other packages that you need to keep, then I can supply you a short script to manually detach, while we work on an actual fix to this bug.

The actual bugfix will likely be that ubuntu-advantage-tools should process the distro-info-data directly without relying on the ubuntu-distro-info tool

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-advantage-tools (Ubuntu):
assignee: nobody → Renan Rodrigo (renanrodrigo)
summary: - error in detaching esm-infra
+ u-a-t fails when distro-info is installed from backports on Xenial
description: updated
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi @teward, I see [1] in [2] as a triple self rejection.
But nothing left in [3] unapproved.

I might have lost the updates on this.
On Sept 27th in #ubuntu-devel it felt like we agreed this should be uploaded to -backports.
I tested it and then didn't keep track.
Rechecking the bug made me find it rejected.

Do you know what happened that changed this approach?

[1]: https://launchpadlibrarian.net/689166277/distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_source.changes
[2]: https://launchpad.net/ubuntu/xenial/+queue?queue_state=4&queue_text=
[3]: https://launchpad.net/ubuntu/xenial/+queue?queue_state=1&queue_text=

Revision history for this message
Thomas Ward (teward) wrote :

Yeah I got swamped and inundated with other work tasks. It's on my radar to reupload with the new version by EOD today and then auto-approve into Backports because I have an ACK from the other backporters members on this one.

I self-rejected my upload because of the incorrect version string of ~bpo18.04.1 - it should be 16.04.1 for Xenial. I have not been able to get back to this yet.

Revision history for this message
Thomas Ward (teward) wrote :

I've uploaded and approved the backport with the correct version number, that should land in Backports soon.

Thomas Ward (teward)
Changed in ubuntu-advantage-tools (Ubuntu):
assignee: Renan Rodrigo (renanrodrigo) → Thomas Ward (teward)
assignee: Thomas Ward (teward) → nobody
assignee: nobody → Renan Rodrigo (renanrodrigo)
Changed in distro-info (Ubuntu):
assignee: nobody → Thomas Ward (teward)
status: New → Invalid
Changed in distro-info (Ubuntu Xenial):
status: New → Fix Committed
importance: Undecided → Medium
Changed in ubuntu-advantage-tools (Ubuntu Xenial):
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Medium
Changed in distro-info (Ubuntu Xenial):
assignee: nobody → Thomas Ward (teward)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.