[Bug 2046356] Re: Update URL for Support information in MOTD message
Lucas Albuquerque Medeiros de Moura
2046356 at bugs.launchpad.net
Fri Jan 5 13:44:21 UTC 2024
I have performed the SRU verification with the following script:
----------------------------------
#!/bin/bash
set -e
series=$1
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 5
# Install latest base-files
lxc exec $name -- apt-get update > /dev/null
lxc exec $name -- apt-get install -y base-files > /dev/null
echo -e "\n* Latest base-files is installed"
echo "###########################################"
lxc exec $name -- apt-cache policy base-files
echo -e "###########################################\n"
echo -e "\n* Installing update-motd"
lxc exec $name -- apt-get install -y update-motd > /dev/null
echo -e "###########################################\n"
echo -e "\n* Check current MOTD message for Support URL"
echo "###########################################"
lxc exec $name -- update-motd
echo -e "###########################################\n"
echo -e "\n* base-files is installed from proposed"
echo "###########################################"
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 -- apt-get update > /dev/null
lxc exec $name -- apt-get -t $series-proposed install base-files -y > /dev/null
lxc exec $name -- apt-cache policy base-files
echo -e "###########################################\n"
echo -e "\n* Check updated MOTD message fro Support URL"
echo "###########################################"
lxc exec $name -- update-motd
echo -e "###########################################\n"
cleanup
------------------------------------------
I can confirm that URL has been successfully updated for the MOTD message.
I am also attaching the test results for all the releases target by this change
** Attachment added: "base-files-test-result.tar.xz"
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/2046356/+attachment/5736850/+files/base-files-test-result.tar.xz
** Tags removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-lunar verification-needed-mantic verification-needed-xenial
** Tags added: verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-lunar verification-done-mantic verification-done-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/2046356
Title:
Update URL for Support information in MOTD message
Status in base-files package in Ubuntu:
Fix Released
Status in base-files source package in Xenial:
Fix Committed
Status in base-files source package in Bionic:
Fix Committed
Status in base-files source package in Focal:
Fix Committed
Status in base-files source package in Jammy:
Fix Committed
Status in base-files source package in Lunar:
Fix Committed
Status in base-files source package in Mantic:
Fix Committed
Status in base-files source package in Noble:
Fix Released
Bug description:
[Impact]
When users see the MOTD message, they are currently seeing an outdated url under the support information.
Even though the outdated url redirects to new Ubuntu Pro webpage, we believe the users should still see
the correct url from the start
[Test Case]
- Launch a LXD container for any of the affected releases
- Install the package with this fix applied
- Install `update-motd` package
- Run `update-motd` and confirm the Support url is now the correct one
[Regression Potential]
If users are parsing MOTD for some reason, the url change might break that logic now. However, parsing MOTD messages is not a supported flow, so we believe regression potential is low here.
[Discussion]
Since we want users to be aware of what Ubuntu Pro is, we should highlight the right product name on any place that is still using the old "advantage" name. Updating the support URL here is a step into this direction
[Original Bug Description]
On the file 10-help-text, we are printing the following line on MOTD:
* Support: https://ubuntu.com/advantage
We should update the url to https://ubuntu.com/pro instead, as this
will the default url for support information now
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/2046356/+subscriptions
More information about the foundations-bugs
mailing list