broken upgrade path between jammy and kinetic

Bug #1995234 reported by nikhil kshirsagar
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sosreport (Ubuntu)
Fix Released
Medium
Mauricio Faria de Oliveira
Kinetic
Fix Released
Medium
Mauricio Faria de Oliveira
Lunar
Fix Released
Medium
Mauricio Faria de Oliveira

Bug Description

[ Impact ]

  The sosreport package upgrade path is broken between
  jammy and kinetic due to 'ubuntu1' typo (jammy-only).

  $ rmadison -a source sosreport | grep -F 4.4
   sosreport | 4.4-1ubuntu0 | kinetic | source
   sosreport | 4.4-1ubuntu0 | lunar | source
   sosreport | 4.4-1ubuntu0.18.04.1 | bionic-updates | source
   sosreport | 4.4-1ubuntu0.20.04.1 | focal-updates | source
   sosreport | 4.4-1ubuntu1.22.04.1 | jammy-updates | source

  See that jammy is the most recent; incorrectly after
  kinetic and lunar, which are more recent than jammy.

[ Test Plan ]

  Deploy a jammy container:

  $ lxc launch ubuntu:jammy sos-upgrade
  $ lxc shell sos-upgrade

  Upgrade it and install sosreport:

  # apt update
  # apt upgrade
  # apt install sosreport

  # dpkg -s sosreport | grep Version:
  Version: 4.4-1ubuntu1.22.04.1

  Upgrade release from jammy to kinetic:

  # lsb_release -cs
  jammy
  # sed -i 's/Prompt=lts/Prompt=normal/' /etc/update-manager/release-upgrades
  # do-release-upgrade
  # reboot
  # lsb_release -cs
  kinetic

  Check for sosreport upgrade to kinetic's version:
  (this example: not upgraded)

  $ lxc shell sos-upgrade
  # dpkg -s sosreport | grep Version:
  Version: 4.4-1ubuntu1.22.04.1

  # apt-cache madison sosreport
   sosreport | 4.4-1ubuntu0 | http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages

[ Regression Potential ]

  Version-only change for sosreport packages
  in recently released kinetic and the devel
  release lunar, which should have few users.

  Users of sosreport in kinetic will be moved
  from (the stale) jammy package to kinetic's,
  and might hit issues/bugs from differences.

  However, that would happen with later SRUs
  anyway, so it's better to know of it early.
[ Original Bug Description ]

The Kinetic sosreport's version is older than jammy, because we named Kinetic (it was the devel version at the time) as 4.4-1ubuntu0 (https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1986611/comments/3) while jammy version is named 4.4-1ubuntu1.22.04.1.

So Jammy ends up being newer version than Kinetic, and hence Jammy users who update to Kinetic would not get the sosreport package updated.

So this bug is opened to bump the K version to 4.4-1ubuntu2

description: updated
description: updated
Revision history for this message
nikhil kshirsagar (nkshirsagar) wrote :
summary: - [SRU] Kinetik - bump up the version of sosreport
+ [SRU] Kinetic - bump up the version of sosreport
description: updated
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

PPA test packages:
----

Package upgrade happens on kinetic:

# lsb_release -cs
kinetic

# add-apt-repository ppa:mfo/sos-upgrade-jkl

# apt-cache madison sosreport
 sosreport | 4.4-1ubuntu1.22.10.1 | https://ppa.launchpadcontent.net/mfo/sos-upgrade-jkl/ubuntu kinetic/main amd64 Packages
 sosreport | 4.4-1ubuntu0 | http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages

# apt install sosreport
...
Setting up sosreport (4.4-1ubuntu1.22.10.1) ...
...

# dpkg -s sosreport | grep Version:
Version: 4.4-1ubuntu1.22.10.1

Upgrade release from kinetic to lunar:
(hackish for now)

# lsb_release -cs
kinetic
# sed -i 's/kinetic/lunar/' \
  /etc/apt/sources.list \
  /etc/apt/sources.list.d/*.list
# apt update
# apt dist-upgrade
# reboot
# lsb_release -cs
lunar

Package upgrade happened on lunar:

# dpkg -s sosreport | grep Version:
Version: 4.4-1ubuntu2

description: updated
summary: - [SRU] Kinetic - bump up the version of sosreport
+ broken upgrade path between jammy and kinetic
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Changed in sosreport (Ubuntu Lunar):
status: New → In Progress
importance: Undecided → Medium
assignee: nikhil kshirsagar (nkshirsagar) → Mauricio Faria de Oliveira (mfo)
Changed in sosreport (Ubuntu Kinetic):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Mauricio Faria de Oliveira (mfo)
tags: added: se-sponsor-mfo
tags: added: seg
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Hi Nikhil,

Thanks for the bug report!

I've filed the SRU template as Kinetic is now a Stable Release,
and will check for sponsors for Lunar (development release).

If the debdiff/approach is good, I can upload a Kinetic SRU
after it lands in Lunar.

cheers,
Mauricio

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello nikhil, or anyone else affected,

Accepted sosreport into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/sosreport/4.4-1ubuntu1.22.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in sosreport (Ubuntu Kinetic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-kinetic
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Sponsored for kinetic and lunar.

Changed in sosreport (Ubuntu Lunar):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sosreport - 4.4-1ubuntu2

---------------
sosreport (4.4-1ubuntu2) lunar; urgency=medium

  * Adjust version number to fix the upgrade path
    (jammy/kinetic/lunar) (LP: #1995234)

 -- Mauricio Faria de Oliveira <email address hidden> Tue, 08 Nov 2022 10:14:00 -0300

Changed in sosreport (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Verification done on the upgrade path (jammy -> kinetic -> lunar)
using the sosreport package from kinetic-proposed.

...

Create jammy container:

 $ lxc launch ubuntu:jammy sos-jkl
 $ lxc shell sos-jkl

 # lsb_release -cs
 jammy

Upgrade it and install sosreport:

 # apt update
 # apt upgrade
 # apt install sosreport

 # dpkg -s sosreport | grep Version:
 Version: 4.4-1ubuntu1.22.04.1

...

Enable -proposed

 # add-apt-repository -y -p proposed

Configure apt pinning to use -proposed
on release upgrade from jammy to kinetic
only for sosreport:

 cat <<EOF >/etc/apt/preferences.d/proposed-sosreport
 Package: *
 Pin: release a=jammy-proposed
 Pin-Priority: 100

 Package: *
 Pin: release a=kinetic-proposed
 Pin-Priority: 100

 Package: sosreport
 Pin: release a=kinetic-proposed
 Pin-Priority: 500
 EOF

Upgrade from jammy to kinetic:

 # sed 's/Prompt=lts/Prompt=normal/' -i /etc/update-manager/release-upgrades
 # do-release-upgrade
 # reboot
 $ lxc shell sos-jkl

 # lsb_release -cs
 kinetic

Check sosreport version (it was upgraded correctly! problem fixed.)

 # dpkg -s sosreport | grep Version:
 Version: 4.4-1ubuntu1.22.10.1

Upgrade from kinetic to lunar:

 # do-release-upgrade -d
 # reboot
 $ lxc shell sos-jkl

 # lsb_release -cs
 lunar
Check sosreport version (upgraded correctly again.)

 # dpkg -s sosreport | grep Version:
 Version: 4.4-1ubuntu2

tags: added: verification-done verification-done-kinetic
removed: verification-needed verification-needed-kinetic
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for sosreport has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sosreport - 4.4-1ubuntu1.22.10.1

---------------
sosreport (4.4-1ubuntu1.22.10.1) kinetic; urgency=medium

  * Adjust version number to fix the upgrade path
    (jammy/kinetic/lunar) (LP: #1995234)

 -- Mauricio Faria de Oliveira <email address hidden> Tue, 08 Nov 2022 10:22:05 -0300

Changed in sosreport (Ubuntu Kinetic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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