** Description changed:

+ [ 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
+      - 
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-desktop-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-desktop-ppc64el.iso
+      - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-riscv64.iso
+      - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-desktop-riscv64.iso
+      - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-s390x.iso
+      - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-desktop-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): 
+ 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): 
+   * 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 ... 
+ 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

** Summary changed:

- PXE Boot contains wrong suggested link to ISO for live file system
+ [SRU] PXE Boot contains wrong suggested link to ISO for live file system

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux 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:
  Triaged
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
       - 
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-desktop-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-desktop-ppc64el.iso
       - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-riscv64.iso
       - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-desktop-riscv64.iso
       - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-live-server-s390x.iso
       - 
http://cdimage.ubuntu.com/releases/jammy/release/ubuntu-22.04-latest-desktop-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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to