2021-07-21 15:33:21 |
sascha arthur |
bug |
|
|
added bug |
2021-07-21 15:36:19 |
sascha arthur |
bug task added |
|
busybox (Ubuntu) |
|
2022-05-19 14:52:57 |
Launchpad Janitor |
busybox (Ubuntu): status |
New |
Confirmed |
|
2022-05-19 15:42:02 |
Dan Bungert |
tags |
|
rls-kk-incoming |
|
2022-05-26 15:11:03 |
Matthieu Clemenceau |
tags |
rls-kk-incoming |
fr-2416 rls-kk-incoming |
|
2022-05-26 15:11:04 |
Brian Murray |
busybox (Ubuntu): importance |
Undecided |
High |
|
2022-05-26 16:11:48 |
Brian Murray |
nominated for series |
|
Ubuntu Jammy |
|
2022-05-26 16:11:48 |
Brian Murray |
bug task added |
|
busybox (Ubuntu Jammy) |
|
2022-05-26 16:11:57 |
Brian Murray |
busybox (Ubuntu Jammy): importance |
Undecided |
High |
|
2022-05-26 16:12:00 |
Brian Murray |
busybox (Ubuntu Jammy): status |
New |
Confirmed |
|
2022-05-26 16:12:03 |
Brian Murray |
busybox (Ubuntu Jammy): milestone |
|
ubuntu-22.04.1 |
|
2022-05-26 16:12:14 |
Brian Murray |
tags |
fr-2416 rls-kk-incoming |
fr-2416 |
|
2022-08-05 23:16:28 |
Steve Langasek |
affects |
busybox (Ubuntu Jammy) |
isc-dhcp (Ubuntu Jammy) |
|
2022-08-06 00:05:23 |
Steve Langasek |
isc-dhcp (Ubuntu Jammy): status |
Confirmed |
Incomplete |
|
2022-08-06 00:05:26 |
Steve Langasek |
isc-dhcp (Ubuntu): assignee |
|
Steve Langasek (vorlon) |
|
2022-08-06 00:05:31 |
Steve Langasek |
isc-dhcp (Ubuntu Jammy): assignee |
|
Steve Langasek (vorlon) |
|
2022-08-06 00:05:33 |
Steve Langasek |
isc-dhcp (Ubuntu): status |
Confirmed |
Fix Committed |
|
2022-08-07 23:47:33 |
Launchpad Janitor |
isc-dhcp (Ubuntu): status |
Fix Committed |
Fix Released |
|
2022-09-02 14:03:15 |
Andreas Hasenack |
bug |
|
|
added subscriber Andreas Hasenack |
2022-09-12 00:10:18 |
Matthieu Clemenceau |
tags |
fr-2416 |
foundations-todo fr-2416 |
|
2022-09-12 00:10:29 |
Matthieu Clemenceau |
bug |
|
|
added subscriber Ubuntu Foundations Team |
2022-09-13 17:54:21 |
Brian Murray |
isc-dhcp (Ubuntu Jammy): milestone |
ubuntu-22.04.1 |
|
|
2022-09-15 15:31:21 |
Matthieu Clemenceau |
removed subscriber Ubuntu Foundations Team |
|
|
|
2022-09-15 15:31:26 |
Matthieu Clemenceau |
bug |
|
|
added subscriber Ubuntu Foundations Bugs |
2022-09-24 17:34:45 |
Matthieu Clemenceau |
tags |
foundations-todo fr-2416 |
foundations-todo |
|
2022-11-04 11:01:52 |
Matthieu Clemenceau |
tags |
foundations-todo |
|
|
2023-02-01 04:32:31 |
Mauricio Faria de Oliveira |
description |
Hello,
I'm running into issues with subiquity on a cloud provider. The cloud provider is using an on-link L3 gateway.
His DHCP response looks like this:
OPTION: 53 ( 1) DHCP message type 5 (DHCPACK)
OPTION: 54 ( 4) Server identifier 172.31.1.1
OPTION: 51 ( 4) IP address leasetime 86400 (24h)
OPTION: 1 ( 4) Subnet mask 255.255.255.255
OPTION: 3 ( 4) Routers 172.31.1.1
OPTION: 6 ( 12) DNS server ....
OPTION: 121 ( 14) Classless Static Route 20ac1f0101000000 .......
0000ac1f0101 ......
OPTION: 249 ( 14) MSFT - Classless route 20ac1f0101000000 .......
0000ac1f0101 ......
Im booting the subiquity process with an patched ipxe (https://github.com/ipxe/ipxe/pull/104) like this:
#!ipxe
kernel .../vmlinuz initrd=initrd root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=https://cdimage.ubuntu.com/ubuntu-server/focal/daily-live/current/focal-live-server-amd64.iso autoinstall ds=nocloud-net;s=.../...-ad-78/ cloud-config-url=/dev/null
initrd .../initrd
boot
initrd/vmlinuz is extracted right out of focal-live-server-amd64.iso
Sadly subiquity is stuck with a broken network (because of missing dhcp option 121/249 support). It happens when its running the /init from the kernel right after kernel is booted, i guess even before the subiquity is started(?).
After further debugging, it looks like the provided kernel 5.4.80 #90 Ubuntu, is using busybox 1.30.1-4ubuntu~6.3 which includes isc-dhclient-4.4.1 which is lacking the given options.
Would be awesome if this could be fixed.. maybe just a simple busybox compile option? |
[Impact]
* DHCP classless static routes aren't applied
by dhclient at the initramfs (e.g., ip=dhcp).
* This happens as rfc3442-classless-routes is
not copied to /etc/dhcp/dhclient-exit-hooks.d/
in the initramfs.
* On Jammy, if such DHCP option(s) are present
in the DHCP server response, the DHCP client
ignores the 'routers' option from the server,
thus leaving no routes configured.
* On Focal, the older code still adds 'routers',
which is slightly better, but still does not
add the classless static routes.
[Test Plan]
* Use LXD container/VMs for DHCP server/client,
configure the DHCP server with option 121,
and some sample classless static routes.
(see comments #12/jammy and #13/focal).
[Regression Potential]
* Acquisition of DHCP leases/routes at initramfs
with ip=dhcp.
* The code/script is not new, and is exercised
normally during on rootfs (ie, post-initramfs)
when dhclient is run.
* It's also been in the initramfs in Kinetic
already, since on Aug 2022; giving it tests.
[Original Description]
Hello,
I'm running into issues with subiquity on a cloud provider. The cloud provider is using an on-link L3 gateway.
His DHCP response looks like this:
OPTION: 53 ( 1) DHCP message type 5 (DHCPACK)
OPTION: 54 ( 4) Server identifier 172.31.1.1
OPTION: 51 ( 4) IP address leasetime 86400 (24h)
OPTION: 1 ( 4) Subnet mask 255.255.255.255
OPTION: 3 ( 4) Routers 172.31.1.1
OPTION: 6 ( 12) DNS server ....
OPTION: 121 ( 14) Classless Static Route 20ac1f0101000000 .......
0000ac1f0101 ......
OPTION: 249 ( 14) MSFT - Classless route 20ac1f0101000000 .......
0000ac1f0101 ......
Im booting the subiquity process with an patched ipxe (https://github.com/ipxe/ipxe/pull/104) like this:
#!ipxe
kernel .../vmlinuz initrd=initrd root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=https://cdimage.ubuntu.com/ubuntu-server/focal/daily-live/current/focal-live-server-amd64.iso autoinstall ds=nocloud-net;s=.../...-ad-78/ cloud-config-url=/dev/null
initrd .../initrd
boot
initrd/vmlinuz is extracted right out of focal-live-server-amd64.iso
Sadly subiquity is stuck with a broken network (because of missing dhcp option 121/249 support). It happens when its running the /init from the kernel right after kernel is booted, i guess even before the subiquity is started(?).
After further debugging, it looks like the provided kernel 5.4.80 #90 Ubuntu, is using busybox 1.30.1-4ubuntu~6.3 which includes isc-dhclient-4.4.1 which is lacking the given options.
Would be awesome if this could be fixed.. maybe just a simple busybox compile option? |
|
2023-02-01 04:34:08 |
Mauricio Faria de Oliveira |
nominated for series |
|
Ubuntu Focal |
|
2023-02-01 04:34:08 |
Mauricio Faria de Oliveira |
bug task added |
|
isc-dhcp (Ubuntu Focal) |
|
2023-02-01 04:34:22 |
Mauricio Faria de Oliveira |
isc-dhcp (Ubuntu Focal): status |
New |
In Progress |
|
2023-02-01 04:34:25 |
Mauricio Faria de Oliveira |
isc-dhcp (Ubuntu Focal): importance |
Undecided |
Medium |
|
2023-02-01 04:34:27 |
Mauricio Faria de Oliveira |
isc-dhcp (Ubuntu Focal): assignee |
|
Mauricio Faria de Oliveira (mfo) |
|
2023-02-01 04:34:32 |
Mauricio Faria de Oliveira |
isc-dhcp (Ubuntu Jammy): status |
Incomplete |
In Progress |
|
2023-02-01 04:34:40 |
Mauricio Faria de Oliveira |
isc-dhcp (Ubuntu Jammy): importance |
High |
Medium |
|
2023-02-01 04:41:02 |
Mauricio Faria de Oliveira |
bug |
|
|
added subscriber Mauricio Faria de Oliveira |
2023-02-09 13:17:09 |
Łukasz Zemczak |
isc-dhcp (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2023-02-09 13:17:11 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-02-09 13:17:12 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2023-02-09 13:17:15 |
Łukasz Zemczak |
tags |
|
verification-needed verification-needed-jammy |
|
2023-02-09 13:49:37 |
Łukasz Zemczak |
isc-dhcp (Ubuntu Focal): status |
In Progress |
Fix Committed |
|
2023-02-09 13:49:41 |
Łukasz Zemczak |
tags |
verification-needed verification-needed-jammy |
verification-needed verification-needed-focal verification-needed-jammy |
|
2023-02-15 15:26:31 |
Mauricio Faria de Oliveira |
tags |
verification-needed verification-needed-focal verification-needed-jammy |
verification-done verification-done-focal verification-done-jammy |
|
2023-02-27 17:11:30 |
Launchpad Janitor |
isc-dhcp (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2023-02-27 17:11:38 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-02-27 17:14:38 |
Launchpad Janitor |
isc-dhcp (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|