[Bug 1990621] Re: [SRU] PXE Boot contains wrong suggested link to ISO for live file system

Łukasz Zemczak 1990621 at bugs.launchpad.net
Thu Jul 27 12:44:01 UTC 2023


Hello James, or anyone else affected,

Accepted casper into jammy-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/casper/1.470.3 in a
few hours, and then in the -proposed repository.

Please help us by testing this new package.  To properly test it you
will need to obtain and boot a daily build of a Live CD for jammy.  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-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. 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: casper (Ubuntu Jammy)
       Status: Triaged => Fix Committed

** Tags added: verification-needed verification-needed-jammy

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

Title:
  [SRU] PXE Boot contains wrong suggested link to ISO for live file
  system

Status in casper package in Ubuntu:
  Fix Released
Status in linux package in Ubuntu:
  Invalid
Status in casper source package in Jammy:
  Fix Committed
Status in linux source package in Jammy:
  Invalid

Bug description:
  [ Impact ]

   * What are the effects of the bug on users?
     casper's intercative netmount fails to download the latest
     Ubuntu LTS ISOs after the release of the first point release
     (e.g. 22.04.1)

   * What is the justification for backporting the fix to the
     There are at least 2 bug reports about this problem
     (LP: #1990621, #1948884) and this fix will improve the
     user experience with a low probaility of side effects.

   * How does the upload fix the bug?

     - The patch adds a '-latest' to the download URLs (see more
       details here: https://git.launchpad.net/casper/diff/scripts/casper?id=5075686ba44c942e58c71d2c99076fe72fe64022).
     - Additionaly Łukasz Zemczak (sil2100) created symlinks that
       (as the name of the urls imply) always points to the latest
       Ubuntu ISO for a given version.

  [ Test Plan ]

   * How to reproduce the bug?

     - Just run the failling parts of the casper script on a
       22.04.1 <= x < 22.10 machine:

       # would normally be set by initramfs-tools
       $ DPKG_ARCH=amd64

       # sets UBUNTU_CODENAME=jammy and VERSION_ID="22.04"
       $ source /etc/os-release

       # see https://git.launchpad.net/casper/tree/scripts/casper?id=eb5ef85cb33fba28f9ae6e8da6194aaa521d5a49#n388
       $ server_url=https://releases.ubuntu.com/$UBUNTU_CODENAME/ubuntu-$VERSION_ID-live-server-$DPKG_ARCH.iso

       # see https://git.launchpad.net/casper/tree/scripts/casper?id=eb5ef85cb33fba28f9ae6e8da6194aaa521d5a49#n267
       $ wget "${server_url}" -O /dev/null

       # You should observe an ERROR 404: Not Found.

   * Test that the new links work:
     - Test Script: https://gist.github.com/dviererbe/0255733d25a27c9a3ddc0bfc9535c243
     - New -latest URLs
       - https://releases.ubuntu.com/jammy/ubuntu-22.04-latest-live-server-amd64.iso
       - https://releases.ubuntu.com/jammy/ubuntu-22.04-latest-desktop-amd64.iso
       - http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-arm64.iso
       - http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-ppc64el.iso
       - http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-s390x.iso

   * Łukasz Zemczak (sil2100) tested that casper can handle
     HTTP 301 redirects. (See https://code.launchpad.net/~dviererbe/casper/+git/casper/+merge/446497/comments/1193559)

  [ Where problems could occur ]

   * The Ubuntu Release Team could forget or the automation
     could stop working to update the -latest links, but this
     would, in the worst case, result in a not more worse
     situation than the current bug.

  [ Other Info ]

   * Nick Rosbrook (enr0n) pointed out in comment #3 that the
     script allows the user to provide their own url.
     This should only be considered a temporary workaround as
     a user has to be aware of this bug and has to aquire a
     URL by themself. Copy & pasting URLs from the web is
     potentialy error prone and unsafe.

   * As far as I am aware, there was a discussion between
     Łukasz Zemczak (sil2100), Brian Murray (brian-murray) and
     Steve Langasek (~vorlon) about the link namining. Neither
     was particularly happy about the current solution, but no
     better solution was found.

   * Original Bug report:

  When PXE booting without pulling in squashfs correctly the system
  tried to be helpful (:-) and grab an ISO. The 22.04.1 Jammy release
  contains a link to the old version which is not present anymore.

  -------
  Unable to find a medium containing a live file system
  Attempt interactive netboot from a URL?
  yes no (default yes):
  Two methods available for IP configuration:
    * static: for static IP configuration
    * dhcp: for automatic IP configuration
  static dhcp (default 'dhcp'):
  vlan id (optional):
   https://releases.ubuntu.com/jammy/ubuntu-22.04-live-server-amd64.iso (default)
   https://releases.ubuntu.com/jammy/ubuntu-22.04-desktop-amd64.iso
  url:
  http_proxy (optional):
  [  125.454385] igb 0000:00:14.0 eno1: igb: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
  [  125.566067] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
  Begin: Trying netboot from 10.0.~.1: ... Begin: Trying to download and mount https://releases.ubuntu.com/jammy/ubuntu-22.04-live-server-amd64.iso ...

  BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash)
  Enter 'help' for a list of built-in commands.

  (initramfs) Connecting to releases.ubuntu.com (185.125.190.37:443)
  wget: server returned error: HTTP/1.1 404 Not Found
  done.
  Unable to find a medium containing a live file system

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1990621/+subscriptions




More information about the foundations-bugs mailing list