[Bug 1980368] Re: [SRU] rename ESM services on messages delivered to MOTD

Andreas Hasenack 1980368 at bugs.launchpad.net
Fri Dec 16 21:18:00 UTC 2022


Hello Lucas, or anyone else affected,

Accepted update-notifier into bionic-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/update-
notifier/3.192.1.15 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-
bionic to verification-done-bionic. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-bionic. 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.

** Tags removed: verification-done-bionic
** Tags added: verification-needed-bionic

** Tags removed: verification-done-xenial
** Tags added: verification-needed-xenial

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

Title:
  [SRU]  rename ESM services on messages delivered to MOTD

Status in update-notifier package in Ubuntu:
  Fix Released
Status in update-notifier source package in Xenial:
  Fix Committed
Status in update-notifier source package in Bionic:
  Fix Committed
Status in update-notifier source package in Focal:
  Fix Committed
Status in update-notifier source package in Impish:
  Won't Fix
Status in update-notifier source package in Jammy:
  Fix Committed

Bug description:
  [Impact]
  There is an update on how the ESM services are named on the Ubuntu Advantage Client (UA) project.
  We need to change those names on update-notifier as well to provide an unified user experience regarding the ESM services.

  We are changing:

  UA Infra: ESM -> ESM Infra
  UA Apps: ESM -> ESM Apps
  UA Infra: Extended Security Maintenance (ESM) ->  Expanded Security Maintenance for Infrastructure
  UA Apps: Extended Security Maintenance (ESM) ->  Expanded Security Maintenance for Applications

  [Test Case]
  To test this change, use the following script:

  ---------------------------------------------
  #!/bin/bash
  set -e

  series=$1
  token=$2
  name=$series-dev

  
  function cleanup {
    lxc delete $name --force
  }

  function on_err {
    echo -e "Test Failed"
    cleanup
    exit 1
  }

  trap on_err ERR

  lxc launch ubuntu-daily:$series $name
  sleep 10

  # Update update-notifier package
  lxc exec $name -- sh -c "echo \"deb http://archive.ubuntu.com/ubuntu $series-proposed main\" | tee /etc/apt/sources.list.d/proposed.list"
  lxc exec $name -- sudo apt-get update > /dev/null
  lxc exec $name -- sudo apt-get install update-notifier-common -y > /dev/null
  lxc exec $name -- apt-cache policy update-notifier-common

  # Running update-motd for machine without an ua subscription
  echo -e "\n* Updated update-notifier message"
  echo "###########################################"
  lxc exec $name -- /usr/lib/update-notifier/apt-check --human-readable
  echo -e "###########################################\n"

  # Attaching machine to a UA subscription
  echo "Attaching to a UA subscription"
  lxc exec $name --  ua attach $token > /dev/null
  lxc exec $name --  ua status

  # Running update-motd for attached machine
  echo -e "\n* Updated update-notifier message with system attached to UA"
  echo -e "###########################################"
  lxc exec $name -- /usr/lib/update-notifier/apt-check --human-readable
  echo -e "###########################################\n"

  # Installing all esm-infra packages
  lxc exec $name -- sudo apt-get upgrade -y > /dev/null

  # Disabling esm-infra
  lxc exec $name -- sudo pro disable esm-infra > /dev/null

  echo "* Updated update-notifier message with esm-infra disabled"
  echo "###########################################"
  lxc exec $name -- /usr/lib/update-notifier/apt-check --human-readable
  echo -e "###########################################\n"

  cleanup
  -----------------------------------------------------

  Notice that you need a UA token to run this script.
  Additionally, most messages will appear on the xenial machine due to it being ESM already

  [Regression Potential]
  See translatable string note in comment 3.

  We are just providing message changes, so the regression potential is
  really low. User might notice the changes, but they are not that
  different from the original ones.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1980368/+subscriptions




More information about the foundations-bugs mailing list